-
Notifications
You must be signed in to change notification settings - Fork 13.4k
expand_include: set .directory
to dir of included file.
#70184
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
// If in the included file we have e.g., `mod bar;`, | ||
// then the path of `bar.rs` should be relative to the directory of `file`. | ||
// See https://github.com/rust-lang/rust/pull/69838/files#r395217057 for a discussion. | ||
// `MacroExpander::fully_expand_fragment` later restores, so "stack discipline" is maintained. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This claim is a bit subtle, but this is what I inferred when reading the code in fully_expand_fragment
. If this is not correct, then the alternative would be to add a flag to SyntaxExtension
or something and deal with it in rustc_expand::expand
.
41ddf8a
to
b005129
Compare
Since this broke perfbot, let's @bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit b00512957b66787288b5fcf6b038c62fdecb5c1c with merge 91eb0046f6433c4fa57c9f13e06b1f1a40a8afbe... |
This comment has been minimized.
This comment has been minimized.
b005129
to
0d018a5
Compare
@bors try |
⌛ Trying commit 0d018a5 with merge 901fd06b9208132d8546785157f8425b29097c36... |
💔 Test failed - checks-azure |
@bors try |
⌛ Trying commit 0d018a5 with merge 259aa700bfbc530eb7162b752413d53edc80c060... |
💔 Test failed - checks-azure |
LGTM, r=me if all the necessary testing passes. |
The PR builder is passing, and the try builder doesn't want to start due to overbooked CI. So I guess we can just find out by checking the status of perf.rl.o a day later instead. @bors r=petrochenkov |
📌 Commit 0d018a5 has been approved by |
…etrochenkov expand_include: set `.directory` to dir of included file. Resolves the regression noted in rust-lang#69838. r? @petrochenkov cc @eddyb @Mark-Simulacrum
…etrochenkov expand_include: set `.directory` to dir of included file. Resolves the regression noted in rust-lang#69838. r? @petrochenkov cc @eddyb @Mark-Simulacrum
Rollup of 16 pull requests Successful merges: - rust-lang#65097 (Make std::sync::Arc compatible with ThreadSanitizer) - rust-lang#69033 (Use generator resume arguments in the async/await lowering) - rust-lang#69997 (add `Option::{zip,zip_with}` methods under "option_zip" gate) - rust-lang#70038 (Remove the call that makes miri fail) - rust-lang#70058 (can_begin_literal_maybe_minus: `true` on `"-"? lit` NTs.) - rust-lang#70111 (BTreeMap: remove shared root) - rust-lang#70139 (add delay_span_bug to TransmuteSizeDiff, just to be sure) - rust-lang#70165 (Remove the erase regions MIR transform) - rust-lang#70166 (Derive PartialEq, Eq and Hash for RangeInclusive) - rust-lang#70176 (Add tests for rust-lang#58319 and rust-lang#65131) - rust-lang#70177 (Fix oudated comment for NamedRegionMap) - rust-lang#70184 (expand_include: set `.directory` to dir of included file.) - rust-lang#70187 (more clippy fixes) - rust-lang#70188 (Clean up E0439 explanation) - rust-lang#70189 (Abi::is_signed: assert that we are a Scalar) - rust-lang#70194 (#[must_use] on split_off()) Failed merges: r? @ghost
Resolves the regression noted in #69838.
r? @petrochenkov
cc @eddyb @Mark-Simulacrum