about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2025-03-14 17:26:17 +0100
committerGitHub <noreply@github.com>2025-03-14 17:26:17 +0100
commit881d237cd9e52b6d3b1d7f7a47b2b603af1e21c4 (patch)
tree1429c37513fbf1ef640cb2f3583b358c040ef552 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentf8842bd75261b95cc6ec83a004dd881b9b9f656c (diff)
parenta73e44bce16c9610c5415db3037a69eef0df3c4e (diff)
downloadrust-881d237cd9e52b6d3b1d7f7a47b2b603af1e21c4.tar.gz
rust-881d237cd9e52b6d3b1d7f7a47b2b603af1e21c4.zip
Rollup merge of #137619 - Pyr0de:issue_137249, r=fmease
Provide helpful diagnostics for shebang lookalikes

When `[` is not found after a `#!`, a note will be added to the exisiting error

```
error: expected `[`, found `/`
 --> src/main.rs:2:3
  |
2 | #!/usr/bin/env -S cargo +nightly -Zscript
  |   ^ expected `[`
  |
  = note: the token sequence `#!` here looks like the start of a shebang interpreter directive but it is not
  = help: if you meant this to be a shebang interpreter directive, move it to the very start of the file
```

Fixes #137249

r? `@fmease`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions