about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorErik Desjardins <erikdesjardins@users.noreply.github.com>2023-05-20 19:41:28 -0400
committerErik Desjardins <erikdesjardins@users.noreply.github.com>2023-05-20 19:41:28 -0400
commitc4d69b717f7dc6a469a65a1194ccdba2a833fefc (patch)
tree14d1caff41cf6d5bfb4b15a76fbbf366b5530845 /compiler/rustc_errors/src/snippet.rs
parent644818351b95c7a50eb05d73164cc6f4480ce9e7 (diff)
downloadrust-c4d69b717f7dc6a469a65a1194ccdba2a833fefc.tar.gz
rust-c4d69b717f7dc6a469a65a1194ccdba2a833fefc.zip
make noalias-box-off filecheck more precise
The CHECK, -NOT, -SAME pattern ensures that the `CHECK-NOT: noalias`
is limited to only one line, and won't match unrelated lines further
down in the file.

Explicit drop call added to preserve the `foo` argument name, since
names of unused arguments are not preserved.
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions