mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
Auto merge of #17880 - lnicola:sync-from-rust, r=lnicola
minor: sync from downstream
This commit is contained in:
commit
78c2bdce86
3 changed files with 3 additions and 1 deletions
|
@ -27,6 +27,7 @@ macro_rules! from_bytes {
|
|||
($ty:tt, $value:expr) => {
|
||||
($ty::from_le_bytes(match ($value).try_into() {
|
||||
Ok(it) => it,
|
||||
#[allow(unreachable_patterns)]
|
||||
Err(_) => return Err(MirEvalError::InternalError("mismatched size".into())),
|
||||
}))
|
||||
};
|
||||
|
|
|
@ -1161,6 +1161,7 @@ impl<'ctx> MirLowerCtx<'ctx> {
|
|||
ProjectionElem::OpaqueCast(it) => {
|
||||
ProjectionElem::OpaqueCast(it)
|
||||
}
|
||||
#[allow(unreachable_patterns)]
|
||||
ProjectionElem::Index(it) => match it {},
|
||||
})
|
||||
.collect(),
|
||||
|
|
|
@ -1 +1 @@
|
|||
1b51d80027919563004918eaadfa0d890ac0eb93
|
||||
80eb5a8e910e5185d47cdefe3732d839c78a5e7e
|
||||
|
|
Loading…
Reference in a new issue