Skip to content

make a bunch of lints texts adhere to rustc dev guide #5888

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
Aug 10, 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
e57aafe
too-many-lines: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
0876f17
bool-comparison: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
fd379a8
builtin-type-shadow: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
40416c0
naive_bytecount: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
9b7ab1d
checked-conversions: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
8679dd3
unnecessary_unwrap, panicking_unwrap: make lints adhere to lint messa…
matthiaskrgr Jul 23, 2020
3d592b5
cmp_null: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
6b0a6a7
default-trait-access: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
ba7a01a
double-comparisons: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
590b91d
double-parens: make lint adhere to lint message convention and do min…
matthiaskrgr Jul 23, 2020
0db5cb1
drop_bounds: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
2792260
empty-liner-after-outer-attr: make lint adhere to lint message conven…
matthiaskrgr Jul 23, 2020
4418ff1
unneeded-field-pattern: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
b36a6c9
ref_in_deref: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
7954c22
unknown: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
fe37ddb
suspicious-arithmetic-impl: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
5d69ca5
also change "deprecated-attribute" message
matthiaskrgr Jul 23, 2020
3e1e0c9
redundant-static-lifetimes: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
81f77a4
range-zip-with-len: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
9178363
path-buf-push-overwrite: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
e519bb3
overflow-check-conditional: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
178da9b
neg-multiply: make lint adhere to lint message convention
matthiaskrgr Jul 23, 2020
dabf989
neg-cmp-op-on-partial-ord: make lint adhere to lint message convention
matthiaskrgr Jul 28, 2020
c514ff0
Update clippy_lints/src/neg_cmp_op_on_partial_ord.rs
matthiaskrgr Aug 10, 2020
1b46e48
Update clippy_lints/src/unwrap.rs
matthiaskrgr Aug 10, 2020
f59ec19
run cargo dev update-lints
matthiaskrgr Aug 10, 2020
6d0b5e2
update test stderr
matthiaskrgr Aug 10, 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
builtin-type-shadow: make lint adhere to lint message convention
  • Loading branch information
matthiaskrgr committed Aug 10, 2020
commit fd379a889e25c94c0568fe6fc08d0783bcbc3dd7
2 changes: 1 addition & 1 deletion clippy_lints/src/misc_early.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ impl EarlyLintPass for MiscEarlyLints {
cx,
BUILTIN_TYPE_SHADOW,
param.ident.span,
&format!("This generic shadows the built-in type `{}`", name),
&format!("this generic shadows the built-in type `{}`", name),
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/builtin-type-shadow.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: This generic shadows the built-in type `u32`
error: this generic shadows the built-in type `u32`
--> $DIR/builtin-type-shadow.rs:4:8
|
LL | fn foo<u32>(a: u32) -> u32 {
Expand Down