mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-07 18:58:51 +00:00
Merge from rustc
This commit is contained in:
commit
b3ab48682f
2 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,7 @@ macro_rules! from_bytes {
|
||||||
($ty:tt, $value:expr) => {
|
($ty:tt, $value:expr) => {
|
||||||
($ty::from_le_bytes(match ($value).try_into() {
|
($ty::from_le_bytes(match ($value).try_into() {
|
||||||
Ok(it) => it,
|
Ok(it) => it,
|
||||||
|
#[allow(unreachable_patterns)]
|
||||||
Err(_) => return Err(MirEvalError::InternalError("mismatched size".into())),
|
Err(_) => return Err(MirEvalError::InternalError("mismatched size".into())),
|
||||||
}))
|
}))
|
||||||
};
|
};
|
||||||
|
|
|
@ -1161,6 +1161,7 @@ impl<'ctx> MirLowerCtx<'ctx> {
|
||||||
ProjectionElem::OpaqueCast(it) => {
|
ProjectionElem::OpaqueCast(it) => {
|
||||||
ProjectionElem::OpaqueCast(it)
|
ProjectionElem::OpaqueCast(it)
|
||||||
}
|
}
|
||||||
|
#[allow(unreachable_patterns)]
|
||||||
ProjectionElem::Index(it) => match it {},
|
ProjectionElem::Index(it) => match it {},
|
||||||
})
|
})
|
||||||
.collect(),
|
.collect(),
|
||||||
|
|
Loading…
Reference in a new issue