about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-09-08 11:55:06 +0530
committerGitHub <noreply@github.com>2022-09-08 11:55:06 +0530
commit0d61a507f5e110d4c242d4b4447ed028c12ddf0f (patch)
tree8d94c671f634d2f17ce7865fd3f605f68c6576ef /compiler/rustc_codegen_llvm/src
parente3ea8008cced840942e23da057631ea81f2ffe9f (diff)
parent5d94d424859933da5beb76d0ad9818fd095b382b (diff)
downloadrust-0d61a507f5e110d4c242d4b4447ed028c12ddf0f.tar.gz
rust-0d61a507f5e110d4c242d4b4447ed028c12ddf0f.zip
Rollup merge of #101399 - cjgillot:borrowck-binding-span, r=estebank
Shrink span for bindings with subpatterns.

Bindings with nested patterns (`binding @ pat` syntax) currently point to the full pattern.  This PR proposes to shrink the span to stop before the ````@`.```  This makes the diagnostics for move/mutability conflicts clearer, as they not point to the `binding` only, instead of the full pat.

r? ```@estebank```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions