We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c94bbdb commit 02070beCopy full SHA for 02070be
frontend/exporter/src/types/new/full_def.rs
@@ -78,6 +78,8 @@ where
78
predicates: GenericPredicates { predicates: vec![] },
79
};
80
let body = get_promoted_mir(tcx, rust_def_id, promoted_id.as_rust_promoted_id());
81
+ source_span = Some(body.span);
82
+
83
let ty: Ty = body.local_decls[rustc_middle::mir::Local::ZERO]
84
.ty
85
.sinto(&state_with_id);
@@ -88,7 +90,7 @@ where
88
90
body,
89
91
92
- source_span = None;
93
+ // None of these make sense for a promoted constant.
94
attributes = Default::default();
95
visibility = Default::default();
96
lang_item = Default::default();
0 commit comments