about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-03-20 09:15:00 +0100
committerGitHub <noreply@github.com>2022-03-20 09:15:00 +0100
commit355d87807fe68426bf525971bc9fdadc63c6c796 (patch)
treef1516870df9d3adefbefd8d8faefe3b74aed52e8 /compiler/rustc_codegen_gcc/example/std_example.rs
parent24a7aad08241556a532b76fb601c5aba53a695bb (diff)
parent1338a45d9814b031466753a99a58ca688014f9cf (diff)
downloadrust-355d87807fe68426bf525971bc9fdadc63c6c796.tar.gz
rust-355d87807fe68426bf525971bc9fdadc63c6c796.zip
Rollup merge of #95108 - scottmcm:more-in-target-display, r=Dylan-DPC
Give more details in `Display` for `hir::Target`

Made because I was making a code change and got a very confusing "should be applied to a method, not a method" error.

```
error[E0718]: `into_try_type` language item must be applied to a method
   --> library\core\src\ops\try_trait.rs:352:32
    |
352 |     #[cfg_attr(not(bootstrap), lang = "into_try_type")]
    |                                ^^^^^^^^^^^^^^^^^^^^^^ attribute should be applied to a method, not a method
```

With this change the error is more actionable

```
error[E0718]: `into_try_type` language item must be applied to a required trait method
   --> library\core\src\ops\try_trait.rs:352:32
    |
352 |     #[cfg_attr(not(bootstrap), lang = "into_try_type")]
    |                                ^^^^^^^^^^^^^^^^^^^^^^ attribute should be applied to a required trait method, not a provided trait method
```
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions