about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2022-01-20 11:06:45 -0500
committerFelix S. Klock II <pnkfelix@pnkfx.org>2022-03-03 14:38:50 -0500
commite9035f7bef47c21b575af517dce309d96df4eb51 (patch)
tree80f987621f14399c7966823d918f29fd767428bd /compiler/rustc_ast_lowering/src
parent45660949132222ba7ec0905649b2affd68e0e13c (diff)
downloadrust-e9035f7bef47c21b575af517dce309d96df4eb51.tar.gz
rust-e9035f7bef47c21b575af517dce309d96df4eb51.zip
refactor: prepare to associate multiple spans with a module.
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
-rw-r--r--compiler/rustc_ast_lowering/src/item.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/item.rs b/compiler/rustc_ast_lowering/src/item.rs
index e8fca6f04ba..aee117e554f 100644
--- a/compiler/rustc_ast_lowering/src/item.rs
+++ b/compiler/rustc_ast_lowering/src/item.rs
@@ -263,7 +263,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
                 })
             }
             ItemKind::Mod(_, ref mod_kind) => match mod_kind {
-                ModKind::Loaded(items, _, inner_span) => {
+                ModKind::Loaded(items, _, ModSpans { inner_span }) => {
                     hir::ItemKind::Mod(self.lower_mod(items, *inner_span))
                 }
                 ModKind::Unloaded => panic!("`mod` items should have been loaded by now"),