Skip to content

Commit bd6fb36

Browse files
committed
Merge from rust-lang/rust
2 parents 30d5c86 + 9a090a2 commit bd6fb36

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/hir-ty/src/mir/eval/shim.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ macro_rules! from_bytes {
2727
($ty:tt, $value:expr) => {
2828
($ty::from_le_bytes(match ($value).try_into() {
2929
Ok(it) => it,
30+
#[allow(unreachable_patterns)]
3031
Err(_) => return Err(MirEvalError::InternalError("mismatched size".into())),
3132
}))
3233
};

crates/hir-ty/src/mir/lower.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,7 @@ impl<'ctx> MirLowerCtx<'ctx> {
11611161
ProjectionElem::OpaqueCast(it) => {
11621162
ProjectionElem::OpaqueCast(it)
11631163
}
1164+
#[allow(unreachable_patterns)]
11641165
ProjectionElem::Index(it) => match it {},
11651166
})
11661167
.collect(),

0 commit comments

Comments
 (0)