also generate MIR for statics

This commit is contained in:
Oliver Schneider 2016-12-08 10:34:44 +01:00
parent 87a9ae224d
commit 9e158c5c08
No known key found for this signature in database
GPG Key ID: 56D6EEA0FC67AC46

View File

@ -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();