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 #72244

Closed
wants to merge 24 commits into from

Commits on May 7, 2020

  1. Configuration menu
    Copy the full SHA
    d80ac14 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7590c39 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cf41b1d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3a0727e View commit details
    Browse the repository at this point in the history
  5. Update std tests

    GuillaumeGomez committed May 7, 2020
    Configuration menu
    Copy the full SHA
    9697c46 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f581cf7 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2020

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

Commits on May 14, 2020

  1. Configuration menu
    Copy the full SHA
    883c177 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c4d9318 View commit details
    Browse the repository at this point in the history
  3. * Update aliases data struct from HashMap to BTreeMap to have more de…

    …terministic results
    
      * Update Javascript to take this change into account
    * Update CrateData::aliases field to take a reference instead (it allowed to remove a conversion loop)
    GuillaumeGomez committed May 14, 2020
    Configuration menu
    Copy the full SHA
    e17ac66 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8954379 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e84b379 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2020

  1. Configuration menu
    Copy the full SHA
    257e377 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    00268be View commit details
    Browse the repository at this point in the history
  3. Fix {:#?} representation of proc_macro::Literal

    Before:
    
        TokenStream [
            Ident {
                ident: "name",
                span: #0 bytes(37..41),
            },
            Punct {
                ch: '=',
                spacing: Alone,
                span: #0 bytes(42..43),
            },
            Literal { lit: Lit { kind: Str, symbol: "SNPP", suffix: None }, span: Span { lo: BytePos(44), hi: BytePos(50), ctxt: #0 } },
            Punct {
                ch: ',',
                spacing: Alone,
                span: #0 bytes(50..51),
            },
            Ident {
                ident: "owner",
                span: #0 bytes(56..61),
            },
            Punct {
                ch: '=',
                spacing: Alone,
                span: #0 bytes(62..63),
            },
            Literal { lit: Lit { kind: Str, symbol: "Canary M Burns", suffix: None }, span: Span { lo: BytePos(64), hi: BytePos(80), ctxt: #0 } },
        ]
    
    After:
    
        TokenStream [
            Ident {
                ident: "name",
                span: #0 bytes(37..41),
            },
            Punct {
                ch: '=',
                spacing: Alone,
                span: #0 bytes(42..43),
            },
            Literal {
                kind: Str,
                symbol: "SNPP",
                suffix: None,
                span: #0 bytes(44..50),
            },
            Punct {
                ch: ',',
                spacing: Alone,
                span: #0 bytes(50..51),
            },
            Ident {
                ident: "owner",
                span: #0 bytes(56..61),
            },
            Punct {
                ch: '=',
                spacing: Alone,
                span: #0 bytes(62..63),
            },
            Literal {
                kind: Str,
                symbol: "Canary M Burns",
                suffix: None,
                span: #0 bytes(64..80),
            },
        ]
    dtolnay committed May 15, 2020
    Configuration menu
    Copy the full SHA
    45ee336 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4c4b4c4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bea2c59 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#71724 - GuillaumeGomez:doc-alias-improvemen…

    …ts, r=ollie27
    
    Doc alias improvements
    
    After [this message](rust-lang#50146 (comment)), I realized that the **doc alias**. So this PR does the followings:
    
     * Align the alias discovery on items added into the search-index. It brings a few nice advantages:
       * Instead of cloning the data between the two (in rustdoc source code), we now have the search-index one and aliases which reference to the first one. So we go from one big map containing a lot of duplicated data to just integers...
     * In the front-end (main.js), I improved the code around aliases to allow them to go through the same transformation as other items when we show the search results.
     * Improve the search tester in order to perform multiple requests into one file (I think it's better in this case than having a file for each case considering how many there are...)
        * I also had to add the new function inside the tester (`handleAliases`)
    
    Once this PR is merged, I intend to finally stabilize this feature.
    
    r? @ollie27
    
    cc @rust-lang/rustdoc
    Dylan-DPC authored May 15, 2020
    Configuration menu
    Copy the full SHA
    3d5f276 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#72180 - euclio:rustdoc-test-extra-space, r=…

    …Dylan-DPC
    
    remove extra space from crate-level doctest names
    
    Before:
    
    ```
    running 2 tests
    test src/test/rustdoc-ui/doctest-output.rs - foo::bar (line 11) ... ok
    test src/test/rustdoc-ui/doctest-output.rs -  (line 5) ... ok
    
    test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
    ```
    
    After:
    
    ```
    running 2 tests
    test src/test/rustdoc-ui/doctest-output.rs - foo::bar (line 11) ... ok
    test src/test/rustdoc-ui/doctest-output.rs - (line 5) ... ok
    
    test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
    ```
    Dylan-DPC authored May 15, 2020
    Configuration menu
    Copy the full SHA
    ad2972d View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#72216 - doctorn:require-lang-item, r=lcnr

    Remove `lang_items\(\).*\.unwrap\(\)`
    
    Follows up rust-lang#72170 to remove the remaining uses of `lang_items\(\).*\.unwrap\(\)` (avoids a bunch of potential ICEs when working in `#![no_core]`).
    
    Resolves rust-lang#72195
    Dylan-DPC authored May 15, 2020
    Configuration menu
    Copy the full SHA
    a671ffe View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#72218 - RalfJung:test-unleashed-ptrs, r=oli…

    …-obk
    
    make sure even unleashed miri does not do pointer stuff
    
    r? @oli-obk
    Dylan-DPC authored May 15, 2020
    Configuration menu
    Copy the full SHA
    e116355 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#72220 - wesleywiser:const_prop_eval_consts,…

    … r=oli-obk
    
    [const-prop] Don't replace Rvalues that are already constants
    
    This cleans up a few mir-opt tests which have slight changes to spans for `consts` as a result of replacing them with new Rvalues.
    Dylan-DPC authored May 15, 2020
    Configuration menu
    Copy the full SHA
    7d22984 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#72224 - lzutao:links, r=Dylan-DPC

    doc: add links to rotate_(left|right)
    Dylan-DPC authored May 15, 2020
    Configuration menu
    Copy the full SHA
    7729ff3 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#72233 - dtolnay:literal, r=petrochenkov

    Fix {:#?} representation of proc_macro::Literal
    
    Before:
    
    ```rust
    TokenStream [
        Ident {
            ident: "name",
            span: #0 bytes(37..41),
        },
        Punct {
            ch: '=',
            spacing: Alone,
            span: #0 bytes(42..43),
        },
        Literal { lit: Lit { kind: Str, symbol: "SNPP", suffix: None }, span: Span { lo: BytePos(44), hi: BytePos(50), ctxt: #0 } },
        Punct {
            ch: ',',
            spacing: Alone,
            span: #0 bytes(50..51),
        },
        Ident {
            ident: "owner",
            span: #0 bytes(56..61),
        },
        Punct {
            ch: '=',
            spacing: Alone,
            span: #0 bytes(62..63),
        },
        Literal { lit: Lit { kind: Str, symbol: "Canary M Burns", suffix: None }, span: Span { lo: BytePos(64), hi: BytePos(80), ctxt: #0 } },
    ]
    ```
    
    After:
    
    ```rust
    TokenStream [
        Ident {
            ident: "name",
            span: #0 bytes(37..41),
        },
        Punct {
            ch: '=',
            spacing: Alone,
            span: #0 bytes(42..43),
        },
        Literal {
            kind: Str,
            symbol: "SNPP",
            suffix: None,
            span: #0 bytes(44..50),
        },
        Punct {
            ch: ',',
            spacing: Alone,
            span: #0 bytes(50..51),
        },
        Ident {
            ident: "owner",
            span: #0 bytes(56..61),
        },
        Punct {
            ch: '=',
            spacing: Alone,
            span: #0 bytes(62..63),
        },
        Literal {
            kind: Str,
            symbol: "Canary M Burns",
            suffix: None,
            span: #0 bytes(64..80),
        },
    ]
    ```
    Dylan-DPC authored May 15, 2020
    Configuration menu
    Copy the full SHA
    3460546 View commit details
    Browse the repository at this point in the history