Skip to content

Commit 4d15a75

Browse files
author
The Miri Cronjob Bot
committed
Merge from rustc
2 parents 55b757e + 1bd7383 commit 4d15a75

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

clippy_lints/src/loops/never_loop.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ fn never_loop_expr<'tcx>(
255255
InlineAsmOperand::Const { .. } | InlineAsmOperand::SymFn { .. } | InlineAsmOperand::SymStatic { .. } => {
256256
NeverLoopResult::Normal
257257
},
258+
InlineAsmOperand::Label { block } => {
259+
never_loop_block(cx, block, local_labels, main_loop_id)
260+
}
258261
})),
259262
ExprKind::OffsetOf(_, _)
260263
| ExprKind::Yield(_, _)

clippy_utils/src/hir_utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
833833
self.hash_body(anon_const.body);
834834
},
835835
InlineAsmOperand::SymStatic { path, def_id: _ } => self.hash_qpath(path),
836+
InlineAsmOperand::Label { block } => self.hash_block(block),
836837
}
837838
}
838839
},

0 commit comments

Comments
 (0)