We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fb279b commit 1bef605Copy full SHA for 1bef605
compiler/rustc_codegen_llvm/src/debuginfo/metadata/type_map.rs
@@ -285,8 +285,8 @@ pub(super) fn build_type_with_children<'ll, 'tcx>(
285
// Item(T),
286
// }
287
// ```
288
- let is_expanding_recursive =
289
- debug_context(cx).adt_stack.borrow().iter().any(|(parent_def_id, parent_args)| {
+ let is_expanding_recursive = adt_def.is_enum()
+ && debug_context(cx).adt_stack.borrow().iter().any(|(parent_def_id, parent_args)| {
290
if def_id == *parent_def_id {
291
args.iter().zip(parent_args.iter()).any(|(arg, parent_arg)| {
292
if let (Some(arg), Some(parent_arg)) = (arg.as_type(), parent_arg.as_type())
0 commit comments