-
Notifications
You must be signed in to change notification settings - Fork 971
Closed
Labels
C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
Description
This showed up as a part of RLS test failure. The string in question is
/// Bar variant\nBar,\n/// Baz variant\nBaz\n}\n\n/// Bar struct\npub struct Bar<T>{}
Repro: https://github.com/Xanewok/simple_fmt/tree/master
I'd expect the parser to catch possible panics:
Line 622 in fbeabe9
| let result = catch_unwind(move || parser.0.parse_crate_mod()); |
however it seems to be an aborting panic? (no backtrace)
Is this completely on rustc side or can we do something here to not abort on parse error?
Metadata
Metadata
Assignees
Labels
C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE