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

Error message grammar/typo: 'and unstable location' -> 'an' unstable location' #45057

Closed
hunteke opened this issue Oct 6, 2017 · 1 comment
Closed
Labels
A-diagnostics Area: Messages for errors, warnings, and lints C-enhancement Category: An issue proposing an enhancement or a PR with one. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@hunteke
Copy link

hunteke commented Oct 6, 2017

Rust learner here, diving into logging, and using my incorrect code. Very helpful and specific error message (OMG, thank you Rust devs!); just has a typo. A two-minute find-and-correct situation. The error message reads:

$ cargo build
   Compiling typo_error_msg v0.1.0 (file:///tmp/typo_error_msg)
error: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, and unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? (see issue #27812)

Note the ... sysroot, and unstable location; .... Should the and perhaps be an?

Steps to recreate:

  1. cargo new --bin typo_error_msg
  2. cd typo_error_msg
  3. sed -i '1i #[macro_use] extern crate log;\n' src/main.rs
  4. cargo build
hunteke added a commit to hunteke/rust that referenced this issue Oct 6, 2017
kennytm added a commit to kennytm/rust that referenced this issue Oct 8, 2017
…Oct, r=shepmaster

Fix typo, per rust-lang#45057.

This looks like a simple string -- one character -- fix.  Given that I'm currently running low on battery, I have not actually compiled and tested this.  But I am fully confident this passes muster.  If not, I'll be maintainer-educated, yes?  ;-)
@TimNN TimNN added A-diagnostics Area: Messages for errors, warnings, and lints C-enhancement Category: An issue proposing an enhancement or a PR with one. labels Oct 8, 2017
@estebank estebank added E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. E-mentor Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion. and removed E-mentor Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion. labels Oct 11, 2017
@estebank
Copy link
Contributor

Fixed in #45058.

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 C-enhancement Category: An issue proposing an enhancement or a PR with one. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

3 participants