The bug report guide says
Finally, if you can run the offending command under gdb, pasting a stack trace can be useful; to do so, you will need to set a breakpoint on rust_panic.
AFAIK, RUST_BACKTRACE=1 rustc ... will give equally useful information and doesn't require gdb.