Skip to content

Commit 268654a

Browse files
committed
Add an allow unreachable_code
1 parent 212a9ce commit 268654a

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_target/src/asm

1 file changed

+1
-0
lines changed

compiler/rustc_target/src/asm/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ impl InlineAsmReg {
300300
}
301301
}
302302

303+
#[allow(unreachable_code)]
303304
pub fn parse(arch: InlineAsmArch, name: Symbol) -> Result<Self, &'static str> {
304305
// FIXME: use direct symbol comparison for register names
305306
// Use `Symbol::as_str` instead of `Symbol::with` here because `has_feature` may access `Symbol`.

0 commit comments

Comments
 (0)