about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-22 07:00:54 +0000
committerbors <bors@rust-lang.org>2024-07-22 07:00:54 +0000
commit5236347f7c30f3c611f37db395568dd37d12fa0e (patch)
tree92aa152efc2e82dfa8f35fb0654a72b786b9232b /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
parentf84d14e1c085de69261f4ef6ac483e0c58016f49 (diff)
parent8e7e37f4a9b214999260e18324c79b4db8beb126 (diff)
downloadrust-5236347f7c30f3c611f37db395568dd37d12fa0e.tar.gz
rust-5236347f7c30f3c611f37db395568dd37d12fa0e.zip
Auto merge of #17660 - ObsidianMinor:fix/17645, r=Veykril
Fix more path resolution for included submodules

Now with more comprehensive testing! This adds tests for includes within modules. Previous testing was not comprehensive enough since submodules that use `include!` didn't actually work either! The `ModDir` used for resolving mods relative to included files has to be `ModDir::root()`. The original test just so happened to put the submodules in the root which made this work, but if you put the `include!` inside a `mod` block it didn't work.

With this change, when collecting a macro expansion, if the macro call is an `include!`, we use the `ModDir::root()` instead of the current module we're in.
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions