diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-02-17 06:37:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-17 06:37:37 +0100 |
| commit | c04801dbb971eb401d4dc75b493228e38e6d44f3 (patch) | |
| tree | 44a656bc419508d10ff4e8eff89d9da8d159525f /compiler/rustc_pattern_analysis/tests/complexity.rs | |
| parent | 767ec0a8ad548807b30f19619a29727661712276 (diff) | |
| parent | 9e390b299565c7c9054e3dd9189eb1ab76f9f4dd (diff) | |
| download | rust-c04801dbb971eb401d4dc75b493228e38e6d44f3.tar.gz rust-c04801dbb971eb401d4dc75b493228e38e6d44f3.zip | |
Rollup merge of #136844 - thaliaarchi:const-io-error, r=ChrisDenton
Use `const_error!` when possible Replace usages of `io::Error::new(io::ErrorKind::Variant, "constant string")` with `io::const_error!(io::ErrorKind::Variant, "constant string")` to avoid allocations when possible. Additionally, fix `&&str` error messages in SGX and missing/misplaced trailing commas in `const_error!`.
Diffstat (limited to 'compiler/rustc_pattern_analysis/tests/complexity.rs')
0 files changed, 0 insertions, 0 deletions
