Use exhaustive match in const_prop.rs
This commit is contained in:
parent
0ca7f74dbd
commit
b4d045719d
1 changed files with 13 additions and 1 deletions
|
@ -638,8 +638,20 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
|
|||
|
||||
return None;
|
||||
}
|
||||
Rvalue::ThreadLocalRef(def_id) => {
|
||||
trace!("skipping ThreadLocalRef({:?})", def_id);
|
||||
|
||||
_ => {}
|
||||
return None;
|
||||
}
|
||||
|
||||
// There's no other checking to do at this time.
|
||||
Rvalue::Aggregate(..)
|
||||
| Rvalue::Use(..)
|
||||
| Rvalue::Repeat(..)
|
||||
| Rvalue::Len(..)
|
||||
| Rvalue::Cast(..)
|
||||
| Rvalue::Discriminant(..)
|
||||
| Rvalue::NullaryOp(..) => {}
|
||||
}
|
||||
|
||||
// FIXME we need to revisit this for #67176
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue