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 9 pull requests #75436

Merged
merged 22 commits into from
Aug 12, 2020
Merged

Rollup of 9 pull requests #75436

merged 22 commits into from
Aug 12, 2020

Commits on Jul 19, 2020

  1. older toolchains not valid any more

    with the change to llvm 10 the parameter
    LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN do not do any thing as
    min and soft error is the same.
    see https://github.com/rust-lang/llvm-project/blob/86b120e6f302d39cd6973b6391fb299d7bc22122/llvm/cmake/modules/CheckCompilerVersion.cmake
    andjo403 committed Jul 19, 2020
    Configuration menu
    Copy the full SHA
    30659cd View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2020

  1. Configuration menu
    Copy the full SHA
    2cfcc0c View commit details
    Browse the repository at this point in the history
  2. Add UI test for issue 74933

    nbdd0121 committed Jul 31, 2020
    Configuration menu
    Copy the full SHA
    000f5cd View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2020

  1. Update asm! documentation in unstable book

    - Update the list of supported architectures.
    - Clarify issues with LLVM's use of reserved registers.
    Amanieu committed Aug 6, 2020
    Configuration menu
    Copy the full SHA
    b5cef24 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2020

  1. Configuration menu
    Copy the full SHA
    26792a6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a6e492b View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2020

  1. Configuration menu
    Copy the full SHA
    29045b6 View commit details
    Browse the repository at this point in the history
  2. Add a function to TyCtxt for computing an Allocation for a `stati…

    …c` item's initializer
    oli-obk committed Aug 11, 2020
    Configuration menu
    Copy the full SHA
    1a0a4ac View commit details
    Browse the repository at this point in the history
  3. Revert #tymethods

    nixphix committed Aug 11, 2020
    Configuration menu
    Copy the full SHA
    32fccc4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3ff06a9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bd01bf9 View commit details
    Browse the repository at this point in the history
  6. Accept more safety comments (notably those that are on multiple lines…

    … without text after SAFETY:)
    poliorcetics committed Aug 11, 2020
    Configuration menu
    Copy the full SHA
    883dffa View commit details
    Browse the repository at this point in the history
  7. word change

    there are three significantly different things printed below
    joseluis committed Aug 11, 2020
    Configuration menu
    Copy the full SHA
    df5c889 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2020

  1. Rollup merge of rust-lang#74521 - andjo403:readme, r=nikic

    older toolchains not valid anymore
    
    with the change to llvm 10 the parameter
    LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN do not do anything as min and soft error is the same.
    see https://github.com/rust-lang/llvm-project/blob/86b120e6f302d39cd6973b6391fb299d7bc22122/llvm/cmake/modules/CheckCompilerVersion.cmake
    JohnTitor committed Aug 12, 2020
    Configuration menu
    Copy the full SHA
    7e503a0 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#74960 - nbdd0121:typeck, r=nikomatsakis

    Fix regionck failure when converting Index to IndexMut
    
    Fixes rust-lang#74933
    
    Consider an overloaded index expression `base[index]`. Without knowing whether it will be mutated, this will initially be desugared into `<U as Index<T>>::index(&base, index)` for some `U` and `T`. Let `V` be the `expr_ty_adjusted` of `index`.
    
    If this expression ends up being used in any mutable context (or used in a function call with `&mut self` receiver before rust-lang#72280), we will need to fix it up. The current code will rewrite it to `<U as IndexMut<V>>::index_mut(&mut base, index)`. In most cases this is fine as `V` will be equal to `T`, however this is not always true when `V/T` are references, as they may have different region.
    
    This issue is quite subtle before rust-lang#72280 as this code path is only used to fixup function receivers, but after rust-lang#72280 we've made this a common path.
    
    The solution is basically just rewrite it to `<U as IndexMut<T>>::index_mut(&mut base, index)`. `T` can retrieved in the fixup path using `node_substs`.
    JohnTitor committed Aug 12, 2020
    Configuration menu
    Copy the full SHA
    43babed View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#75234 - Amanieu:asm_unstable_book, r=nikoma…

    …tsakis
    
    Update asm! documentation in unstable book
    
    - Update the list of supported architectures.
    - Clarify issues with LLVM's use of reserved registers.
    JohnTitor committed Aug 12, 2020
    Configuration menu
    Copy the full SHA
    0bdb839 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#75368 - poliorcetics:intra-doc-links-std-pr…

    …elude, r=jyn514
    
    Move to doc links inside the prelude
    
    Helps with rust-lang#75080.
    
    @rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
    JohnTitor committed Aug 12, 2020
    Configuration menu
    Copy the full SHA
    c423fde View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#75371 - poliorcetics:intra-doc-links-std-ti…

    …me, r=jyn514
    
    Move to doc links inside std/time.rs
    
    Helps with rust-lang#75080.
    
    @rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
    JohnTitor committed Aug 12, 2020
    Configuration menu
    Copy the full SHA
    261773e View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#75394 - oli-obk:get_static, r=RalfJung

    Add a function to `TyCtxt` for computing an `Allocation` for a `static` item's initializer
    
    r? @RalfJung
    
    miri-side: rust-lang/miri#1507
    
    split out of rust-lang#74949 (comment) to make that PR leaner
    JohnTitor committed Aug 12, 2020
    Configuration menu
    Copy the full SHA
    5ef0a0a View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#75395 - nixphix:docs/os-fs, r=jyn514

    Switch to intra-doc links in library/std/src/os/*/fs.rs
    
    Partial fix for rust-lang#75080
    
    @rustbot modify labels: T-doc, T-rustdoc, A-intra-doc-links
    JohnTitor committed Aug 12, 2020
    Configuration menu
    Copy the full SHA
    7a90083 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#75422 - poliorcetics:tidy-accept-more-safet…

    …y-comments, r=Mark-Simulacrum
    
    Accept more safety comments
    
    This accepts more `// SAFETY:` comments from `tidy`.
    
    This is done after the current behaviour of requiring text one the same line (because spaces are stripped so the last space never pass if there is no text on the same line) bit me once more in rust-lang#75066
    
    This could potentially accept empty `// SAFETY:` comments but `tidy` is an internal tool used only here so my reasoning is reviews will catch those.
    JohnTitor committed Aug 12, 2020
    Configuration menu
    Copy the full SHA
    a8b0a3c View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#75424 - joseluis:patch-1, r=joshtriplett

    fix wrong word in documentation
    
    Change "two" to "three", since there are three significantly different things printed below that sentence:
    
    ---
    
    While these:
    ```rust
    println!("{}, `{name:.*}` has 3 fractional digits", "Hello", 3, name=1234.56);
    println!("{}, `{name:.*}` has 3 characters", "Hello", 3, name="1234.56");
    println!("{}, `{name:>8.*}` has 3 right-aligned characters", "Hello", 3, name="1234.56");
    ```
    
    print two significantly different things:
    
    ``` rust
    Hello, `1234.560` has 3 fractional digits
    Hello, `123` has 3 characters
    Hello, `     123` has 3 right-aligned characters
    ```
    ---
    [`https://doc.rust-lang.org/std/fmt/#precision`](https://doc.rust-lang.org/std/fmt/#precision)
    JohnTitor committed Aug 12, 2020
    Configuration menu
    Copy the full SHA
    2cc7da6 View commit details
    Browse the repository at this point in the history