lcnr
f51ec110a7
TypingMode 🤔
2024-10-29 17:01:24 +01:00
Michael Goulet
c682aa162b
Reformat using the new identifier sorting from rustfmt
2024-09-22 19:11:29 -04:00
Eduardo Sánchez Muñoz
0b20ffcb63
Remove needless returns detected by clippy in the compiler
2024-09-09 13:32:22 +02:00
Michael Goulet
bac19686a5
Use is_lang_item more
2024-08-13 16:44:53 -04:00
Nicholas Nethercote
84ac80f192
Reformat use declarations.
...
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
2024-07-29 08:26:52 +10:00
Nicholas Nethercote
c1ac4a2f28
Run rustfmt on files that need it.
...
Somehow these files aren't properly formatted. By default `x fmt` and `x
tidy` only check files that have changed against master, so if an
ill-formatted file somehow slips in it can stay that way as long as it
doesn't get modified(?)
I found these when I ran `x fmt` explicitly on every `.rs` file in the
repo, while working on
https://github.com/rust-lang/compiler-team/issues/750 .
2024-05-24 15:17:21 +10:00
Zachary S
66573b70a9
Use 'a' article for &Option.
2024-05-15 12:47:20 -05:00
Zachary S
77f288c18d
Include reference in lint diagnostic
2024-05-15 11:05:44 -05:00
Zachary S
4be041a2cd
Also apply warn(for_loops_over_fallibles) to &T and &mut T, not just T = Result/Option.
2024-05-15 11:05:44 -05:00
Michael Goulet
534e267d48
Rename some ObligationCauseCode variants
2024-05-10 10:42:57 -04:00
lcnr
8f9062530b
always use GenericArgsRef
2024-05-09 19:52:02 +00:00
Nicholas Nethercote
e6b3e20243
Remove extern crate rustc_session from rustc_lint.
2024-04-29 13:57:41 +10:00
Nicholas Nethercote
1881bfaa2b
Rename LintContext::emit_spanned_lint as LintContext::emit_span_lint.
2024-01-23 08:08:25 +11:00
Nilstrieb
21a870515b
Fix clippy::needless_borrow in the compiler
...
`x clippy compiler -Aclippy::all -Wclippy::needless_borrow --fix`.
Then I had to remove a few unnecessary parens and muts that were exposed
now.
2023-11-21 20:13:40 +01:00
Michael Goulet
b2d2184ede
Format all the let chains in compiler
2023-10-13 08:59:36 +00:00
Mahdi Dibaiee
e55583c4b8
refactor(rustc_middle): Substs -> GenericArg
2023-07-14 13:27:35 +01:00
Mark Rousskov
cc907f80b9
Re-format let-else per rustfmt update
2023-07-12 21:49:27 -04:00
lcnr
b8541eb767
use the correct param env
2023-03-21 09:57:22 +01:00
lcnr
791ce0b7b5
remove some trait solver helpers
...
they add more complexity then they are worth. It's confusing
which of these helpers should be used in which context.
2023-03-21 09:57:20 +01:00
Maybe Waffle
8751fa1a9a
if $c:expr { Some($r:expr) } else { None } =>> $c.then(|| $r)
2023-02-16 15:26:00 +00:00
Vincenzo Palazzo
7d2c1103d7
fix: use LocalDefId instead of HirId in trait res
...
use LocalDefId instead of HirId in trait resolution to simplify
the obligation clause resolution
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com >
2023-01-23 11:42:18 +00:00
Rejyr
88e5dd2530
refactor: cleanup
2023-01-09 18:57:02 -05:00
Rejyr
ca7df9a2a9
migrate: for_loops_over_fallibles.rs
2023-01-09 17:07:25 -05:00
Matthias Krüger
3af7df91fc
use &str / String literals instead of format!()
2022-12-18 16:17:46 +01:00
Michael Goulet
41e4218d2a
Use TraitEngine less
2022-11-02 04:11:05 +00:00
Maybe Waffle
9d4edff1b0
adopt to building infcx
2022-10-09 13:07:21 +00:00
Maybe Waffle
40f36fac49
adopt to new rustc lint api
2022-10-09 13:07:21 +00:00
Maybe Waffle
7434b9f0d1
fixup lint name
2022-10-09 13:07:21 +00:00