Lower inline const down to MIR
This commit is contained in:
parent
66e254314d
commit
fe922e567f
12 changed files with 41 additions and 1 deletions
|
@ -33,6 +33,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
Constant { span, user_ty, literal }
|
||||
}
|
||||
ExprKind::StaticRef { literal, .. } => Constant { span, user_ty: None, literal },
|
||||
ExprKind::ConstBlock { value } => Constant { span, user_ty: None, literal: value },
|
||||
_ => span_bug!(span, "expression is not a valid constant {:?}", kind),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue