about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorChayim Refael Friedman <chayimfr@gmail.com>2025-01-20 21:21:42 +0200
committerChayim Refael Friedman <chayimfr@gmail.com>2025-01-20 21:21:42 +0200
commitf98e9715200133d0c7f25997cdd37ab7ea2a7247 (patch)
tree0e791bfbdf8f7ea006f1cff32ec464dec5ffc3a2 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent8b25ab0c5a7e48cc3fd10d39a56d382a04528958 (diff)
downloadrust-f98e9715200133d0c7f25997cdd37ab7ea2a7247.tar.gz
rust-f98e9715200133d0c7f25997cdd37ab7ea2a7247.zip
Fix another bug with completion of trait items inside macros
This time, when completing the keyword (e.g. `fn` + whitespace).

The bug was actually a double-bug:
First, we did not resolve the impl in the macro-expanded file but in the real file, which of course cannot work.
Second, in analysis the whitespace was correlated with the `impl` and not the incomplete `fn`, which caused fake (where we insert an identifier after the whitespace) and real expansions to go out of sync, which failed analysis. The fix is to skip whitespaces in analysis.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions