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

Closed
wants to merge 28 commits into from

Commits on Jun 14, 2020

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

Commits on Jun 18, 2020

  1. impl From<char> for String

    This allows us to write
    
    fn char_to_string() -> String {
        'a'.into()
    }
    
    which was not possible before.
    matthiaskrgr committed Jun 18, 2020
    Configuration menu
    Copy the full SHA
    1d0378c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2cde493 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2020

  1. Configuration menu
    Copy the full SHA
    224bc05 View commit details
    Browse the repository at this point in the history
  2. Make likely and unlikely const

    They are gated by internal feature gate const_likely
    nbdd0121 committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    fc239e8 View commit details
    Browse the repository at this point in the history
  3. Fix ICE for lib features

    nbdd0121 committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    779b05d View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2020

  1. Update src/librustc_mir/interpret/intrinsics.rs

    Co-authored-by: Oliver Scherer <github35764891676564198441@oli-obk.de>
    nbdd0121 and oli-obk authored Jun 27, 2020
    Configuration menu
    Copy the full SHA
    8b43012 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2020

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

Commits on Jun 29, 2020

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

Commits on Jun 30, 2020

  1. stop taking references in Relate

    lcnr committed Jun 30, 2020
    Configuration menu
    Copy the full SHA
    1d7ba5f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    71b45b9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f632bd1 View commit details
    Browse the repository at this point in the history
  4. update equal_up_to_regions

    lcnr committed Jun 30, 2020
    Configuration menu
    Copy the full SHA
    69e4990 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f74a7d3 View commit details
    Browse the repository at this point in the history
  6. remove duplicate tests

    lcnr committed Jun 30, 2020
    Configuration menu
    Copy the full SHA
    0889d79 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2020

  1. Configuration menu
    Copy the full SHA
    0d26512 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7616cd9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b438811 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#72071 - PankajChaudhary5:ErrorCode-E0687, r…

    …=davidtwco
    
    Added detailed error code explanation for issue E0687 in Rust compiler.
    
    Added proper error explanation for issue E0687 in the Rust compiler.
    Error Code E0687
    
    Sub Part of Issue rust-lang#61137
    
    r? @GuillaumeGomez
    Dylan-DPC authored Jul 1, 2020
    Configuration menu
    Copy the full SHA
    ce57e7e View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#73466 - matthiaskrgr:char_into_string, r=dt…

    …olnay
    
    impl From<char> for String
    
    This allows us to write
    
    ````rust
    fn char_to_string() -> String {
        'a'.into()
    }
    ````
    
    which was not possible before.
    Dylan-DPC authored Jul 1, 2020
    Configuration menu
    Copy the full SHA
    14ecee5 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#73705 - lcnr:skip_binder, r=nikomatsakis

    stop taking references in Relate
    
    Adds a `Copy` bound to `Relate` and changes the type signatures to `T` from `&T`. While the `Copy` bound is not strictly necessary (i.e. the `Clone` bound of `TypeRelation` would be good enough), we don't need non `Copy` types and it simplifies the implementation.
    
    Removes the afaict unused impls for `Vec<ty::PolyExistentialProjection<'tcx>>`, `Rc<T>` and `Box<T>`. If they end up being relevant again the bound of `Relate` can be reduced to `T: Clone`.
    
    This also changes signature of `Binder::skip_binder` to `fn skip_binder(self) -> T`.
    
    `TypeError::ProjectionBoundsLength` was never used and is also removed in this PR.
    
    r? @nikomatsakis maybe 🤔 feel free to reassign
    Dylan-DPC authored Jul 1, 2020
    Configuration menu
    Copy the full SHA
    51a0cfd View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#73778 - nbdd0121:const_likely, r=oli-obk

    Make `likely` and `unlikely` const, gated by feature `const_unlikely`
    
    This PR also contains a fix to allow `#[allow_internal_unstable]` to work properly with `#[rustc_const_unstable]`.
    
    cc @RalfJung @nagisa
    
    r? @oli-obk
    Dylan-DPC authored Jul 1, 2020
    Configuration menu
    Copy the full SHA
    ea718a6 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#73828 - nop:fix/parameter-name-help, r=este…

    …bank
    
    Fix wording for anonymous parameter name help
    
    ```
     --> exercises/functions/functions2.rs:8:15
      |
    8 | fn call_me(num) {
      |               ^ expected one of `:`, `@`, or `|`
      |
      = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
    help: if this is a `self` type, give it a parameter name
      |
    8 | fn call_me(self: num) {
      |            ^^^^^^^^^
    help: if this was a parameter name, give it a type
      |
    8 | fn call_me(num: TypeName) {
      |            ^^^^^^^^^^^^^
    help: if this is a type, explicitly ignore the parameter name
      |
    8 | fn call_me(_: num) {
      |
    ```
    This commit changes "if this was a parameter name" to "if this is a parameter name" to match the wording of similar errors.
    Dylan-DPC authored Jul 1, 2020
    Configuration menu
    Copy the full SHA
    e8decdc View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#73868 - ecstatic-morse:fix-stable-version, …

    …r=jonas-schievink
    
    Advertise correct stable version for const control flow
    
    rust-lang#72437 was opened before the 1.45 release but merged afterwards. These will be stable in 1.46.
    Dylan-DPC authored Jul 1, 2020
    Configuration menu
    Copy the full SHA
    16ed9a9 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#73892 - GuillaumeGomez:cleanup-e0712, r=Dyl…

    …an-DPC
    
    Clean up E0712 explanation
    
    r? @Dylan-DPC
    Dylan-DPC authored Jul 1, 2020
    Configuration menu
    Copy the full SHA
    30d0db9 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#73898 - lcnr:issue61383, r=jonas-schievink

    remove duplicate test for rust-lang#61935
    
    Apparently I somehow messed up the issue number in rust-lang#67890
    which caused us to add this test twice, both as https://github.com/rust-lang/rust/blob/master/src/test/ui/const-generics/issues/issue-61935.rs and https://github.com/rust-lang/rust/blob/master/src/test/ui/const-generics/lazy-normalization/issue-71922.rs
    
    rust-lang#61935 is the actually fixed issue while rust-lang#71922 is still not working, as it depends on lazy norm of repeat expressions
    Dylan-DPC authored Jul 1, 2020
    Configuration menu
    Copy the full SHA
    32e74ae View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#73906 - JohnTitor:missing-bt, r=jonas-schie…

    …vink
    
    Add missing backtick in `ty_error_with_message`
    Dylan-DPC authored Jul 1, 2020
    Configuration menu
    Copy the full SHA
    9d37005 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#73909 - eltonlaw:unsafe-libstd-fs-rs, r=sfa…

    …ckler
    
    `#[deny(unsafe_op_in_unsafe_fn)]` in libstd/fs.rs
    
    The `libstd/fs.rs` part of rust-lang#73904 . Wraps the two calls to an unsafe fn `Initializer::nop()` in an `unsafe` block.
    
    Followed instructions in parent issue, ran `./x.py check src/libstd/` after adding the lint and two warnings were given. After adding these changes, those disappear.
    Dylan-DPC authored Jul 1, 2020
    Configuration menu
    Copy the full SHA
    b37816d View commit details
    Browse the repository at this point in the history