From cc15963aa30ed41d4e5263233134d275de832683 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 12 Jan 2023 09:28:54 +0900 Subject: Strip trailing spaces [ci skip] --- .github/workflows/check_misc.yml | 2 +- yjit/src/asm/arm64/arg/bitmask_imm.rs | 2 +- yjit/src/asm/arm64/arg/truncate.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml index 74756807a5..f6b09ae2a9 100644 --- a/.github/workflows/check_misc.yml +++ b/.github/workflows/check_misc.yml @@ -20,7 +20,7 @@ jobs: ! grep -r -n '[^ -~]' -- *.[chy] include internal win32/*.[ch] - name: Check for trailing spaces run: | - ! git grep -n '[ ]$' -- '*.rb' '*.[chy]' + ! git grep -n '[ ]$' -- '*.rb' '*.[chy]' '*.rs' ! git grep -n '^[ ][ ]*$' -- '*.md' - name: Check for bash specific substitution in configure.ac run: | diff --git a/yjit/src/asm/arm64/arg/bitmask_imm.rs b/yjit/src/asm/arm64/arg/bitmask_imm.rs index d569828a24..ff9b2c8a2d 100644 --- a/yjit/src/asm/arm64/arg/bitmask_imm.rs +++ b/yjit/src/asm/arm64/arg/bitmask_imm.rs @@ -40,7 +40,7 @@ impl TryFrom for BitmaskImmediate { type Error = (); /// Attempt to convert a u64 into a BitmaskImmediate. - /// + /// /// The implementation here is largely based on this blog post: /// https://dougallj.wordpress.com/2021/10/30/bit-twiddling-optimising-aarch64-logical-immediate-encoding-and-decoding/ fn try_from(value: u64) -> Result { diff --git a/yjit/src/asm/arm64/arg/truncate.rs b/yjit/src/asm/arm64/arg/truncate.rs index 0de562f808..85d56ff202 100644 --- a/yjit/src/asm/arm64/arg/truncate.rs +++ b/yjit/src/asm/arm64/arg/truncate.rs @@ -6,7 +6,7 @@ /// Truncate a signed immediate to fit into a compile-time known width. It is /// assumed before calling this function that the value fits into the correct /// size. If it doesn't, then this function will panic. -/// +/// /// When the value is positive, this should effectively be a no-op since we're /// just dropping leading zeroes. When the value is negative we should only be /// dropping leading ones. @@ -27,7 +27,7 @@ pub fn truncate_imm, const WIDTH: usize>(imm: T) -> u32 { /// Truncate an unsigned immediate to fit into a compile-time known width. It is /// assumed before calling this function that the value fits into the correct /// size. If it doesn't, then this function will panic. -/// +/// /// This should effectively be a no-op since we're just dropping leading zeroes. pub fn truncate_uimm, const WIDTH: usize>(uimm: T) -> u32 { let value: u32 = uimm.into(); -- cgit v1.2.3