forked from rust-lang/rust-clippy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate the wiki and remove the lint list from the README (fixes ru…
- Loading branch information
Showing
8 changed files
with
228 additions
and
571 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -12,9 +12,3 @@ Steps to publish a new clippy version | |
- `git pull`. | ||
- `git tag -s v0.0.X -m "v0.0.X"`. | ||
- `git push --tags`. | ||
- `git clone [email protected]:rust-lang-nursery/rust-clippy.wiki.git ../rust-clippy.wiki` | ||
- `./util/update_wiki.py` | ||
- `cd ../rust-clippy.wiki` | ||
- `git add *` | ||
- `git commit` | ||
- `git push` |
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
File renamed without changes.
28 changes: 9 additions & 19 deletions
28
...sts/examples/needless_borrowed_ref.stderr → tests/ui/needless_borrowed_ref.stderr
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 |
---|---|---|
@@ -1,38 +1,28 @@ | ||
error: this pattern takes a reference on something that is being de-referenced | ||
--> needless_borrowed_ref.rs:8:34 | ||
--> $DIR/needless_borrowed_ref.rs:8:34 | ||
| | ||
8 | let _ = v.iter_mut().filter(|&ref a| a.is_empty()); | ||
| ^^^^^^ help: try removing the `&ref` part and just keep `a` | ||
| ^^^^^^ help: try removing the `&ref` part and just keep: `a` | ||
| | ||
= note: `-D needless-borrowed-reference` implied by `-D warnings` | ||
= help: for further information visit https://github.com/Manishearth/rust-clippy/wiki#needless_borrowed_reference | ||
|
||
error: this pattern takes a reference on something that is being de-referenced | ||
--> needless_borrowed_ref.rs:13:17 | ||
--> $DIR/needless_borrowed_ref.rs:13:17 | ||
| | ||
13 | if let Some(&ref v) = thingy { | ||
| ^^^^^^ help: try removing the `&ref` part and just keep `v` | ||
| | ||
= help: for further information visit https://github.com/Manishearth/rust-clippy/wiki#needless_borrowed_reference | ||
| ^^^^^^ help: try removing the `&ref` part and just keep: `v` | ||
|
||
error: this pattern takes a reference on something that is being de-referenced | ||
--> needless_borrowed_ref.rs:42:27 | ||
--> $DIR/needless_borrowed_ref.rs:42:27 | ||
| | ||
42 | (&Animal::Cat(v), &ref k) | (&ref k, &Animal::Cat(v)) => (), // lifetime mismatch error if there is no '&ref' | ||
| ^^^^^^ help: try removing the `&ref` part and just keep `k` | ||
| | ||
= help: for further information visit https://github.com/Manishearth/rust-clippy/wiki#needless_borrowed_reference | ||
| ^^^^^^ help: try removing the `&ref` part and just keep: `k` | ||
|
||
error: this pattern takes a reference on something that is being de-referenced | ||
--> needless_borrowed_ref.rs:42:38 | ||
--> $DIR/needless_borrowed_ref.rs:42:38 | ||
| | ||
42 | (&Animal::Cat(v), &ref k) | (&ref k, &Animal::Cat(v)) => (), // lifetime mismatch error if there is no '&ref' | ||
| ^^^^^^ help: try removing the `&ref` part and just keep `k` | ||
| | ||
= help: for further information visit https://github.com/Manishearth/rust-clippy/wiki#needless_borrowed_reference | ||
|
||
error: aborting due to previous error(s) | ||
| ^^^^^^ help: try removing the `&ref` part and just keep: `k` | ||
|
||
error: Could not compile `clippy_tests`. | ||
error: aborting due to 4 previous errors | ||
|
||
To learn more, run the command again with --verbose. |
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 was deleted.
Oops, something went wrong.