Skip to content

rustc can't read files with more than one dot in filename #113981

Closed
@matthiaskrgr

Description

@matthiaskrgr
echo "pub fn main() {}" > a.b.rs
rustc a.b.rs
error: invalid character `'.'` in crate name: `a.b`

Why would rustc think this is related to crates when I just pass a simple path into it?

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions