Skip to content

Parse panic doesn't seem to be caught? #3239

Closed
@Xanewok

Description

@Xanewok

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPanic, non-idempotency, invalid code, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions