about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-05-25 17:37:18 +0200
committerGitHub <noreply@github.com>2022-05-25 17:37:18 +0200
commitd858d280e4778e556e8b8595e20d36d229bda6e9 (patch)
treed31325fed3a238e971c648845e4f4c5d86090643 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentfe9c64d0af379e6e48ac1e798d65e2031265aa22 (diff)
parente9215bb7a97d61b5368f58fa299474a8606655d4 (diff)
downloadrust-d858d280e4778e556e8b8595e20d36d229bda6e9.tar.gz
rust-d858d280e4778e556e8b8595e20d36d229bda6e9.zip
Rollup merge of #97302 - compiler-errors:writeback-ascending, r=cjgillot
Do writeback of Closure params before visiting the parent expression

This means that given the expression:

```
let x = |a: Vec<_>| {};
```

We will visit the HIR node for `a` before `x`, and report the ambiguity on the former instead of the latter. This also moves writeback for struct field ids and const blocks before, but the ordering of this and walking the expr doesn't seem to matter.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions