about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorLuqman Aden <me@luqman.ca>2022-08-07 04:03:28 -0700
committerLuqman Aden <me@luqman.ca>2022-08-07 04:03:28 -0700
commitfc83a0cb57eaad7104cc8861ba354fc76da79684 (patch)
tree997de8fc4764164bcf3f3f4efaa874dd0c0f612e /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parente141246cbbce2a6001f3181d3d0f661bbfd9c7ea (diff)
downloadrust-fc83a0cb57eaad7104cc8861ba354fc76da79684.tar.gz
rust-fc83a0cb57eaad7104cc8861ba354fc76da79684.zip
Don't ICE while suggesting updating item path.
When an item isn't found, we may suggest an appropriate import to
`use`. Along with that, we also suggest updating the path to work
with the `use`. Unfortunately, if the code in question originates
from a macro, the span used to indicate which part of the path
needs updating may not be suitable and cause an ICE. Since, such
code is not adjustable directly by the user without modifying the
macro, just skip the suggestion in such cases.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions