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:
|
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?
This showed up as a part of RLS test failure. The string in question is
Repro: https://github.com/Xanewok/simple_fmt/tree/master
I'd expect the parser to catch possible panics:
rustfmt/src/formatting.rs
Line 622 in fbeabe9
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?