about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/module.rs
diff options
context:
space:
mode:
authordianne <diannes.gm@gmail.com>2024-09-11 12:36:40 -0700
committerdianne <diannes.gm@gmail.com>2024-09-11 12:36:40 -0700
commit9a7644e17174dff78f94f8b8d81f21379297d1cf (patch)
tree4d79ce0c4a25109ed01f3cc682ef6cd37628d083 /compiler/rustc_expand/src/module.rs
parentf7f8bdf2e03918cc3742db3bb37b7cfe9994dbec (diff)
downloadrust-9a7644e17174dff78f94f8b8d81f21379297d1cf.tar.gz
rust-9a7644e17174dff78f94f8b8d81f21379297d1cf.zip
rustc_expand: remember module #[path]s during expansion
this fixes cycle detection for modules that need a second invocation collection pass after parsing
Diffstat (limited to 'compiler/rustc_expand/src/module.rs')
-rw-r--r--compiler/rustc_expand/src/module.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/module.rs b/compiler/rustc_expand/src/module.rs
index 13348376851..27a9a330f3c 100644
--- a/compiler/rustc_expand/src/module.rs
+++ b/compiler/rustc_expand/src/module.rs
@@ -171,7 +171,7 @@ fn mod_file_path<'a>(
 
 /// Derive a submodule path from the first found `#[path = "path_string"]`.
 /// The provided `dir_path` is joined with the `path_string`.
-fn mod_file_path_from_attr(
+pub(crate) fn mod_file_path_from_attr(
     sess: &Session,
     attrs: &[Attribute],
     dir_path: &Path,