about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-09-06 19:31:48 +0200
committerGitHub <noreply@github.com>2023-09-06 19:31:48 +0200
commit4a31cc859b376b853ab40961c26b99136a6a1e61 (patch)
treee40dce9bc4f5f700cab5b084d75be762b6e748c3 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentb046541b62ca9767498f356a031d0814729d80a6 (diff)
parent6a286e775c51efb5f05bb98ed2df6b9a974574ad (diff)
downloadrust-4a31cc859b376b853ab40961c26b99136a6a1e61.tar.gz
rust-4a31cc859b376b853ab40961c26b99136a6a1e61.zip
Rollup merge of #115473 - gurry:113110-expected-item, r=compiler-errors
Add explanatory note to 'expected item' error

Fixes #113110

It changes the diagnostic from this:

```
error: expected item, found `5`
 --> ../test.rs:1:1
  |
1 | 5
  | ^ expected item
 ```
to this:
```
error: expected item, found `5`
 --> ../test.rs:1:1
  |
1 | 5
  | ^ expected item
  |
  = note: items are things that can appear at the root of a module
  = note: for a full list see https://doc.rust-lang.org/reference/items.html
```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions