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 5 pull requests #91691

Merged
merged 15 commits into from
Dec 9, 2021
Merged

Rollup of 5 pull requests #91691

merged 15 commits into from
Dec 9, 2021

Commits on Dec 3, 2021

  1. Configuration menu
    Copy the full SHA
    41b1bcb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9d535b4 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2021

  1. Configuration menu
    Copy the full SHA
    d761e84 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    08dca19 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d07cef2 View commit details
    Browse the repository at this point in the history
  4. 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
  5. Configuration menu
    Copy the full SHA
    a8c9314 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    883d0a7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5478f43 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f0f7b8d View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2021

  1. Rollup merge of rust-lang#91042 - Kobzol:vec-extend-cleanup, r=nagisa

    Use Vec extend instead of repeated pushes on several places
    
    Inspired by rust-lang#90813, I tried to use a simple regex (`for .*in.*\{\n.*push\(.*\);\n\s+}`) to search for more places that would use `Vec::push` in a loop and replace them with `Vec::extend`.
    
    These probably won't have as much perf. impact as the original PR (if any), but it would probably be better to do a perf run to see if there are not any regressions.
    matthiaskrgr committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    793648a View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#91476 - m-ou-se:ferris-identifier, r=estebank

    Improve 'cannot contain emoji' error.
    
    Before:
    
    ```
    error: identifiers cannot contain emoji: `🦀`
     --> src/main.rs:2:9
      |
    2 |     let 🦀 = 1;
      |         ^^
    ```
    
    After:
    ```
    error: Ferris cannot be used as an identifier
     --> src/main.rs:2:9
      |
    2 |     let 🦀 = 1;
      |         ^^ help: try using their name instead: `ferris`
    ```
    
    r? `@estebank`
    matthiaskrgr committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    dc834f0 View commit details
    Browse the repository at this point in the history
  3. 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 committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    f820496 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#91645 - ibraheemdev:future-join, r=joshtrip…

    …lett
    
    Implement `core::future::join!`
    
    `join!` polls multiple futures concurrently and returns their outputs.
    
    ```rust
    async fn run() {
        let (a, b) = join!(async { 0 }, async { 1 });
    }
    ```
    
    cc `@rust-lang/wg-async-foundations`
    matthiaskrgr committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    90c3e9a View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#91666 - RalfJung:miri, r=RalfJung

    update Miri
    
    Fixes rust-lang#91649
    r? `@ghost`
    matthiaskrgr committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    229aa1b View commit details
    Browse the repository at this point in the history