diff options
| author | bors <bors@rust-lang.org> | 2024-07-22 07:00:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-22 07:00:54 +0000 |
| commit | 5236347f7c30f3c611f37db395568dd37d12fa0e (patch) | |
| tree | 92aa152efc2e82dfa8f35fb0654a72b786b9232b /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs | |
| parent | f84d14e1c085de69261f4ef6ac483e0c58016f49 (diff) | |
| parent | 8e7e37f4a9b214999260e18324c79b4db8beb126 (diff) | |
| download | rust-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
