Skip to content

Proc macro errors can lead to rustc panics at stage1 or on non-Linux #59998

Closed
@RalfJung

Description

@RalfJung

Update (by @eddyb): this also occurs with x.py test --stage 1 src/test/ui on Linux (and is responsible for several // ignore-stage1 in src/test/ui), so I'm updating the title to reflect it.
See also #59998 (comment) for more details.


Discovered at #59769 (comment): running the ui\proc-macro\invalid-punct-ident-*.rs tests on some platforms (observed on Windows and macOS but not on Linux) leads to things like

thread 'rustc' panicked at 'unsupported character `'`'`', src\libsyntax_ext\proc_macro_server.rs:315:13
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

being printed on stderr.

Cc @eddyb

Metadata

Metadata

Assignees

Labels

A-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️O-macosOperating system: macOSO-windowsOperating system: WindowsP-mediumMedium priorityT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions