rust/compiler/rustc_hir_analysis/src
Matthias Krüger cd8c5f78ec
Rollup merge of #127980 - nyurik:compiler-refs, r=oli-obk
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.

See also https://github.com/rust-lang/rust-clippy/issues/10851
2024-07-20 07:13:45 +02:00
..
check LTA: Diag: Detect bivariant ty params that are only used recursively 2024-07-19 18:53:40 +02:00
coherence Move trait selection error reporting to its own top-level module 2024-07-08 16:04:47 -04:00
collect Add ConstArgKind::Path and make ConstArg its own HIR node 2024-07-16 19:27:28 -07:00
errors Avoid ref when using format! in compiler 2024-07-19 14:52:07 -04:00
hir_ty_lowering Rollup merge of #127814 - folkertdev:c-cmse-nonsecure-call-error-messages, r=oli-obk 2024-07-19 20:03:56 +02:00
impl_wf_check Move trait selection error reporting to its own top-level module 2024-07-08 16:04:47 -04:00
outlives Avoid ref when using format! in compiler 2024-07-19 14:52:07 -04:00
variance Slightly refactor the dumping of HIR analysis data 2024-06-20 20:31:32 +02:00
autoderef.rs Make builtin_deref just return a Ty 2024-05-09 22:55:00 -04:00
bounds.rs Add constness to TraitDef 2024-07-03 15:37:34 +00:00
check_unused.rs Remove LintDiagnostic::msg 2024-05-23 04:08:35 +02:00
collect.rs Add ConstArgKind::Path and make ConstArg its own HIR node 2024-07-16 19:27:28 -07:00
constrained_generic_params.rs Auto merge of #125076 - compiler-errors:alias-term, r=lcnr 2024-05-13 22:20:43 +00:00
errors.rs Rollup merge of #127966 - oli-obk:structured_diag, r=compiler-errors 2024-07-19 20:03:57 +02:00
hir_wf_check.rs Handle safety keyword for extern block inner items 2024-06-04 14:19:42 -03:00
impl_wf_check.rs Use structured suggestions for unconstrained generic parameters on impl blocks 2024-07-19 14:21:56 +00:00
lib.rs Remove structured_errors module 2024-07-08 19:29:55 +00:00