mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Auto merge of #6386 - rust-lang:flip1995-patch-1, r=ebroto
Remove mention of possibility to specify the MSRV with a tilde/caret As `@taiki-e` explained in https://github.com/rust-lang/rust-clippy/pull/6379#discussion_r530743279, mentioning this might be problematic. changelog: none
This commit is contained in:
commit
f9b8a59615
@ -182,7 +182,7 @@ cargo clippy -- -W clippy::lint_name
|
|||||||
```
|
```
|
||||||
|
|
||||||
This also works with lint groups. For example you
|
This also works with lint groups. For example you
|
||||||
can run Clippy with warnings for all lints enabled:
|
can run Clippy with warnings for all lints enabled:
|
||||||
```terminal
|
```terminal
|
||||||
cargo clippy -- -W clippy::pedantic
|
cargo clippy -- -W clippy::pedantic
|
||||||
```
|
```
|
||||||
@ -214,7 +214,8 @@ fn main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Tilde/Caret version requirements (like `^1.0` or `~1.2`) can be specified as well.
|
You can also omit the patch version when specifying the MSRV, so `msrv = 1.30`
|
||||||
|
is equivalent to `msrv = 1.30.0`.
|
||||||
|
|
||||||
Note: `custom_inner_attributes` is an unstable feature so it has to be enabled explicitly.
|
Note: `custom_inner_attributes` is an unstable feature so it has to be enabled explicitly.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user