File tree 6 files changed +8
-8
lines changed
6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -234,14 +234,14 @@ pub fn create_bcx<'a, 'gctx>(
234
234
| CompileMode :: RunCustomBuild => {
235
235
if ws. gctx ( ) . get_env ( "RUST_FLAGS" ) . is_ok ( ) {
236
236
gctx. shell ( ) . warn (
237
- "Cargo does not read `RUST_FLAGS` environment variable. Did you mean `RUSTFLAGS`? " ,
237
+ "Ignoring incorrect environment variable `RUST_FLAGS`; Rust flags are passed via `RUSTFLAGS`. " ,
238
238
) ?;
239
239
}
240
240
}
241
241
CompileMode :: Doc { .. } | CompileMode :: Doctest | CompileMode :: Docscrape => {
242
242
if ws. gctx ( ) . get_env ( "RUSTDOC_FLAGS" ) . is_ok ( ) {
243
243
gctx. shell ( ) . warn (
244
- "Cargo does not read `RUSTDOC_FLAGS` environment variable. Did you mean `RUSTDOCFLAGS`? "
244
+ "Ignoring incorrect environment variable `RUSTDOC_FLAGS`; Rust flags are passed via `RUSTDOCFLAGS`. "
245
245
) ?;
246
246
}
247
247
}
Original file line number Diff line number Diff line change @@ -863,7 +863,7 @@ impl<'gctx> Source for RegistrySource<'gctx> {
863
863
// Attempt to handle misspellings by searching for a chain of related
864
864
// names to the original name. The resolver will later
865
865
// reject any candidates that have the wrong name, and with this it'll
866
- // along the way produce helpful "did you mean? " suggestions.
866
+ // have enough information to offer "a similar crate exists " suggestions.
867
867
// For now we only try the canonical lysing `-` to `_` and vice versa.
868
868
// More advanced fuzzy searching become in the future.
869
869
for name_permutation in [
Original file line number Diff line number Diff line change @@ -1701,8 +1701,8 @@ pub fn to_real_manifest(
1701
1701
1702
1702
if summary. features ( ) . contains_key ( "default-features" ) {
1703
1703
warnings. push (
1704
- "`default-features = [ \" .. \" ]` was found in [ features] . \
1705
- Did you mean to use `default = [ \" .. \" ]`? "
1704
+ "`[features ]` defines a feature named `default- features` . \
1705
+ Note that only a feature named `default` will be enabled by default. "
1706
1706
. to_string ( ) ,
1707
1707
)
1708
1708
}
Original file line number Diff line number Diff line change @@ -1766,7 +1766,7 @@ fn warn_if_default_features() {
1766
1766
. build ( ) ;
1767
1767
1768
1768
p. cargo ( "check" ) . with_stderr_data ( str![ [ r#"
1769
- [WARNING] `default-features = [".." ]` was found in [ features]. Did you mean to use `default = [".."]`?
1769
+ [WARNING] `[features ]` defines a feature named `default- features`. Note that only a feature named `default` will be enabled by default.
1770
1770
[LOCKING] 1 package to latest compatible version
1771
1771
[CHECKING] foo v0.0.1 ([ROOT]/foo)
1772
1772
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ fn rustdocflags_misspelled() {
115
115
p. cargo ( "doc" )
116
116
. env ( "RUSTDOC_FLAGS" , "foo" )
117
117
. with_stderr_data ( str![ [ r#"
118
- [WARNING] Cargo does not read `RUSTDOC_FLAGS` environment variable. Did you mean `RUSTDOCFLAGS`?
118
+ [WARNING] Ignoring incorrect environment variable `RUSTDOC_FLAGS`; Rust flags are passed via `RUSTDOCFLAGS`.
119
119
...
120
120
"# ] ] )
121
121
. run ( ) ;
Original file line number Diff line number Diff line change @@ -1471,7 +1471,7 @@ fn env_rustflags_misspelled_build_script() {
1471
1471
p. cargo ( "check" )
1472
1472
. env ( "RUST_FLAGS" , "foo" )
1473
1473
. with_stderr_data ( str![ [ r#"
1474
- [WARNING] Cargo does not read `RUST_FLAGS` environment variable. Did you mean `RUSTFLAGS`?
1474
+ [WARNING] Ignoring incorrect environment variable `RUST_FLAGS`; Rust flags are passed via `RUSTFLAGS`.
1475
1475
[COMPILING] foo v0.0.1 ([ROOT]/foo)
1476
1476
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
1477
1477
You can’t perform that action at this time.
0 commit comments