-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
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:
cargo new --bin typo_error_msg
cd typo_error_msg
sed -i '1i #[macro_use] extern crate log;\n' src/main.rs
cargo build
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.