forked from rust-lang/rust
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#6395 - Suyash458:master, r=flip1995
switch Version/VersionReq usages to RustcVersion add `rustc-semver` to dependencies switch `Version/VersionReq` usages to `RustcVersion` changelog: none
- Loading branch information
Showing
10 changed files
with
103 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
error: stripping a prefix manually | ||
--> $DIR/min_rust_version_attr.rs:60:24 | ||
| | ||
LL | assert_eq!(s["hello, ".len()..].to_uppercase(), "WORLD!"); | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `-D clippy::manual-strip` implied by `-D warnings` | ||
note: the prefix was tested here | ||
--> $DIR/min_rust_version_attr.rs:59:9 | ||
| | ||
LL | if s.starts_with("hello, ") { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
help: try using the `strip_prefix` method | ||
| | ||
LL | if let Some(<stripped>) = s.strip_prefix("hello, ") { | ||
LL | assert_eq!(<stripped>.to_uppercase(), "WORLD!"); | ||
| | ||
|
||
error: stripping a prefix manually | ||
--> $DIR/min_rust_version_attr.rs:72:24 | ||
| | ||
LL | assert_eq!(s["hello, ".len()..].to_uppercase(), "WORLD!"); | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
note: the prefix was tested here | ||
--> $DIR/min_rust_version_attr.rs:71:9 | ||
| | ||
LL | if s.starts_with("hello, ") { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
help: try using the `strip_prefix` method | ||
| | ||
LL | if let Some(<stripped>) = s.strip_prefix("hello, ") { | ||
LL | assert_eq!(<stripped>.to_uppercase(), "WORLD!"); | ||
| | ||
|
||
error: aborting due to 2 previous errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters