mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
This is unreachable code and it should never ever be reachable even in the future
This commit is contained in:
@@ -254,7 +254,7 @@ pub(super) fn const_to_value(&mut self, const_val: &ConstVal<'tcx>) -> EvalResul
|
||||
}
|
||||
|
||||
Aggregate(..) |
|
||||
Variant(_) => unimplemented!(),
|
||||
Variant(_) => bug!("should not have aggregate or variant constants in MIR"),
|
||||
// function items are zero sized and thus have no readable value
|
||||
Function(..) => PrimVal::Undef,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user