Skip to content

Commit

Permalink
also generate MIR for statics
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Dec 8, 2016
1 parent 87a9ae2 commit 9e158c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_metadata/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9e158c5

Please sign in to comment.