rust/compiler/rustc_pattern_analysis/src
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
..
constructor.rs Avoid ref when using format! in compiler 2024-07-19 14:52:07 -04:00
errors.rs Pass translation closure to add_to_diag_with() as reference 2024-04-21 07:45:03 +00:00
lib.rs Avoid comments that describe multiple use items. 2024-07-17 08:02:46 +10:00
lints.rs Remove LintDiagnostic::msg 2024-05-23 04:08:35 +02:00
pat_column.rs Rename TypeCx -> PatCx 2024-03-13 13:56:38 +01:00
pat.rs Add blank lines after module-level //! comments. 2024-06-20 09:23:20 +10:00
rustc.rs pattern lowering: make sure we never call user-defined PartialEq instances 2024-07-18 11:58:16 +02:00
usefulness.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00