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 10 pull requests #76786

Merged
merged 28 commits into from
Sep 16, 2020
Merged

Rollup of 10 pull requests #76786

merged 28 commits into from
Sep 16, 2020

Commits on Sep 13, 2020

  1. Configuration menu
    Copy the full SHA
    8d96cc2 View commit details
    Browse the repository at this point in the history
  2. remove orphaned files

    Should been part of rust-lang#74163
    tshepang committed Sep 13, 2020
    Configuration menu
    Copy the full SHA
    b7ce5b4 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2020

  1. Configuration menu
    Copy the full SHA
    c9686cb View commit details
    Browse the repository at this point in the history
  2. fix syntax error in suggesting generic constraint in trait parameter

    suggest `where T: Foo` for the first bound on a trait, then suggest
    `, T: Foo` when the suggested bound would add to an existing set of
    `where` clauses. `where T: Foo` may be the first bound if `T` has a
    default, because we'd rather suggest
    ```
    trait A<T=()> where T: Copy
    ```
    than
    ```
    trait A<T: Copy=()>
    ```
    for legibility reasons.
    iximeow committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    0eac38b View commit details
    Browse the repository at this point in the history
  3. shrink const infer error

    lcnr committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    dd57275 View commit details
    Browse the repository at this point in the history
  4. improve const infer err

    lcnr committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    035f879 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b881551 View commit details
    Browse the repository at this point in the history
  6. ⬆️ rust-analyzer

    Jonas Schievink committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    43709f7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5112f87 View commit details
    Browse the repository at this point in the history
  8. Use intra-doc links for DelaySpanBugEmitted

    Also improve the docs for it a bit.
    camelid committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    1f26a18 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    15349ef View commit details
    Browse the repository at this point in the history
  10. Fix diagram for DebruijnIndex

    camelid committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    5c1043a View commit details
    Browse the repository at this point in the history
  11. clean up comment text a bit

    Co-authored-by: Esteban Küber <esteban@kuber.com.ar>
    iximeow and estebank committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    e1607c8 View commit details
    Browse the repository at this point in the history
  12. Include non-JSON output in error display for lint-doc failure.

    Some errors, like if rustc is broken, or dylib search path is wrong,
    will only display non-JSON errors. Show those, too, to make it easier to
    debug a problem.
    ehuss committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    32efcfc View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9dad908 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2020

  1. document how to use memory addresses as operands

    Co-authored-by: Amanieu <amanieu@gmail.com>
    tesuji and Amanieu committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    e82be71 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    87666e5 View commit details
    Browse the repository at this point in the history
  3. Fix black_box bug detected by Amanieu

    Co-authored-by: Amanieu <amanieu@gmail.com>
    tesuji and Amanieu committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    4dc4e9f View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#76669 - lzutao:core_asm, r=Amanieu

    Prefer asm! over llvm_asm! in core
    
    Replace llvm_asm! with asm! in core.
    
    x86 asm compare (in somecases I replaced generic type with String).
    * https://rust.godbolt.org/z/59eEMv
    * https://rust.godbolt.org/z/v78s6q
    * https://rust.godbolt.org/z/7qYY41
    Dylan-DPC committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    d1b0504 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#76675 - lzutao:asm_doc, r=Amanieu

    Small improvements to asm documentation
    
    Save people from searching and reading tons of comments in tracking issues.
    Dylan-DPC committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    6194d7e View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#76681 - tshepang:unused, r=Mark-Simulacrum

    remove orphaned files
    
    Should been part of rust-lang#74163
    Dylan-DPC committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    c8bfbad View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#76694 - wesleywiser:partitioning_cx_trait, …

    …r=davidtwco
    
    Introduce a PartitioningCx struct
    
    This contains all the data used by the partitioning algorithm and allows that data to be used at each stage of the partitioning. This is useful for other approaches to partitioning which may want different pieces of the data available at each step.
    
    cc @rust-lang/wg-incr-comp
    Dylan-DPC committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    2c2f1c2 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#76695 - iximeow:trait-generic-bound-suggest…

    …ion, r=estebank
    
    fix syntax error in suggesting generic constraint in trait parameter
    
    suggest `where T: Foo` for the first bound on a trait, then suggest
    `, T: Foo` when the suggested bound would add to an existing set of
    `where` clauses. `where T: Foo` may be the first bound if `T` has a
    default, because we'd rather suggest
    ```
    trait A<T=()> where T: Copy
    ```
    than
    ```
    trait A<T: Copy=()>
    ```
    for legibility reasons.
    
    the test case i added here is derived from [this reproduction](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=0bf3ace9f2a183d0bdbd748c6b8e3971):
    ```
    struct B<T: Copy> {
        t: T
    }
    
    trait A<T = ()> {
        fn returns_constrained_type(&self, t: T) -> B<T> {
            B { t }
        }
    }
    ```
    where the suggested fix,
    ```
    trait A<T = ()>, T: Copy { ... }
    ```
    is in fact invalid syntax!
    
    i also found an error in the existing suggestion for `trait Base<T = String>: Super<T>` where rustc would suggest `trait Base<T = String>: Super<T>, T: Copy`, but `T: Copy` is the first of the trait's `where` clauses and should be `where T: Copy` as well. the test for that suggestion expects invalid syntax, and has been revised to a compiler-pleasing `trait Base<T = String>: Super<T> where T: Copy`.
    
    judging by rust-lang#70009 i'll.. cc @estebank ?
    Dylan-DPC committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    54d7728 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#76699 - lcnr:const-infer-err, r=varkor

    improve const infer error
    
    cc rust-lang#72328
    
    reduces it from
    ```
    error[E0282]: type annotations needed
      --> src/main.rs:17:5
       |
    17 |     Foo.bar().bar().bar().bar().baz();
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = note: unable to infer the value of a const parameter
    ```
    to
    ```
    error[E0282]: type annotations needed
      --> $DIR/method-chain.rs:21:33
       |
    LL |     Foo.bar().bar().bar().bar().baz();
       |                                 ^^^
       |
       = note: cannot infer the value of the const parameter `N`
    ```
    
    r? @varkor
    Dylan-DPC committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    3f9e7fc View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#76707 - pickfire:patch-4, r=jonas-schievink

    Simplify iter flatten struct doc
    Dylan-DPC committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    9524fff View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#76710 - rust-lang:rust-analyzer-2020-09-14,…

    … r=jonas-schievink
    
    ⬆️ rust-analyzer
    
    r? @ghost
    Dylan-DPC committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    7e202fc View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#76714 - camelid:patch-3, r=jonas-schievink

    Small docs improvements
    
    @rustbot modify labels: T-doc T-compiler
    Dylan-DPC committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    b25261f View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#76717 - ehuss:fix-rustc-book-libdir, r=Mark…

    …-Simulacrum
    
    Fix generating rustc docs with non-default lib directory.
    
    If `libdir` is set in `config.toml`, then the tool to generate the rustc docs was unable to run `rustc` because it could not find the shared libraries. The solution is to set the dylib search path to include the libdir.
    
    I changed the API of `add_rustc_lib_path` to take `Command` instead of `Cargo` to try to share the code in several places. This is how it worked before rust-lang#64316, and I think this still retains the spirit of that change.
    
    Fixes rust-lang#76702
    Dylan-DPC committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    f631293 View commit details
    Browse the repository at this point in the history