Urgau
7f8846a9ef
Uplift clippy::invalid_utf8_in_unchecked as invalid_from_utf8_unchecked
2023-05-27 00:16:47 +02:00
Urgau
6b08a745a4
Rename forget_ref
lint to forgetting_references
2023-05-21 14:28:09 +02:00
Urgau
c93d9c1794
Rename drop_ref
lint to dropping_references
2023-05-21 14:16:41 +02:00
Urgau
85a1828943
Rename forget_copy
lint to forgetting_copy_types
2023-05-21 14:09:03 +02:00
Urgau
1c7ab18c08
Rename drop_copy
lint to dropping_copy_types
2023-05-21 13:37:32 +02:00
Urgau
e280df556d
Add note to suggest using let _ = x
to ignore the value
2023-05-10 19:36:02 +02:00
Urgau
457fa953a2
Use label instead of note to be more consistent with other lints
2023-05-10 19:36:02 +02:00
Urgau
971b9b23b5
Uplift clippy::forget_copy to rustc
2023-05-10 19:36:01 +02:00
Urgau
1ef9c163aa
Uplift clippy::forget_ref to rustc
2023-05-10 19:36:01 +02:00
Urgau
156f5563c7
Uplift clippy::drop_copy to rustc
2023-05-10 19:36:01 +02:00
Urgau
28cdbc2a64
Uplift clippy::drop_ref to rustc
2023-05-10 19:36:01 +02:00
Deadbeef
5c99175a9e
uplift clippy::clone_double_ref
as suspicious_double_ref_op
2023-04-28 17:24:48 +00:00
clubby789
eeb527602a
Add deny lint to prevent untranslatable diagnostics using static strings
2023-04-25 18:44:49 +01:00
DaniPopes
677357d32b
Fix typos in compiler
2023-04-10 22:02:52 +02:00
Mu001999
910a5ad2df
Emits suggestions for expressions with parentheses or not separately
2023-03-25 01:00:49 +08:00
Mu42
6034b2fcb8
Use independent suggestions
2023-03-24 20:09:02 +08:00
Guillaume Gomez
825f0888cc
Move useless_anynous_reexport lint into unused_imports
2023-03-22 16:05:20 +01:00
Dylan DPC
462e7e7a10
Rollup merge of #109003 - GuillaumeGomez:useless-anonymous-reexport-lint, r=cjgillot
...
Add `useless_anonymous_reexport` lint
This is a follow-up of https://github.com/rust-lang/rust/pull/108936 . We once again show all anonymous re-exports in rustdoc, however we also wanted to add a lint to let users know that it very likely doesn't have the effect they think it has.
2023-03-19 15:33:57 +05:30
Ezra Shaw
35103fe8ab
error-msg: expand suggestion for unused lint
2023-03-15 23:30:12 +13:00
Guillaume Gomez
ac4ea52980
Add test for useless_anonymous_reexport lint
2023-03-12 16:33:37 +01:00
Guillaume Gomez
2df7770d5e
Add lint for useless anonymous reexports
2023-03-12 15:12:42 +01:00
Obei Sideg
a914f37409
Add lint against Iterator::map
receiving a callable that returns ()
2023-02-23 13:57:06 +03:00
David Wood
d1fcf61117
errors: generate typed identifiers in each crate
...
Instead of loading the Fluent resources for every crate in
`rustc_error_messages`, each crate generates typed identifiers for its
own diagnostics and creates a static which are pulled together in the
`rustc_driver` crate and provided to the diagnostic emitter.
Signed-off-by: David Wood <david.wood@huawei.com>
2023-02-22 09:15:53 +00:00
y21
0610df9314
lint: don't suggest assume_init for uninhabited types
2023-02-18 19:05:44 +01:00
clubby789
eebd31c187
Don't eagerly convert principal to string
2023-02-17 14:44:58 +00:00
yukang
cb55d10eb2
Fix #103320 , add explanatory message for [#must_use]
2023-02-04 00:27:03 +08:00
Gary Guo
66f3ab90a1
Reintroduce multiple_supertrait_upcastable lint
2023-01-28 15:08:07 +00:00
Maybe Waffle
6a28fb42a8
Remove double spaces after dots in comments
2023-01-17 08:09:33 +00:00
Rejyr
fe09291036
migrate: deref_into_dyn_supertrait.rs
2023-01-09 18:57:02 -05:00
Rejyr
f38db48dbd
add: allow lints in lints.rs
2023-01-09 18:57:02 -05:00
Rejyr
758140e196
migrate: rest of builtin.rs
without builtin_asm_labels
2023-01-09 18:56:59 -05:00
Rejyr
587d49766b
migrate: UnsafeCode
in builtin.rs
2023-01-09 17:07:25 -05:00
Rejyr
c06a2426b2
migrate: hidden_unicode_codepoints.rs
2023-01-09 17:07:25 -05:00
Rejyr
78fce795d8
refactor: refactor to derive for some lints.
2023-01-09 17:07:25 -05:00
Rejyr
ca7df9a2a9
migrate: for_loops_over_fallibles.rs
2023-01-09 17:07:25 -05:00
Rejyr
3c1a1f3643
migrate: expect.rs
2023-01-09 17:07:25 -05:00
Rejyr
6ffecd2059
migrate(wip): builtin.rs
2023-01-09 17:07:25 -05:00
Rejyr
0b19227524
migrate: internal.rs
2023-01-09 17:07:25 -05:00
Rejyr
5ffaae758e
migrate: ImproperCTypes
2023-01-09 17:07:25 -05:00
Rejyr
e610047940
migrate: let_underscore.rs
...
fix: NonBindingLetSub
2023-01-09 17:07:25 -05:00
Rejyr
80df25e160
migrate: levels.rs
2023-01-09 17:07:25 -05:00
Rejyr
ab66ea61cf
add: emit{,_spanned}_lint
for LintLevelsBuilder
...
add: `emit_spanned_lint` and `emit_lint` for `LintLevelsBuilder`
migrate: `DeprecatedLintName`
2023-01-09 17:07:25 -05:00
Rejyr
f9289c35fb
refactor: comment about lint location
2023-01-09 17:07:25 -05:00
Rejyr
a0614ec2c3
fix: merge conflict
2023-01-09 17:07:25 -05:00
Rejyr
dc00aa3114
update: lints.rs
for renamed traits
...
update: `lints.rs` for renamed `SessionSubdiagnostic` and `AddSubdiagnostic`
fix: NonSnakeCaseDiagSub
fix: OverflowingBinHexSign
2023-01-09 17:07:25 -05:00
Rejyr
8b897bbce6
migrate: early.rs
and enum_intrinsics_non_enums.rs
2023-01-09 17:07:25 -05:00
Rejyr
c63ba52562
migrate: array_into_iter.rs
2023-01-09 17:07:25 -05:00
Rejyr
95d3e0cb78
migrate: methods.rs
2023-01-09 17:07:25 -05:00
Rejyr
3f69c1b523
migrate: non_ascii_idents.rs
2023-01-09 17:07:25 -05:00
Rejyr
384010b9f4
migrate: non_fmt_panic.rs
2023-01-09 17:07:25 -05:00