Michael Goulet
36076ecdc7
Clarify implicit captures for RPITIT
2024-10-10 11:46:51 -07:00
Michael Goulet
c682aa162b
Reformat using the new identifier sorting from rustfmt
2024-09-22 19:11:29 -04:00
León Orell Valerian Liehr
682c5f485b
Explicitly mark a hack as a HACK and elaborate its comment
2024-09-18 19:36:44 +02:00
Esteban Küber
bd8e88fd7b
Do not ICE with incorrect empty suggestion
...
When we have two types with the same name, one without type parameters and the other with type parameters and a derive macro, we were before incorrectly suggesting to remove type parameters from the former, which ICEd because we were suggesting to remove nothing. We now gate against this.
The output is still not perfect. E0107 should explicitly detect this case and provide better context, but for now let's avoid the ICE.
2024-09-18 19:21:07 +02:00
Michael Goulet
ae8b4607c6
Introduce distinct error codes for precise capturing
2024-09-16 10:56:22 -04:00
Michael Goulet
954419aab0
Simplify some nested if statements
2024-09-11 13:45:23 -04:00
Nicholas Nethercote
cc16c902f1
Remove #[macro_use] extern crate tracing
from rustc_hir_analysis
.
2024-08-30 17:14:59 +10:00
Nicholas Nethercote
5acf4e7b4b
Add warn(unreachable_pub)
to rustc_hir_analysis
.
2024-08-27 13:14:50 +10: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
Esteban Küber
921de9d8ea
Revert suggestion verbosity change
2024-07-22 22:51:53 +00:00
Esteban Küber
b30fdec5fb
On generic and lifetime removal suggestion, do not leave behind stray ,
2024-07-22 22:04:49 +00:00
Esteban Küber
5c2b36a21c
Change suggestion message wording
2024-07-22 22:04:49 +00:00
Esteban Küber
c807ac0340
Use verbose suggestion for "wrong # of generics"
2024-07-22 22:04:49 +00:00
Yuri Astrakhan
aef0e346de
Avoid ref when using format! in compiler
...
Clean up a few minor refs in `format!` macro, as it has a performance cost. Apparently the compiler is unable to inline `format!("{}", &variable)`, and does a run-time double-reference instead (format macro already does one level referencing). Inlining format args prevents accidental `&` misuse.
2024-07-19 14:52:07 -04:00
Oli Scherer
af9ab1b026
Remove structured_errors
module
2024-07-08 19:29:55 +00:00
Michael Goulet
57085a06d9
Explicitly mention Self
2024-04-20 11:39:43 -04:00
Michael Goulet
fa0428c9d0
Flip spans for precise capturing syntax not capturing a ty/ct param
2024-04-20 10:35:04 -04:00
Michael Goulet
52c6b101ea
Use a path instead of an ident (and stop manually resolving)
2024-04-15 16:45:26 -04:00
Michael Goulet
ce8961039e
Some ordering and duplication checks
2024-04-15 16:45:26 -04:00
Michael Goulet
42ba57c013
Validation and other things
2024-04-15 16:45:01 -04:00
Oli Scherer
1d6cd8daf0
Start handling pattern types at the HIR -> Ty conversion boundary
2024-04-08 12:01:50 +00:00