Skip to content
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

Rollup of 4 pull requests #98307

Merged
merged 10 commits into from
Jun 21, 2022
Merged

Rollup of 4 pull requests #98307

merged 10 commits into from
Jun 21, 2022

Commits on Jun 19, 2022

  1. Configuration menu
    Copy the full SHA
    2c3bb42 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    52c9906 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3d16c22 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2022

  1. Configuration menu
    Copy the full SHA
    5373d73 View commit details
    Browse the repository at this point in the history
  2. Drop magic value 3 from code

    Magic value 3 is used to create state for a yield point. It is in fact
    the number of reserved variants.
    
    Lift RESERVED_VARIANTS out to module scope and use it instead.
    liuw committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    c5f4880 View commit details
    Browse the repository at this point in the history
  3. Add a link to the unstable book page on Generator doc comment

    Signed-off-by: Yuki Okushi <jtitor@2k36.org>
    JohnTitor committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    51cc665 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#98235 - liuw:mir-gen-drop-magic-value, r=da…

    …vidtwco
    
    Drop magic value 3 from code
    
    Magic value 3 is used to create state for a yield point. It is in fact
    the number of reserved variants.
    
    Lift RESERVED_VARIANTS out to module scope and use it instead.
    matthiaskrgr committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    eac1493 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#98267 - compiler-errors:suggest-wildcard-ar…

    …m, r=oli-obk
    
    Don't omit comma when suggesting wildcard arm after macro expr
    
    * Also adds `Span::eq_ctxt` to consolidate the various usages of `span.ctxt() == other.ctxt()`
    * Also fixes an unhygenic usage of spans which caused the suggestion to render weirdly when we had one arm match in a macro
    * Also always suggests a comma (i.e. even after a block) if we're rendering a wildcard arm in a single-line match (looks prettier 🌹)
    
    Fixes rust-lang#94866
    matthiaskrgr committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    3e5800b View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#98276 - compiler-errors:const-format-macro,…

    … r=oli-obk
    
    Mention formatting macros when encountering `ArgumentV1` method in const
    
    Also open to just closing this if it's overkill. There are a lot of other distracting error messages around, so maybe it's not worth fixing just this one.
    
    Fixes rust-lang#93665
    matthiaskrgr committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    5eb7238 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#98296 - JohnTitor:generator-unstable-book-l…

    …ink, r=Dylan-DPC
    
    Add a link to the unstable book page on Generator doc comment
    
    This makes it easier to jump into the Generator section on the unstable book.
    
    Signed-off-by: Yuki Okushi <jtitor@2k36.org>
    matthiaskrgr committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    dfa933d View commit details
    Browse the repository at this point in the history