]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_build/src/build/custom/mod.rs
Auto merge of #104975 - JakobDegen:custom_mir_let, r=oli-obk
[rust.git] / compiler / rustc_mir_build / src / build / custom / mod.rs
index 68d8766c9073414e507e011887a0cfd5af63785e..2412824efeb751c305af719d5fb4dccd3d2729e7 100644 (file)
@@ -74,7 +74,7 @@ pub(super) fn build_custom_mir<'tcx>(
     let mut pctxt = ParseCtxt {
         tcx,
         thir,
-        source_info: SourceInfo { span, scope: OUTERMOST_SOURCE_SCOPE },
+        source_scope: OUTERMOST_SOURCE_SCOPE,
         body: &mut body,
         local_map: FxHashMap::default(),
         block_map: FxHashMap::default(),
@@ -128,7 +128,7 @@ fn parse_attribute(attr: &Attribute) -> MirPhase {
 struct ParseCtxt<'tcx, 'body> {
     tcx: TyCtxt<'tcx>,
     thir: &'body Thir<'tcx>,
-    source_info: SourceInfo,
+    source_scope: SourceScope,
 
     body: &'body mut Body<'tcx>,
     local_map: FxHashMap<LocalVarId, Local>,