also generate MIR for statics
This commit is contained in:
parent
87a9ae224d
commit
9e158c5c08
@ -839,6 +839,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
|
||||
_ => None,
|
||||
},
|
||||
mir: match item.node {
|
||||
hir::ItemStatic(..) |
|
||||
hir::ItemConst(..) => self.encode_mir(def_id),
|
||||
hir::ItemFn(_, _, constness, _, ref generics, _) => {
|
||||
let tps_len = generics.ty_params.len();
|
||||
|
Loading…
Reference in New Issue
Block a user