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

Merged
merged 30 commits into from
Sep 16, 2020
Merged

Rollup of 10 pull requests #76771

merged 30 commits into from
Sep 16, 2020

Commits on Aug 11, 2020

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

Commits on Aug 24, 2020

  1. Use translated variable for test string

    Test should be educative, added english translation and pronounciation.
    pickfire authored Aug 24, 2020
    Configuration menu
    Copy the full SHA
    a746870 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2020

  1. Make some Ordering methods const

    Constify the following methods of `core::cmp::Ordering`:
     - `reverse`
     - `then`
    
    Stabilizes these methods as const under the `const_ordering` feature.
    Also adds a test for these methods in a const context.
    
    Possible because of rust-lang#49146 (Allow `if` and `match` in constants).
    CDirkx committed Sep 1, 2020
    Configuration menu
    Copy the full SHA
    ea5dc09 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2020

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

Commits on Sep 4, 2020

  1. Configuration menu
    Copy the full SHA
    b54386a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d98bac4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f8cfb2f View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2020

  1. Note when a a move/borrow error is caused by a deref coercion

    Fixes rust-lang#73268
    
    When a deref coercion occurs, we may end up with a move error if the
    base value has been partially moved out of. However, we do not indicate
    anywhere that a deref coercion is occuring, resulting in an error
    message with a confusing span.
    
    This PR adds an explicit note to move errors when a deref coercion is
    involved. We mention the name of the type that the deref-coercion
    resolved to, as well as the `Deref::Target` associated type being used.
    Aaron1011 committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    d18b4bb View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2020

  1. Upgrade to pulldown-cmark 0.8.0

    Thanks to marcusklaas' hard work in pulldown-cmark/pulldown-cmark#469, this fixes a lot of rustdoc bugs!
    
    - Get rid of unnecessary `RefCell`
    - Fix duplicate warnings for broken implicit reference link
    - Remove unnecessary copy of links
    jyn514 committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    e4c28bf View commit details
    Browse the repository at this point in the history
  2. Don't use link.span yet

    This shows the span of the _whole_ link, including the brackets.
    But rustdoc only wants to warn about the link text.
    jyn514 committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    f7983ca View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6f2e1c6 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2020

  1. librustc_target: Initial support for riscv32gc_unknown_linux_gnu

    Signed-off-by: Alistair Francis <[email protected]>
    alistair23 committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    a4183f0 View commit details
    Browse the repository at this point in the history
  2. librustc_target: Address comments

    Signed-off-by: Alistair Francis <[email protected]>
    alistair23 committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    82bd5a3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0f1d25e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5a4098e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cfb955d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    25cca07 View commit details
    Browse the repository at this point in the history
  7. doc: platform-support.md: Document port

    Signed-off-by: Alistair Francis <[email protected]>
    alistair23 committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    cbda154 View commit details
    Browse the repository at this point in the history
  8. doc: platform-support.md: Move to tier 3

    Signed-off-by: Alistair Francis <[email protected]>
    alistair23 committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    e968f86 View commit details
    Browse the repository at this point in the history
  9. Update cargo

    ehuss committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    f95d7ba View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#73955 - hellow554:unsafe_process, r=Mark-Si…

    …mulacrum
    
    deny(unsafe_op_in_unsafe_fn) in libstd/process.rs
    
    The libstd/process.rs part of rust-lang#73904 . Wraps the two calls to an unsafe fn Initializer::nop() in an unsafe block.
    
    Will have to wait for rust-lang#73909 to be merged, because of the feature in the libstd/lib.rs
    Dylan-DPC authored Sep 15, 2020
    Configuration menu
    Copy the full SHA
    4f0c245 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#75146 - tmiasko:range-overflow, r=Mark-Simu…

    …lacrum
    
    Detect overflow in proc_macro_server subspan
    
    * Detect overflow in proc_macro_server subspan
    * Add tests for overflow in Vec::drain
    * Add tests for overflow in String / VecDeque operations using ranges
    Dylan-DPC authored Sep 15, 2020
    Configuration menu
    Copy the full SHA
    fb9bb2b View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#75304 - Aaron1011:feature/diag-deref-move-o…

    …ut, r=estebank
    
    Note when a a move/borrow error is caused by a deref coercion
    
    Fixes rust-lang#73268
    
    When a deref coercion occurs, we may end up with a move error if the
    base value has been partially moved out of. However, we do not indicate
    anywhere that a deref coercion is occuring, resulting in an error
    message with a confusing span.
    
    This PR adds an explicit note to move errors when a deref coercion is
    involved. We mention the name of the type that the deref-coercion
    resolved to, as well as the `Deref::Target` associated type being used.
    Dylan-DPC authored Sep 15, 2020
    Configuration menu
    Copy the full SHA
    fa4cfeb View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#75749 - ehuss:consolidate-sys, r=alexcrichton

    Consolidate some duplicate code in the sys modules.
    
    This consolidates some modules which were duplicated throughout the sys module. The intent is to make it easier to update and maintain this code. This mainly affects the wasi, sgx, and "unsupported" targets.
    
    I explicitly skipped hermit, cloudabi, and vxworks. These tier-3 targets have copied large sections of the sys tree. I don't think they should have, but I don't want to put effort into changing them. It also doesn't help that there aren't any scripts or instructions for building them.
    
    There are still sections of duplicate code here and there, but this PR covers the easy parts where entire modules are the same.
    Dylan-DPC authored Sep 15, 2020
    Configuration menu
    Copy the full SHA
    034af08 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#75882 - pickfire:patch-6, r=jyn514

    Use translated variable for test string
    
    Test should be educative, added english translation and pronounciation.
    Dylan-DPC authored Sep 15, 2020
    Configuration menu
    Copy the full SHA
    c910518 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#75886 - erikdesjardins:index, r=nikic

    Test that bounds checks are elided for [..index] after .position()
    
    Closes rust-lang#73396.
    
    This was fixed by the LLVM 11 update in rust-lang#73526.
    Dylan-DPC authored Sep 15, 2020
    Configuration menu
    Copy the full SHA
    056c7b0 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#76048 - alistair23:alistair/rv32-linux, r=A…

    …manieu
    
    Initial support for riscv32gc_unknown_linux_gnu
    
    Now that RISC-V 32-bit (RV32) support is in upstream glibc let's add support for userspace Rust.
    Dylan-DPC authored Sep 15, 2020
    Configuration menu
    Copy the full SHA
    db22898 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#76198 - CDirkx:const-ordering, r=dtolnay

    Make some Ordering methods const
    
    Resubmission of [PR#75463](rust-lang#75463) as per [PR#76172](rust-lang#76172).
    
    Constify the following methods of `core::cmp::Ordering`:
     - `reverse`
     - `then`
    
    Insta-stabilizes these methods as const under the `const_ordering` feature, as their implementation is a trivial match and the recent stabilization of rust-lang#49146 (Allow `if` and `match` in constants).
    Note: the `const_ordering` feature has never actually been used as these methods have not been `#[rustc_const_unstable]`.
    
    Tracking issue:  rust-lang#76113
    Dylan-DPC authored Sep 15, 2020
    Configuration menu
    Copy the full SHA
    69ac076 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#76689 - jyn514:update-pulldown, r=Guillaume…

    …Gomez
    
    Upgrade to pulldown-cmark 0.8.0
    
    Thanks to marcusklaas' hard work in pulldown-cmark/pulldown-cmark#469, this fixes a lot of rustdoc bugs!
    
    - Get rid of unnecessary `RefCell`
    - Fix duplicate warnings for broken implicit reference link
    - Remove unnecessary copy of links
    
    Closes rust-lang#73264, closes rust-lang#76687.
    r? @euclio
    
    I'm not sure if the switch away from `locate` fixes any open bugs - euclio mentioned some in pulldown-cmark/pulldown-cmark#165, but I didn't see any related issues open for rustdoc. Let me know if I missed one.
    Dylan-DPC authored Sep 15, 2020
    Configuration menu
    Copy the full SHA
    1fd22fc View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#76763 - ehuss:update-cargo, r=ehuss

    Update cargo
    
    6 commits in 875e0123259b0b6299903fe4aea0a12ecde9324f..8777a6b1e8834899f51b7e09cc9b8d85b2417110
    2020-09-08 20:17:21 +0000 to 2020-09-15 19:11:03 +0000
    - updated yank error message (rust-lang/cargo#8697)
    - Fix non-determinism with new feature resolver. (rust-lang/cargo#8701)
    - Display formatted output for JSON diffing in tests. (rust-lang/cargo#8692)
    - Add --name suggestion for cargo new (rust-lang/cargo#8675)
    - Sweep unrelated message from unnecessary workspace infromation (rust-lang/cargo#8681)
    - Docs: Make it more clear we have two types of workspaces (rust-lang/cargo#8666)
    Dylan-DPC authored Sep 15, 2020
    Configuration menu
    Copy the full SHA
    2e1f012 View commit details
    Browse the repository at this point in the history