We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cad754 commit d6ccbf6Copy full SHA for d6ccbf6
src/librustc_codegen_llvm/debuginfo/create_scope_map.rs
@@ -66,14 +66,8 @@ fn make_mir_scope(
66
if !has_variables.contains(scope) {
67
// Do not create a DIScope if there are no variables
68
// defined in this MIR Scope, to avoid debuginfo bloat.
69
-
70
- // However, we don't skip creating a nested scope if
71
- // our parent is the root, because we might want to
72
- // put arguments in the root and not have shadowing.
73
- if parent_scope.scope_metadata.unwrap() != fn_metadata {
74
- debug_context.scopes[scope] = parent_scope;
75
- return;
76
- }
+ debug_context.scopes[scope] = parent_scope;
+ return;
77
}
78
79
let loc = span_start(cx, scope_data.span);
0 commit comments