about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-22 02:59:38 +0000
committerbors <bors@rust-lang.org>2024-09-22 02:59:38 +0000
commit6ce376774c0bc46ac8be247bca93ff5a1287a8fc (patch)
treed3c1b85ae8ad4821a513b99b0d6c2f4fd74d80d7 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent55043f067dcf7067e7c6ebccf3639af94ff57bda (diff)
parenta187d0a90c939522e563b122dedef2cb7087f8d0 (diff)
downloadrust-6ce376774c0bc46ac8be247bca93ff5a1287a8fc.tar.gz
rust-6ce376774c0bc46ac8be247bca93ff5a1287a8fc.zip
Auto merge of #130246 - dianne:issue-97589-fix, r=petrochenkov
rustc_expand: remember module `#[path]`s during expansion

During invocation collection, if a module item parsed from a `#[path]` attribute needed a second pass after parsing, its path wouldn't get added to the file path stack, so cycle detection broke. This checks the `#[path]` in such cases, so that it gets added appropriately. I think it should work identically to the case for external modules that don't need a second pass, but I'm not 100% sure.

Fixes #97589
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions