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 7 pull requests #91676

Closed
wants to merge 14 commits into from

Commits on Nov 28, 2021

  1. suggest cast char -> int

    cameron1024 committed Nov 28, 2021
    Configuration menu
    Copy the full SHA
    37ca2eb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b9b4f54 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2021

  1. Configuration menu
    Copy the full SHA
    e1ff02b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    abb8893 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2021

  1. Configuration menu
    Copy the full SHA
    3cbe0f1 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2021

  1. update Miri

    RalfJung committed Dec 8, 2021
    Configuration menu
    Copy the full SHA
    d3167a2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    edd8814 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#91245 - cameron1024:suggest-i32-u32-char-ca…

    …st, r=nagisa
    
    suggest casting between i/u32 and char
    
    As discussed in rust-lang#91063 , this adds a suggestion for converting between i32/u32 <-> char with `as`, and a short explanation for why this is safe
    matthiaskrgr authored Dec 8, 2021
    Configuration menu
    Copy the full SHA
    1a6a3e4 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#91337 - FabianWolff:issue-91227-misspelled-…

    …macro, r=nagisa
    
    Add a suggestion if `macro_rules` is misspelled
    
    Fixes rust-lang#91227.
    matthiaskrgr authored Dec 8, 2021
    Configuration menu
    Copy the full SHA
    250a20b View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#91534 - jsha:heading-color, r=GuillaumeGomez

    Make rustdoc headings black, and markdown blue
    
    Demo:
    
    https://rustdoc.crud.net/jsha/heading-color/std/string/index.html#structs
    https://rustdoc.crud.net/jsha/heading-color/std/string/struct.String.html#examples
    
    Fixes rust-lang#91304
    
    r? ``@camelid`` /cc ``@GuillaumeGomez``
    
    (Note: we may want to make rustdoc headings and markdown headings the same color -- rust-lang#90245 -- but we would want to do that intentionally; this is fixing up a change that did so accidentally)
    matthiaskrgr authored Dec 8, 2021
    Configuration menu
    Copy the full SHA
    1b4d7b7 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#91568 - dtolnay:breakspace, r=nagisa

    Pretty print break and continue without redundant space
    
    **Repro:**
    
    ```rust
    macro_rules! m {
        ($e:expr) => { stringify!($e) };
    }
    fn main() {
        println!("{:?}", m!(loop { break; }));
        println!("{:?}", m!(loop { break 'a; }));
        println!("{:?}", m!(loop { break false; }));
    }
    ```
    
    **Before:**
    
    - `"loop { break ; }"`
    - `"loop { break 'a ; }"`
    - `"loop { break false ; }"`
    
    **After:**
    
    - `"loop { break; }"`
    - `"loop { break 'a; }"`
    - `"loop { break false; }"`
    
    <br>
    
    Notice that `return` and `yield` already follow the same approach as this PR of printing the space *before* each additional piece following the keyword, rather than *after* each thing.
    
    https://github.com/rust-lang/rust/blob/772d51f887fa407216860bf8ecf3f1a32fb795b4/compiler/rustc_ast_pretty/src/pprust/state.rs#L2148-L2154
    
    https://github.com/rust-lang/rust/blob/772d51f887fa407216860bf8ecf3f1a32fb795b4/compiler/rustc_ast_pretty/src/pprust/state.rs#L2221-L2228
    matthiaskrgr authored Dec 8, 2021
    Configuration menu
    Copy the full SHA
    23898d0 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#91637 - tmiasko:generator-packed-drop, r=ec…

    …static-morse
    
    Add test for packed drops in generators
    
    r? ``@ecstatic-morse``
    matthiaskrgr authored Dec 8, 2021
    Configuration menu
    Copy the full SHA
    435e2cc View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#91666 - RalfJung:miri, r=RalfJung

    update Miri
    
    Fixes rust-lang#91649
    r? ``@ghost``
    matthiaskrgr authored Dec 8, 2021
    Configuration menu
    Copy the full SHA
    e63611a View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#91667 - GuillaumeGomez:fix-index-itemtypes,…

    … r=notriddle
    
    Fix indent of itemTypes in search.js
    
    It has been bugging me for quite some time now. Finally took the time to clean it up a bit.
    
    r? ``@notriddle``
    matthiaskrgr authored Dec 8, 2021
    Configuration menu
    Copy the full SHA
    80bae28 View commit details
    Browse the repository at this point in the history