We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
encode_promoted_mir
1 parent 248b4db commit 8e4fe66Copy full SHA for 8e4fe66
compiler/rustc_metadata/src/rmeta/encoder.rs
@@ -1138,9 +1138,7 @@ impl EncodeContext<'a, 'tcx> {
1138
1139
fn encode_promoted_mir(&mut self, def_id: LocalDefId) {
1140
debug!("EncodeContext::encode_promoted_mir({:?})", def_id);
1141
- if self.tcx.mir_keys(LOCAL_CRATE).contains(&def_id) {
1142
- record!(self.tables.promoted_mir[def_id.to_def_id()] <- self.tcx.promoted_mir(def_id));
1143
- }
+ record!(self.tables.promoted_mir[def_id.to_def_id()] <- self.tcx.promoted_mir(def_id));
1144
}
1145
1146
// Encodes the inherent implementations of a structure, enumeration, or trait.
0 commit comments