1
Fork 0
rust/compiler/rustc_expand/src
bors 6ce376774c 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
2024-09-22 02:59:38 +00:00
..
mbe Remove needless returns detected by clippy in the compiler 2024-09-09 13:32:22 +02:00
base.rs Rollup merge of #128886 - GrigorenkoPV:untranslatable-diagnostic, r=nnethercote 2024-08-12 17:09:17 +02:00
build.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
config.rs Stabilize unsafe_attributes 2024-08-07 03:12:13 -05:00
errors.rs Add warn(unreachable_pub) to rustc_expand. 2024-08-27 12:40:38 +10:00
expand.rs rustc_expand: remember module #[path]s during expansion 2024-09-11 12:36:40 -07:00
lib.rs Add warn(unreachable_pub) to rustc_expand. 2024-08-27 12:40:38 +10:00
mbe.rs Add some comments. 2024-05-23 06:03:17 +10:00
module.rs rustc_expand: remember module #[path]s during expansion 2024-09-11 12:36:40 -07:00
placeholders.rs Add warn(unreachable_pub) to rustc_expand. 2024-08-27 12:40:38 +10:00
proc_macro.rs Remove unnecessary lifetimes from rustc_expand. 2024-09-13 15:33:21 +10:00
proc_macro_server.rs Add initial support for raw lifetimes 2024-09-06 10:32:48 -04:00