diff options
| author | Michael Goulet <michael@errs.io> | 2023-12-09 00:00:53 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-12-09 00:10:36 +0000 |
| commit | 3818fc02c4a55eb8cb12c90505bc88ae6cb983e8 (patch) | |
| tree | 77b9af0892f9ca786a2ce8d9085feccbfbc819b7 | |
| parent | f967532a47eb728ada44473a5c4c2eca1a45fe30 (diff) | |
| download | rust-3818fc02c4a55eb8cb12c90505bc88ae6cb983e8.tar.gz rust-3818fc02c4a55eb8cb12c90505bc88ae6cb983e8.zip | |
Lower constness span in host param
| -rw-r--r-- | compiler/rustc_ast_lowering/src/item.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/item.rs b/compiler/rustc_ast_lowering/src/item.rs index 9d1f2684c39..ced267b8a36 100644 --- a/compiler/rustc_ast_lowering/src/item.rs +++ b/compiler/rustc_ast_lowering/src/item.rs @@ -1385,6 +1385,7 @@ impl<'hir> LoweringContext<'_, 'hir> { let host_param_parts = if let Const::Yes(span) = constness && self.tcx.features().effects { + let span = self.lower_span(span); let param_node_id = self.next_node_id(); let hir_id = self.next_id(); let def_id = self.create_def( |
