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

Merged
merged 23 commits into from
Mar 23, 2020
Merged

Rollup of 9 pull requests #70296

merged 23 commits into from
Mar 23, 2020

Commits on Mar 21, 2020

  1. Use getentropy(2) on macos

    hatoo committed Mar 21, 2020
    Configuration menu
    Copy the full SHA
    61ef72f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e991df8 View commit details
    Browse the repository at this point in the history
  3. Bless tests

    LeSeulArtichaut committed Mar 21, 2020
    Configuration menu
    Copy the full SHA
    cb7a2c1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e543e31 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d18ed20 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    eaa0ae5 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2020

  1. Configuration menu
    Copy the full SHA
    0c5c3bb View commit details
    Browse the repository at this point in the history
  2. simplify eval_mir_constant

    lcnr committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    ed48853 View commit details
    Browse the repository at this point in the history
  3. rename tests

    lcnr committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    8533778 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    263cbd1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fa5b727 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2ee2157 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2020

  1. Allow #[track_caller] in traits.

    The codegen implementation already works for this, so we're:
    
    * propagating track_caller attr from trait def to impl
    * relaxing errors
    * adding tests
    
    Approved in a recent lang team meeting:
    https://github.com/rust-lang/lang-team/blob/master/minutes/2020-01-09.md
    anp committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    97da6da View commit details
    Browse the repository at this point in the history
  2. Remove special-casing from TyCtxt::impl_of_method.

    We can do this now that opt_associated_item doesn't have any panicking paths.
    anp committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    69bd46a View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#69251 - anp:track-caller-in-traits, r=eddyb

    #[track_caller] in traits
    
    Per rust-lang#47809 (comment), this allows the `#[track_caller]` attribute on trait methods.
    
    Includes tests for `#[track_caller]` with:
    
    * "regular" trait impls
    * default trait impls
    * "blanket-tracked" trait impls, where the annotation is in the trait definition and is inherited by "regular" impls of the trait
    Centril committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    5ed9d7e View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#69880 - RalfJung:miri-assert-error-sanity, …

    …r=oli-obk
    
    miri engine: turn error sanity checks into assertions
    
    We had these as debug assertions so far to make sure our test suite is clean, but really these are conditions that should never arise and also @eddyb told me to turn non-performance-critical debug assertions into full assertions so here we go. ;)
    
    I propose that we do a check-only crater run to make sure this does not actually happen in practice.
    
    r? @oli-obk
    Centril committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    a2b469c View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#70207 - hatoo:macos-getentropy, r=dtolnay

    Use getentropy(2) on macos
    
    resolves rust-lang#70179
    Centril committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    675bdf6 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#70227 - LeSeulArtichaut:typo-def, r=Centril

    Only display definition when suggesting a typo
    
    Closes rust-lang#70206
    r? @Centril
    Centril committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    11f5309 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#70236 - petrochenkov:globimpice, r=ecstatic…

    …-morse
    
    resolve: Avoid "self-confirming" import resolutions in one more case
    
    So the idea behind "blacklisted bindings" is that we must ignore some name definitions during resolution because otherwise they cause infinite cycles.
    E.g. import
    ```rust
    use my_crate;
    ```
    would refer to itself (on 2018 edition) without this blacklisting, because `use my_crate;` is the first name in scope when we are resolving `my_crate` here.
    
    In this PR we are doing this blacklisting for the case
    ```rust
    use same::same;
    ```
    , namely blacklisting the second `same` when resolving the first `same`.
    This was previously forgotten.
    
    Fixes rust-lang#62767
    Centril committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    08dfd13 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#70248 - Centril:unroot, r=petrochenkov

    parser: simplify & remove unused field
    
    r? @petrochenkov
    Centril committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    8dda617 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#70249 - lcnr:issue70125, r=eddyb

    handle ConstKind::Unresolved after monomorphizing
    
    fixes rust-lang#70125
    
    r? @bjorn3
    Centril committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    092c821 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#70269 - matthiaskrgr:clippy_closures, r=Dyl…

    …an-DPC
    
    remove redundant closures (clippy::redundant_closure)
    Centril committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    c984a96 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#70270 - GuillaumeGomez:cleanup-e0449, r=Dyl…

    …an-DPC
    
    Clean up E0449 explanation
    
    r? @Dylan-DPC
    Centril committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    5f91f30 View commit details
    Browse the repository at this point in the history