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 4 pull requests #62511

Merged
merged 9 commits into from
Jul 9, 2019
Merged

Rollup of 4 pull requests #62511

merged 9 commits into from
Jul 9, 2019

Commits on Jul 3, 2019

  1. typeck: merge opaque type inference logic

    This commit merges the logic used for opaque type type inference for
    impl Trait and non-impl Trait cases. This fixes an ICE where
    existential types used in the return types of functions would be allowed
    to have an out-of-scope generic type parameter.
    davidtwco committed Jul 3, 2019
    Configuration menu
    Copy the full SHA
    de8660a View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2019

  1. Replace SliceConcatExt trait with inherent methods and SliceConcat he…

    …lper trait
    
    Before this change `SliceConcatExt` was an unstable extension trait
    with stable methods. It was in the libstd prelude, so that its methods
    could be used on the stable channel.
    
    This replaces it with inherent methods,
    which can be used without any addition to the prelude.
    Since the methods are stable and very generic
    (with for example a return type that depends on the types of parameters),
    an helper trait is still needed.
    But now that trait does not need to be in scope for the methods to be used.
    
    Removing this depedency on the libstd prelude allows the methods to be used
    in `#![no_std]` crate that use liballoc, which does not have its own
    implicitly-imported prelude.
    SimonSapin committed Jul 5, 2019
    Configuration menu
    Copy the full SHA
    e808d92 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2019

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

Commits on Jul 8, 2019

  1. Remove unused dependencies

    sinkuu committed Jul 8, 2019
    Configuration menu
    Copy the full SHA
    b06ed52 View commit details
    Browse the repository at this point in the history
  2. add feature to docs

    KodrAus committed Jul 8, 2019
    Configuration menu
    Copy the full SHA
    70d630f View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2019

  1. Rollup merge of rust-lang#60458 - KodrAus:debug_map_entry, r=alexcric…

    …hton
    
    Add key and value methods to DebugMap
    
    Implementation PR for an active (not approved) RFC: rust-lang/rfcs#2696.
    
    Add two new methods to `std::fmt::DebugMap` for writing the key and value part of a map entry separately:
    
    ```rust
    impl<'a, 'b: 'a> DebugMap<'a, 'b> {
        pub fn key(&mut self, key: &dyn Debug) -> &mut Self;
        pub fn value(&mut self, value: &dyn Debug) -> &mut Self;
    }
    ```
    
    I want to do this so that I can write a `serde::Serializer` that forwards to our format builders, so that any `T: Serialize` can also be treated like a `T: Debug`.
    Centril authored Jul 9, 2019
    Configuration menu
    Copy the full SHA
    fb9ca03 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3bbc421 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#62403 - SimonSapin:concat, r=alexcrichton

    Replace SliceConcatExt trait with inherent methods and SliceConcat helper trait
    
    Before this change `SliceConcatExt` was an unstable extension trait with stable methods. It was in the libstd prelude, so that its methods could be used on the stable channel.
    
    This replaces it with inherent methods, which can be used without any addition to the prelude. Since the methods are stable and very generic (with for example a return type that depends on the types of parameters), an helper trait is still needed. But now that trait does not need to be in scope for the methods to be used.
    
    Removing this depedency on the libstd prelude allows the methods to be used in `#![no_std]` crate that use liballoc, which does not have its own implicitly-imported prelude.
    Centril authored Jul 9, 2019
    Configuration menu
    Copy the full SHA
    bc18981 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#62494 - sinkuu:unused_deps, r=alexcrichton

    Remove unused dependencies
    Centril authored Jul 9, 2019
    Configuration menu
    Copy the full SHA
    4e5bccc View commit details
    Browse the repository at this point in the history