Skip to content

Offer suggestions for missing libraries #6379

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

Closed
brson opened this issue May 10, 2013 · 1 comment
Closed

Offer suggestions for missing libraries #6379

brson opened this issue May 10, 2013 · 1 comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-linkage Area: linking into static, shared libraries and binaries C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@brson
Copy link
Contributor

brson commented May 10, 2013

In #5729 we tried to make rustc offer suggestions when it thinks you forgot to write extern mod foo;. That pull request didn't land but this seems like a reasonable idea.

@alexcrichton
Copy link
Member

This seems to currently be implemented:

use bar::baz;
$ rustc foo.rs
foo.rs:1:5: 1:8 error: unresolved import. maybe a missing `extern crate bar`?
foo.rs:1 use bar::baz;
             ^~~
foo.rs:1:5: 1:13 error: failed to resolve import `bar::baz`
foo.rs:1 use bar::baz;
             ^~~~~~~~
error: aborting due to 2 previous errors

Closing (as this seems to be done)

flip1995 pushed a commit to flip1995/rust that referenced this issue Dec 6, 2020
update readme for specifying msrv

changelog: add some documentation for the `msrv` feature (rust-lang#6097)
related PR: rust-lang/rust-clippy#6201
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-linkage Area: linking into static, shared libraries and binaries C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

2 participants