Urgau
52300bf8d8
Uplift clippy::undropped_manually_drops to rustc
2023-06-08 11:41:34 +02:00
Urgau
5da606779c
Uplift clippy::cast_ref_to_mut to rustc
2023-05-31 12:28:38 +02:00
Urgau
7f99c7d3e6
Add invalid_from_utf8 analogous to invalid_from_utf8_unchecked
2023-05-27 00:18:28 +02:00
Urgau
7f8846a9ef
Uplift clippy::invalid_utf8_in_unchecked as invalid_from_utf8_unchecked
2023-05-27 00:16:47 +02:00
clubby789
f97fddab91
Ensure Fluent messages are in alphabetical order
2023-05-25 23:49:35 +00: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
d23f8957ae
Improve warning message by saying that it "does nothing"
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
475378f0c6
add match to diagnostic messages
2023-04-29 15:47:23 +00: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
kadiwa
85653831f7
typos
2023-04-17 09:16:07 +02:00
DaniPopes
677357d32b
Fix typos in compiler
2023-04-10 22:02:52 +02:00
Matthias Krüger
5937ec1915
Rollup merge of #109700 - clubby789:tidy-fluent-escape, r=compiler-errors
...
Lint against escape sequences in Fluent files
Fixes #109686 by checking for `\n`, `\"` and `\'` in Fluent files. It might be useful to have a way to opt out of this check, but all messages with violations currently do seem to be incorrect.
2023-03-29 21:19:50 +02:00
clubby789
979c265a5d
Check for escape sequences in Fluent resources
2023-03-29 18:34:29 +01:00
Mu001999
910a5ad2df
Emits suggestions for expressions with parentheses or not separately
2023-03-25 01:00:49 +08:00
Guillaume Gomez
825f0888cc
Move useless_anynous_reexport lint into unused_imports
2023-03-22 16:05:20 +01: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
est31
7e2ecb3cd8
Simplify message paths
...
This makes it easier to open the messages file while developing on features.
The commit was the result of automatted changes:
for p in compiler/rustc_*; do mv $p/locales/en-US.ftl $p/messages.ftl; rmdir $p/locales; done
for p in compiler/rustc_*; do sed -i "s#\.\./locales/en-US.ftl#../messages.ftl#" $p/src/lib.rs; done
2023-03-11 22:51:57 +01:00