-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue for Rust 2024: Fix doctest include
paths
#132230
Comments
I ran a grep over the Reference, and only https://doc.rust-lang.org/1.82.0/reference/input-format.html and https://doc.rust-lang.org/1.82.0/reference/attributes.html mention |
@rfcbot fcp merge Since the compiler can already auto-correct |
Team member @notriddle has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
I'd like to stress that we need to move quickly if we want to make this change. The crater run should have started a few weeks ago. We have the last edition PR going in as I write this, and we were planning to start the crater run today. Delaying for this is stressing our timeline. I would encourage considering the forward-compatible warning approach suggested in #132210 (comment) as a way to simplify the problem and the code, since you won't need to retain the arguably old broken behavior. (Or, just accept the breakage in #132203 and help those packages fix their tests.) Can the rustdoc team focus on getting this resolved and merged within a few days? I would prefer to not delay for something last minute like this. |
Given the timeline, and building on what @ehuss said, here are the questions and items probably most in need of focus:
|
The problem is that the only way to get rid of the warning is to bump the edition, or to stop using This is also why I'd rather not just accept the breakage. There's no way for the affected crates to fix nightly without breaking stable.
|
I confirm this is the direction I want to go. I'm surprised an FCP is needed here though but I trust @notriddle's judgement. Let's try to get it approved by tomorrow. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
It got approved. I think we can exceptionally ignore the FCP if needed. If no one is against it, I'll r+ this evening. |
Thank you, I appreciate it! |
@rustbot labels +S-tracking-ready-for-edition This item is now ready for Rust 2024. Thanks to @notriddle, @GuillaumeGomez, and the rustdoc team for putting everything in place quickly here. |
@rfcbot cancel Given the unusual conditions, the FCP was foreshortened but rfcbot doesn't realize that. Let's cancel it to avoid confusion later. |
This is a tracking issue for fixing the path used for
include
in rustdoc doctests.About tracking issues
Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
include
paths edition-guide#329Unresolved Questions
Related
lib.rs
rather than aninclude_str!
'd file #130470cc @rust-lang/rustdoc @ehuss @notriddle @GuillaumeGomez
The text was updated successfully, but these errors were encountered: