Niko Matsakis
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Major Change Proposal RFC - Feature Name: N/A - Start Date: (fill me in with today's date, YYYY-MM-DD) - RFC PR: [rust-lang/rfcs#0000](https://github.com/rust-lang/rfcs/pull/0000) - Rust Issue: [rust-lang/rust#0000](https://github.com/rust-lang/rust/issues/0000) # Summary [summary]: #summary Introduce the **major change process** for the compiler team. This process has the following goals: * to advertise major changes and give the team a chance to weigh in; * to help scale the amount of work being done to reviewing bandwidth by choosing a reviewer in advance; * to avoid a lot of process overhead. The intent here is that if you have a plan to make some "major change" to the compiler, you will start with this process. It may either simply be approved, but if the change proves more controversial or complex, we may escalate towards design meetings, longer write-ups, or full RFCs before reaching a final decision. This process does not apply to adding new language features. # Motivation [motivation]: #motivation As the compiler grows in complexity, it becomes harder and harder to track what's going on. We don't currently have a clear channel for people to signal their intention to make "major changes" that may impact other developers in a lightweight way (and potentially receive feedback). Our goal is to create a channel for signaling intentions that lies somewhere between opening a PR (and perhaps cc'ing others on that PR) and creating a compiler team design meeting proposal or RFC. ## Goals Our goals with the MCP are as follows: * Encourage people making a major change to write at least a few paragraphs about what they plan to do. * Ensure that folks in the compiler team are aware the change is happening and given a chance to respond. * Ensure that every proposal has a "second", meaning some expert from the team who thinks it's a good idea. * Ensure that major changes have an assigned and willing reviewer. * Avoid the phenomenon of large, sweeping PRs landing "out of nowhere" onto someone's review queue. * Avoid the phenomenon of PRs living in limbo because it's not clear what level of approval is required for them to land. # Guide-level explanation [guide-level-explanation]: #guide-level-explanation ## Major Change Proposals If you would like to make a [major change] to the compiler, the process is as follows: [major change]: #What-constitutes-a-major-change * Open a tracking issue on the [rust-lang/compiler-team] repo using the [major change template]. * Create a Zulip topic in the stream `#t-compiler/major changes`, where people will discuss the design. * If concerns are raised, you may want to modify the proposal to address those concerns. * Alternatively, you can submit a [design meeting proposal] to have a longer, focused discussion. * To be accepted, a major change proposal needs three things: * One or more **reviewers**, who commit to reviewing the work. This can be the person making the proposal, if they intend to mentor others. * A **second**, an expert in the affected area(s) of the compiler who approves of the idea, but is not the one originating the proposal. * To be **announced at a triage meeting** and go through **final comment period** (a 1 week wait to give people time). * MCPs should not be announced if they have outstanding, unresolved concerns by compiler team members. Check with a team lead if there is any doubt. * The FCP can be skipped if the change is easily reversed and/or further objections are considered unlikely. This often happens if there has been a lot of prior discussion, for example. * Once the major change is accepted, PRs can start to land. ## Conditional acceptance Some major change proposals will be conditionally accepted. This indicates that we'd like to see the work land, but we'd like to re-evaluate the decision of whether to commit to the design after we've had time to gain experience. We should try to be clear about the things we'd like to evaluate, and ideally a timeline. ## Deferred or not accepted Some proposals will not be accepted. Some of the possible reasons: * You may be asked to do some prototyping or experimentation before a final decision is reached * The idea might be reasonable, but there may not be bandwidth to do the reviewing, or there may just be too many other things going on. * The idea may be good, but it may be judged that the resulting code would be too complex to maintain, and not worth the benefits. * There may be flaws in the idea or it may not sufficient benefit. [rust-lang/compiler-team]: https://github.com/rust-lang/compiler-team [design meeting proposal]: https://forge.rust-lang.org/compiler/steering-meeting.html # Reference-level explanation [reference-level-explanation]: #reference-level-explanation ## What happens if someone opens a PR that seems like a major change *without* doing this process? The PR should be closed or marked as blocked, with a request to create a major change proposal first. ## Can I work on code experimentally before a MCP is accepted? Of course! You are free to work on PRs or write code. But those PRs should be marked as experimental and they should not land, nor should anyone be expected to review them ((unless folks want to). ## Steps to open a MCP * Open a tracking issue on the [rust-lang/compiler-team] repo using the [major change template]. * Create a Zulip topic in the stream `#t-compiler/major changes`: * The topic should be named something like "modify the whiz-bang component compiler-team#123", which describes the change and links to the tracking issue. * The stream will be used for people to ask questions or propose changes. ## What kinds of comments should go on the tracking issue in compiler-team repo? Please direct technical conversation to the Zulip stream. The compiler-team repo issues are intended to be low traffic and used for procedural purposes. Note that to "second" a design or offer to review, you should be someone who is familiar with the code, typically but not necessarily a compiler team member or contributor. * Announcing that you "second" or approve of the design. * Announcing that you would be able to review or mentor the work. * Noting a concern that you don't want to be overlooked. * Announcing that the proposal will be entering FCP or is accepted. ## How does one register as reviewer, register approval, or raise an objection? These types of procedural comments can be left on the issue (it's also good to leave a message in Zulip). See the previous section. ## Who decides whether a concern is unresolved? Usually the experts in the given area will reach a consensus here. But if there is some need for a "tie breaker" vote or judgment call, the compiler-team leads make the final call. ## What constitutes a major change? The rough intuition is "something that would require updates to the [rustc-dev-guide] or the [rustc book]". In other words: * Something that alters the architecture of some part(s) of the compiler, since this is what the rustc-dev-guide aims to document. * A simple change that affects a lot of people, such as altering the names of very common types or changing coding conventions. * Adding a compiler flag or other public facing changes, which should be documented (ultimately) in the rustc book. Note that, in some cases, the change may be deemed **too big** and a full FCP or RFC may be required to move forward. This could occur with significant public facing change or with sufficiently large changes to the architecture. The compiler team leads can make this call. Note that whether something is a major change proposal is not necessarily related to the number of lines of code that are affected. Renaming a method can affect a large number of lines, and even require edits to the rustc-dev-guide, but it may not be a major change. At the same time, changing names that are very broadly used could constitute a major change (for example, renaming from the `tcx` context in the compiler to something else would be a major change). [rustc-dev-guide]: https://rustc-dev-guide.rust-lang.org [rustc book]: https://doc.rust-lang.org/rustc/index.html ## What are some examples of major changes from the past? Here are some examples of changes that were made in the past that would warrant the major change process: * overhauling the way we encode crate metadata * merging the gcx, tcx arenas * renaming a widely used, core abstraction, such as the `Ty` type * introducing cargo pipelining * adding a new `-C` flag that exposes some minor variant ## What are some examples of things that are too big for the major change process? Here are some examples of changes that are too big for the major change process, or which at least would require auxiliary design meetings or a more fleshed out design before they can proceed: * introducing incremental or the query system * introducing MIR or some new IR * introducing parallel execution * adding ThinLTO support ## What are some examples of things that are too small for the major change process? Here are some examples of things that don't merit any MCP: * adding new information into metadata * fixing an ICE or tweaking diagnostics * renaming "less widely used" methods # Template for major change proposals [major change template]: #Template-for-major-change-proposals The template for major change proposals is as follows: ``` # What is this issue? This is a **major change proposal**, which means a proposal to make a notable change to the compiler -- one that either alters the architecture of some component, affects a lot of people, or makes a small but noticeable public change (e.g., adding a compiler flag). You can read more about the MCP process on https://forge.rust-lang.org/. **This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.** # MCP Checklist * [x] Fill out and file this issue. The @rust-lang/wg-prioritization group will add this to the triage meeting agenda so folks see it. * [ ] Create a Zulip topic in the stream `#t-compiler/major changes` with the name `XXX compiler-team#NNN`, where `XXX` is the title of this issue and `NNN` is whatever issue number gets assigned. Discuss the MCP in there, and feel free to update the proposal as needed. * [ ] Find a **reviewer**, and add their name to this comment (see the section below). * [ ] Find a **second**, someone who is knowledgeable of the area and approves of the design, and have them leave a comment on the issue. * [ ] Announce this proposal at the triage meeting (ping @rust-lang/wg-prioritization to have them add it to the agenda). **All edits should be done before you do this.** * [ ] After one week, assuming no unresolved concerns, the MCP is accepted! (We sometimes skip this week period if it seems unnecessary.) Add the `mcp-accepted` label and close the issue; we can link to it for future reference. # TL;DR *Summarize what you'd like to do in a sentence or two, or a few bullet points.* # Links and Details *Add a few paragraphs explaining your design. The level of detail should be sufficient for someone familiar with the compiler to understand what you're proposing. Where possible, linking to relevant issues, old PRs, or external documents like LLVM pages etc is very useful.* # Mentors or Reviewers *Who will review this work? If you are being mentored by someone, then list their name here. If you are a compiler team member/contributor, and you intend to mentor someone else, then you can put your own name here. You can also leave it blank if you are looking for a reviewer. (Multiple names are ok too.)* ``` # Drawbacks [drawbacks]: #drawbacks It adds procedural overhead. # Rationale and alternatives [rationale-and-alternatives]: #rationale-and-alternatives ## Why not use the FCP process to do approvals? We opted not to require an ordinary rfcbot fcp because that feels too cumbersome. We want this to be lightweight. Requesting at least one person to approve seems like the minimal process. # Prior art [prior-art]: #prior-art The state of the art for these sorts of things in practice is that either people just write PRs, or perhaps someone opens a Zulip topic and pings a suitable set of people. This often works well in practice but can also lead to surprises, where stakeholds are overlooked. Moreover, it offers no means to manage review load or to have a chance to express concerns before a lot of code is written. This idea was loosely based on the "intent to ship" convention that many browsers have adopted. See e.g. Mozilla's [Exposure Guidelines](https://wiki.mozilla.org/ExposureGuidelines) or Chrome's process for [launching features](https://www.chromium.org/blink/launching-features). Unlike those processes, however, it's meant for internal refactors as well as (minor) public facing features. RFCs themselves are a form of "major change proposal", but they are much more heavyweight and suitable for longer conversations or more controversial decisions. They wind up requesting feedback from a broader audience and they require all team members to actively agree before being accepted. The MCP process is meant to be something we can use to float and advertise ideas and quickly either reach consensus or else -- if controversy is discovered -- move the proposal to a more involved process. # Unresolved questions [unresolved-questions]: #unresolved-questions None. # Future possibilities [future-possibilities]: #future-possibilities The details of this procedure are sure to evolve, and we don't expect to use the RFC process for each such evolution. The main focus of this RFC is to approve of a **mandatory major change process** for major changes to the compiler.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully