Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn about 2015 edition on path & extern crate related errors #63323

Open
kornelski opened this issue Aug 6, 2019 · 0 comments
Open

Warn about 2015 edition on path & extern crate related errors #63323

kornelski opened this issue Aug 6, 2019 · 0 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-resolve Area: Name/path resolution done by `rustc_resolve` specifically C-enhancement Category: An issue proposing an enhancement or a PR with one. D-edition Diagnostics: An error or lint that should account for edition differences. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@kornelski
Copy link
Contributor

Related forum thread

Users may be using 2015 edition without being aware of it, e.g. by copying an older template/tutorial or creating Cargo.toml by hand.

Accidental use of 2015 edition may cause puzzling path-related errors, such as E0432 & E0433.

When 2015-edition code fails to resolve paths, rustc could say if it works in 2018 edition (#61914) or at least emit a note saying that the failing code uses 2015 edition, and that switching to 2018 may help.

@jonas-schievink jonas-schievink added A-diagnostics Area: Messages for errors, warnings, and lints A-resolve Area: Name/path resolution done by `rustc_resolve` specifically C-enhancement Category: An issue proposing an enhancement or a PR with one. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 6, 2019
@fmease fmease added the D-edition Diagnostics: An error or lint that should account for edition differences. label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-resolve Area: Name/path resolution done by `rustc_resolve` specifically C-enhancement Category: An issue proposing an enhancement or a PR with one. D-edition Diagnostics: An error or lint that should account for edition differences. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants