diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-15 05:11:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-15 05:11:40 +0200 |
| commit | c99c4d4057dd90ff517ed803d3956ed8ce4de7d1 (patch) | |
| tree | 51e02cdc747792cbc32d27869c3205d1b098ce48 /compiler/rustc_hir_analysis/src/collect/predicates_of.rs | |
| parent | d82a49dba21622ba34e37877281438220cc216f1 (diff) | |
| parent | dda3066805ef0a0ad5f2d0d2cdb6bc0b66d8c19b (diff) | |
| download | rust-c99c4d4057dd90ff517ed803d3956ed8ce4de7d1.tar.gz rust-c99c4d4057dd90ff517ed803d3956ed8ce4de7d1.zip | |
Rollup merge of #131710 - ShE3py:parse_format_apostrophes, r=compiler-errors
Remove `'apostrophes'` from `rustc_parse_format`
The rest of the compiler uses \`grave accents\`, while `rustc_parse_format` uses \`'apostrophes.'\`
Also makes the crate compile as a stand-alone:
```
~/rust/compiler/rustc_parse_format $ cargo check
Compiling rustc_index_macros v0.0.0 (/home/lieselotte/rust/compiler/rustc_index_macros)
error[E0277]: `syn::Lit` doesn't implement `Debug`
--> compiler/rustc_index_macros/src/newtype.rs:52:57
|
52 | panic!("Specified multiple max: {old:?}");
| ^^^^^^^ `syn::Lit` cannot be formatted using `{:?}` because it doesn't implement `Debug`
|
= help: the trait `Debug` is not implemented for `syn::Lit`
= note: this error originates in the macro `$crate::const_format_args` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: `syn::Lit` doesn't implement `Debug`
--> compiler/rustc_index_macros/src/newtype.rs:64:74
|
64 | panic!("Specified multiple debug format options: {old:?}");
| ^^^^^^^ `syn::Lit` cannot be formatted using `{:?}` because it doesn't implement `Debug`
|
= help: the trait `Debug` is not implemented for `syn::Lit`
= note: this error originates in the macro `$crate::const_format_args` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0277`.
error: could not compile `rustc_index_macros` (lib) due to 2 previous errors
```
`@rustbot` label +A-diagnostics
Diffstat (limited to 'compiler/rustc_hir_analysis/src/collect/predicates_of.rs')
0 files changed, 0 insertions, 0 deletions
