Any suggestion regarding how to debug a
'rustc' has overflowed its stack? (in
... error: Could not compile rustc_allocator)
You can use
gdb to see what stack frames look like
this will vary in terms of how helpful it is, but in case it was your own change, it will give you an indication whether the cause is your own code or something else.
Thanks, that helped! It seems that
try_print_visible_def_path went into an infinite recursion; maybe because I changed the visibility of some imports