Skip to content

rustc: errors should not display runtime boilerplate logging #1405

Closed
@erickt

Description

@erickt

Whenever I have a filename typo when running rustc, I always think I'm tripping over some compiler bug before I notice the error: error opening ... line at the top. Could rustc catch that the file doesn't exist earlier and cleanly exit instead?

% rustc does-not-exist.rs
error: error opening does-not-exist.rs
rust: upcall fail 'explicit failure', ../src/comp/syntax/parse/parser.rs:64
rust: domain main @0x10202d200 root task failed

Metadata

Metadata

Assignees

Labels

A-frontendArea: Compiler frontend (errors, parsing and HIR)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions