Closed
Description
When I try to bootstrap the compiler with RUSTFLAGS=-g, I get the following result:
!dbg attachment points at wrong subprogram for function
!157160 = !DISubprogram(name: "fnfn", linkageName: "fnfn", scope: !157144, file: !157144, line: 38, type: !46087, isLocal: true, isDefinition: true, scopeLine: 38, flags: DIFlagPrototyped, isOptimized: t\
rue, function: i64 (%closure.1177*, %"ast::Expr"*)* @_ZN3ext6expand11expand_expr13closure.70644E, templateParams: !1064, variables: !157161)
i64 (%closure.1177*, %"ast::Expr"*)* @_ZN3ext6expand11expand_expr13closure.70644E
tail call void @llvm.dbg.value(metadata %"ext::expand::IdentRenamer"* %rename_fld.i.857, i64 0, metadata !157531, metadata !191193), !dbg !784008
!784008 = !DILocation(line: 113, scope: !157525, inlinedAt: !784009)
!784010 = distinct !DILexicalBlock(scope: !784011, file: !157144, line: 129, column: 56)
!160778 = !DISubprogram(name: "fnfn", linkageName: "fnfn", scope: !157144, file: !157144, line: 129, type: !160779, isLocal: true, isDefinition: true, scopeLine: 129, flags: DIFlagPrototyped, isOptimized\
: true, templateParams: !1064, variables: !160781)
LLVM ERROR: Broken function found, compilation aborted!
m
cc @rust-lang/compiler @michaelwoerister