diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2022-01-20 11:06:45 -0500 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2022-03-03 14:38:50 -0500 |
| commit | e9035f7bef47c21b575af517dce309d96df4eb51 (patch) | |
| tree | 80f987621f14399c7966823d918f29fd767428bd /compiler/rustc_ast_lowering/src | |
| parent | 45660949132222ba7ec0905649b2affd68e0e13c (diff) | |
| download | rust-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.rs | 2 |
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"), |
