bjorn3
1fcae03369
Rustfmt
2025-02-08 22:12:13 +00:00
Michael Goulet
c682aa162b
Reformat using the new identifier sorting from rustfmt
2024-09-22 19:11:29 -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
Waffle Lapkin
698d7a031e
Inline & delete Ty::new_unit
, since it's just a field access
2024-05-02 17:49:23 +02:00
Nicholas Nethercote
e6b3e20243
Remove extern crate rustc_session
from rustc_lint
.
2024-04-29 13:57:41 +10:00
Guillaume Gomez
b376f49e30
Rename hir::Local
into hir::LetStmt
2024-03-22 20:36:21 +01:00
Nicholas Nethercote
1881bfaa2b
Rename LintContext::emit_spanned_lint
as LintContext::emit_span_lint
.
2024-01-23 08:08:25 +11:00
许杰友 Jieyou Xu (Joe)
8da09aed94
Add allow-by-default lint for unit bindings
...
This lint is not triggered if any of the following conditions are met:
- The user explicitly annotates the binding with the `()` type.
- The binding is from a macro expansion.
- The user explicitly wrote `let () = init;`
- The user explicitly wrote `let pat = ();`. This is allowed for local
lifetimes.
2023-11-20 11:45:44 +08:00