8000 Rollup of 8 pull requests by Dylan-DPC-zz · Pull Request #69746 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

Rollup of 8 pull requests #69746

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Mar 6, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
c745b4a
Add explanation for E0380
GuillaumeGomez Mar 4, 2020
6db7e34
use integer assoc consts instead of methods
RalfJung Mar 4, 2020
f0c3cf2
cover some more nearby cases
RalfJung Mar 4, 2020
729d49d
Update macros.rs: fix documentation typo.
fables-tales Mar 4, 2020
07168f9
Don't use .ok() before unwrapping via .expect() on a Result.
matthiaskrgr Mar 4, 2020
569676b
Use .map() to modify data inside Options instead of using .and_then(|…
matthiaskrgr Mar 4, 2020
38f5db7
Use .as_deref() instead of .as_ref().map(Deref::deref) (clippy::optio…
matthiaskrgr Mar 4, 2020
d8d2004
Don't use "if let" bindings to only check a value and not actually bi…
matthiaskrgr Mar 4, 2020
80ed505
Use single-char patter on {ends,starts}_with and remove clone on copy…
matthiaskrgr Mar 4, 2020
6ed4829
Make link to `std::str` active
LeSeulArtichaut Mar 5, 2020
6b28a8c
Clean E0382 and E0384 explanations
GuillaumeGomez Mar 5, 2020
edd3e17
Remove redundant patterns when matching ( x @ _ to x) (clippy::redu…
matthiaskrgr Mar 5, 2020
c2bbe33
Const items have by default a static lifetime, there's no need to ann…
matthiaskrgr Mar 5, 2020
3e70c8e
Use simple 'for i in x' loops instead of 'while let Some(x) = x.next(…
matthiaskrgr Mar 5, 2020
3fc5c11
Use righthand '&' instead of lefthand "ref". (clippy::toplevel_ref_arg)
matthiaskrgr Mar 5, 2020
a1c3eb6
Don't always eval arguments inside .expect(), use unwrap_or_else and …
matthiaskrgr Mar 5, 2020
8ba92d9
Use more efficient &&str to String conversion (clippy::inefficient_to…
matthiaskrgr Mar 5, 2020
84577c8
Don't pass &mut where immutable reference (&) is sufficient (clippy::…
matthiaskrgr Mar 5, 2020
79bc934
Fixed a typo
TrolledWoods Mar 5, 2020
e01dc83
Rollup merge of #69697 - GuillaumeGomez:explanation-e0380, r=Dylan-DPC
Dylan-DPC Mar 5, 2020
44f184a
Rollup merge of #69698 - RalfJung:int_assoc, r=davidtwco
Dylan-DPC Mar 5, 2020
1896266
Rollup merge of #69711 - penelopezone:patch-1, r=steveklabnik
Dylan-DPC Mar 5, 2020
22a743b
Rollup merge of #69713 - matthiaskrgr:more_cleanup, r=cramertj
Dylan-DPC Mar 5, 2020
7aac135
Rollup merge of #69728 - LeSeulArtichaut:patch-1, r=steveklabnik
Dylan-DPC Mar 5, 2020
558115b
Rollup merge of #69732 - GuillaumeGomez:cleanup-e0382-e0384, r=Dylan-DPC
Dylan-DPC Mar 5, 2020
67d735c
Rollup merge of #69736 - matthiaskrgr:even_more_clippy, r=Dylan-DPC
Dylan-DPC Mar 5, 2020
80c8434
Rollup merge of #69742 - TrolledWoods:patch-1, r=jonas-schievink
Dylan-DPC Mar 5, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clean E0382 and E0384 explanations
  • Loading branch information
GuillaumeGomez committed Mar 5, 2020
commit 6b28a8c46f0578d5edef19d4ba7500bae63c7962
3 changes: 1 addition & 2 deletions src/librustc_error_codes/error_codes/E0382.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
This error occurs when an attempt is made to use a variable after its contents
have been moved elsewhere.
A variable was used after its contents have been moved elsewhere.

Erroneous code example:

Expand Down
2 changes: 1 addition & 1 deletion src/librustc_error_codes/error_codes/E0384.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This error occurs when an attempt is made to reassign an immutable variable.
An immutable variable was reassigned.

Erroneous code example:

Expand Down
0