about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-03-20 07:15:15 +0800
committerGitHub <noreply@github.com>2018-03-20 07:15:15 +0800
commit49b584ce6025fd4a00f0b666b2e211a46d063f1b (patch)
tree4ec94794bd2d0afed8586fded5955167f840fc0e /src/rustllvm/PassWrapper.cpp
parent5d5f5a08b8d93d63e360bf409c9463e6282a38c6 (diff)
parent736ba433ac2f0d2f6604a64f744f86a311a56be4 (diff)
downloadrust-49b584ce6025fd4a00f0b666b2e211a46d063f1b.tar.gz
rust-49b584ce6025fd4a00f0b666b2e211a46d063f1b.zip
Rollup merge of #48834 - ysiraichi:suggest-remove-ref, r=estebank
Suggest removing `&`s

This implements the error message discussed in #47744.
We check whether removing each `&` yields a type that satisfies the requested obligation.
Also, it was created a new `NodeId` field in `ObligationCause` in order to iterate through the `&`s. The way it's implemented now, it iterates through the obligation snippet and counts the number of `&`.

r? @estebank
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions