Skip to content

Commit 3818fc0

Browse files
Lower constness span in host param
1 parent f967532 commit 3818fc0

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+1
-0
lines changed

compiler/rustc_ast_lowering/src/item.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,6 +1385,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
13851385
let host_param_parts = if let Const::Yes(span) = constness
13861386
&& self.tcx.features().effects
13871387
{
1388+
let span = self.lower_span(span);
13881389
let param_node_id = self.next_node_id();
13891390
let hir_id = self.next_id();
13901391
let def_id = self.create_def(

0 commit comments

Comments
 (0)