-
Notifications
You must be signed in to change notification settings - Fork 550
stabilization template, docs #2219
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
base: master
Are you sure you want to change the base?
Changes from all commits
e4ee951
c63baad
32824bf
6c99b75
2536baa
882699e
1bbe997
3f559ff
8152a0d
f80902e
fa8dce1
784f90e
ef25866
1831074
5ad366e
c7e38e9
beb25e1
6fe303f
eb4eba8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
jieyouxu marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,105 @@ | ||||||||||||||||||||
# Stabilization report template | ||||||||||||||||||||
|
||||||||||||||||||||
> **What is this?** | ||||||||||||||||||||
> | ||||||||||||||||||||
> This is a template to use for [stabilization reports](./stabilization_guide.md) of **language features**. It consists of a series of questions that aim to provide the information most commonly needed and to help reviewers be more likely to identify potential problems up front. Not all parts of the template will apply to all stabilizations. Feel free to put N/A if a question doesn't seem to apply to your case. | ||||||||||||||||||||
> | ||||||||||||||||||||
> You can copy the following template after the separator and edit it as Markdown, replacing the *TODO* placeholders with answers. | ||||||||||||||||||||
|
||||||||||||||||||||
--- | ||||||||||||||||||||
|
||||||||||||||||||||
> ## General design | ||||||||||||||||||||
|
||||||||||||||||||||
> ### What is the RFC for this feature and what changes have occurred to the user-facing design since the RFC was finalized? | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ### What behavior are we committing to that has been controversial? Summarize the major arguments pro/con. | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ### Are there extensions to this feature that remain unstable? How do we know that we are not accidentally committing to those? | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ## Has a Call for Testing period been conducted? If so, what feedback was received? | ||||||||||||||||||||
> | ||||||||||||||||||||
> Does any OSS nightly users use this feature? For instance, a useful indication might be "search <grep.app> for `#![feature(FEATURE_NAME)]` and had `N` results". | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Going even further:
Suggested change
In reviewing the tests for the arbitrary self types stabilization, I'm reminded how helpful it is for each test to describe at the top what it is intending to demonstrate, so it's worth mentioning that. It's also probably worth mentioning here the utility of the Reference annotations, but that raises an interesting ordering question. We merge tests ahead of the stabilization, generally, but then we don't merge the Reference PR until after the stabilization. So we'd either need to merge the tests with dangling references (to identifiers in unmerged Reference PRs) or perhaps these references could be added to the tests in the stabilization PR itself. Or they could be added later, but then these helpful things aren't there when reviewing the stabilization. (Another wilder option is that we merge the Reference into @ehuss, @nikomatsakis, what do you think? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
AFAIK team members can push to PRs in rust-lang/rust as well, but individual PR authors can opt-out of that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. I must have hit the odd case before then. Edited to correct. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that for this initial version, I intentionally left off the
I don't even know how to do that logistically myself. |
||||||||||||||||||||
> ## Implementation quality | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ### Summarize the major parts of the implementation and provide links into the code (or to PRs) | ||||||||||||||||||||
> | ||||||||||||||||||||
> An example for async closures: <https://rustc-dev-guide.rust-lang.org/coroutine-closures.html>. | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ### Summarize existing test coverage of this feature | ||||||||||||||||||||
> | ||||||||||||||||||||
> Consider what the "edges" of this feature are. We're particularly interested in seeing tests that assure us about exactly what nearby things we're not stabilizing. | ||||||||||||||||||||
> | ||||||||||||||||||||
> Within each test, include a comment at the top describing the purpose of the test and what set of invariants it intends to demonstrate. This is a great help to those reviewing the tests at stabilization time. | ||||||||||||||||||||
> | ||||||||||||||||||||
> - What does the test coverage landscape for this feature look like? | ||||||||||||||||||||
> - Tests for compiler errors when you use the feature wrongly or make mistakes? | ||||||||||||||||||||
> - Tests for the feature itself: | ||||||||||||||||||||
> - Limits of the feature (so failing compilation) | ||||||||||||||||||||
> - Exercises of edge cases of the feature | ||||||||||||||||||||
> - Tests that checks the feature works as expected (where applicable, `//@ run-pass`). | ||||||||||||||||||||
> - Are there any intentional gaps in test coverage? | ||||||||||||||||||||
> | ||||||||||||||||||||
> Link to test folders or individual tests (ui/codegen/assembly/run-make tests, etc.). | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ### What outstanding bugs in the issue tracker involve this feature? Are they stabilization-blocking? | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ### What FIXMEs are still in the code for that feature and why is it ok to leave them there? | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ### Summarize contributors to the feature by name for recognition and assuredness that people involved in the feature agree with stabilization | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ### Which tools need to be adjusted to support this feature. Has this work been done? | ||||||||||||||||||||
> | ||||||||||||||||||||
> Consider rustdoc, clippy, rust-analyzer, rustfmt, rustup, docs.rs. | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ## Type system and execution rules | ||||||||||||||||||||
|
||||||||||||||||||||
> ### What compilation-time checks are done that are needed to prevent undefined behavior? | ||||||||||||||||||||
> | ||||||||||||||||||||
> (Be sure to link to tests demonstrating that these tests are being done.) | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ### Does the feature's implementation need checks to prevent UB or is it sound by default and needs opt in in places to perform the dangerous/unsafe operations? If it is not sound by default, what is the rationale? | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ### Can users use this feature to introduce undefined behavior, or use this feature to break the abstraction of Rust and expose the underlying assembly-level implementation? (Describe.) | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ### What updates are needed to the reference/specification? (link to PRs when they exist) | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ## Common interactions | ||||||||||||||||||||
|
||||||||||||||||||||
> ### Does this feature introduce new expressions and can they produce temporaries? What are the lifetimes of those temporaries? | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* | ||||||||||||||||||||
|
||||||||||||||||||||
> ### What other unstable features may be exposed by this feature? | ||||||||||||||||||||
|
||||||||||||||||||||
*TODO* |
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 file contains the following:
And I'm not sure how accurate this is.
First of all the "Once we have decided to stabilize a feature" part is too vague. How would a new contributor know which features we decided to stabilize? Additionally the decision and stabilization report need to be done by someone with a good knowledge of the feature, a new contributor just isn't suitable for that.
I feel like this paragraph is misguiding, as stabilization is usually an intertwined process involving multiple teams, sometimes confusing changes (like changing lints that don't make sense anymore), checking many components, etc. If for library features it might be the case that a novice can craft a stabilization PR, for language features, more often than not that's not the case.
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.
For this initial template, I will drop that paragraph entirely, and refrain from making substantial wording additions to make this PR less contentious to land. I have some Thoughts:tm: on this matter as well.