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 7 pull requests #67485

Merged
merged 23 commits into from
Dec 21, 2019
Merged

Rollup of 7 pull requests #67485

merged 23 commits into from
Dec 21, 2019

Commits on Dec 5, 2019

  1. Add regression tests

    TommasoBianchi committed Dec 5, 2019
    Configuration menu
    Copy the full SHA
    2bd28d9 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2019

  1. Configuration menu
    Copy the full SHA
    042d855 View commit details
    Browse the repository at this point in the history
  2. Formatting fixes

    TommasoBianchi committed Dec 16, 2019
    Configuration menu
    Copy the full SHA
    b08d697 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2019

  1. Configuration menu
    Copy the full SHA
    020be74 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    94d207f View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2019

  1. Update E0120.md

    Dylan-DPC authored Dec 20, 2019
    Configuration menu
    Copy the full SHA
    7f0741d View commit details
    Browse the repository at this point in the history
  2. Update E0121.md

    Dylan-DPC authored Dec 20, 2019
    Configuration menu
    Copy the full SHA
    dce0f06 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    963f20d View commit details
    Browse the repository at this point in the history
  4. Remove rarely used -Zdisable_instrumentation_preinliner flag.

    The same effect can be achieved by `-Cllvm-args=-disable-preinline`.
    michaelwoerister committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    1ca145c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    382d370 View commit details
    Browse the repository at this point in the history
  6. 1. ast::Mutability::{Mutable -> Mut, Immutable -> Not}.

    2. mir::Mutability -> ast::Mutability.
    Centril committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    a7aec3f View commit details
    Browse the repository at this point in the history
  7. address review comments

    Centril committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    a7641f1 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6d7c6d7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d490c34 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2019

  1. Configuration menu
    Copy the full SHA
    16b7fd2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8c3c446 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#67059 - TommasoBianchi:dropck_fix_pr, r=pnk…

    …felix
    
    Fix too restrictive checks on Drop impls
    
    Fixes rust-lang#34426. Fixes rust-lang#58311.
    
    This PR completes and extends rust-lang#59497 (which has been inactive for a while now).
    The problem generating both issues was that when checking that the `Predicate`s of the `Drop` impl are exactly the same as the ones of the struct definition, the check was essentially performed by a simple `==` operator, which was not handling correctly HRTBs and involved `Fn` types.
    
    The implemented solution relies on the `relate` machinery to more correctly equate `Predicate`s, and on `anonymize_late_bound_regions` to handle HRTB in a more general way. As the `Relate` trait currently is implemented only for `TraitPredicate` and `ProjectionPredicate` (and as they were the ones generating problems), `relate` is used only for them while for other `Predicate`s the equality check is kept. I'm currently considering whether it would make sense to implement the `Relate` trait also for all other `Predicate`s to render the proposed solution more general.
    Centril authored Dec 21, 2019
    Configuration menu
    Copy the full SHA
    1113eb5 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#67355 - Centril:merge-mut, r=oli-obk

    Merge `ast::Mutability` and `mir::Mutability`
    
    r? @oli-obk
    Centril authored Dec 21, 2019
    Configuration menu
    Copy the full SHA
    c0bf3af View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#67393 - michaelwoerister:llvm-args-override…

    …, r=varkor
    
    Enable opting out of specific default LLVM arguments.
    
    `rustc` by default adds a few arguments to LLVM (like `-mergefunc-use-aliases` for example). With this PR `rustc` will only emit these arguments if the same argument has not already been specified by the user via `-Cllvm-args`. This enables opting out of these defaults.
    
    The PR also removes a PGO specific `-Z` flag the effect of which can also be easily achieved by `-Cllvm-args`.
    
    Fixes rust-lang#64310.
    Centril authored Dec 21, 2019
    Configuration menu
    Copy the full SHA
    6e3b1d6 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#67422 - GuillaumeGomez:cleanup-err-codes, r…

    …=Dylan-DPC
    
    Cleanup err codes
    
    r? @Dylan-DPC
    Centril authored Dec 21, 2019
    Configuration menu
    Copy the full SHA
    a01f956 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#67462 - DutchGhost:const_slice_from_raw_par…

    …ts, r=dtolnay
    
    Make ptr::slice_from_raw_parts a const fn available under a feature flag
    
    A first step in the direction of rust-lang#67456 .
    This makes `ptr::slice_from_raw_parts` and `ptr::slice_from_raw_parts_mut` available as a const fn under a feature flag.
    Centril authored Dec 21, 2019
    Configuration menu
    Copy the full SHA
    f43ced3 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#67467 - matthewjasper:test-slice-patterns, …

    …r=oli-obk
    
    Test slice patterns more
    
    Adds tests for const evaluation and some more borrow checking tests.
    
    Fixes some bugs in const eval for subslice patterns.
    closes rust-lang#66934
    
    r? @oli-obk
    cc @Centril
    Centril authored Dec 21, 2019
    Configuration menu
    Copy the full SHA
    0a2813c View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#67478 - brunobell:master, r=Centril

    Fix src/libcore/str/mod.rs doc comments
    
    Fix grammar in src/libcore/str/mod.rs doc comments. r? @steveklabnik
    Centril authored Dec 21, 2019
    Configuration menu
    Copy the full SHA
    466fdea View commit details
    Browse the repository at this point in the history