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

Closed
wants to merge 56 commits into from
Closed

Commits on Jan 7, 2020

  1. Configuration menu
    Copy the full SHA
    cc0fbdf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5b770b0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4a5c35b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cac6f4c View commit details
    Browse the repository at this point in the history
  5. Poison any MemPlace created from a zst Operand (or otherwise via `M…

    …PlaceTy::dangling`) so you can't get the address back out.
    oli-obk committed Jan 7, 2020
    Configuration menu
    Copy the full SHA
    4fbe434 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    23b0c47 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a1990db View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f7f5952 View commit details
    Browse the repository at this point in the history
  9. Add more documentation

    oli-obk committed Jan 7, 2020
    Configuration menu
    Copy the full SHA
    29c372b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d0b24e5 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2020

  1. Configuration menu
    Copy the full SHA
    9c0000c View commit details
    Browse the repository at this point in the history
  2. review comments

    estebank committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    c556151 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0dcdbae View commit details
    Browse the repository at this point in the history
  4. review comment: wording

    estebank committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    542be6f View commit details
    Browse the repository at this point in the history
  5. review comments

    estebank committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    b522ba0 View commit details
    Browse the repository at this point in the history
  6. review comments

    estebank committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    ffcdbad View commit details
    Browse the repository at this point in the history
  7. reduce code duplication

    estebank committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    705e087 View commit details
    Browse the repository at this point in the history
  8. remove unnecessary Debug

    estebank committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    33ae322 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2020

  1. lowering: simplify HoFs

    Centril committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    bcab59e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    956265d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f75ccde View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ae6e31b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4e6329e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2db97ed View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    69b1e5c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    402907f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7472f9e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b743af6 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5dafa6a View commit details
    Browse the repository at this point in the history
  12. Update src/librustc_mir/interpret/place.rs

    Co-Authored-By: Ralf Jung <[email protected]>
    oli-obk and RalfJung authored Jan 9, 2020
    Configuration menu
    Copy the full SHA
    e632940 View commit details
    Browse the repository at this point in the history
  13. Rename Unsized to Meta

    oli-obk committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    a4fa5bb View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    c5c4fa8 View commit details
    Browse the repository at this point in the history
  15. Allow specifying LLVM args in target specifications

    Jethro Beekman committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    010b66d View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    915db7a View commit details
    Browse the repository at this point in the history
  17. Extend support of _ in type parameters

     - Account for `impl Trait<_>`.
     - Provide a reasonable `Span` for empty `Generics` in `impl`s.
     - Account for `fn foo<_>(_: _) {}` to suggest `fn foo<T>(_: T) {}`.
     - Fix rust-lang#67995.
    estebank committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    c751961 View commit details
    Browse the repository at this point in the history
  18. review comments: more tests

    estebank committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    6e04cf0 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2020

  1. Configuration menu
    Copy the full SHA
    63e2e44 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6fc4158 View commit details
    Browse the repository at this point in the history
  3. Add a constness field to ast::TraitRef

    This is used for both the `?const` syntax in bounds as well as the `impl
    const Trait` syntax. I also considered handling these separately by
    adding a variant of `TraitBoundModifier` and a field to
    `ItemKind::Impl`, but this approach was less intrusive.
    ecstatic-morse committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    fd4a6a1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1c3fe9d View commit details
    Browse the repository at this point in the history
  5. Parse ?const Trait bound syntax

    The grammar also handles `?const ?Trait` even though this is
    semantically redundant.
    ecstatic-morse committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    0cf52a7 View commit details
    Browse the repository at this point in the history
  6. Error when new syntax is lowered

    This means the new syntax will always fail to compile, even when the
    feature gate is enabled. These checks will be removed in a later PR
    once the implementation is done.
    ecstatic-morse committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    b390fc4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    31edbe9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d843e00 View commit details
    Browse the repository at this point in the history
  9. Add tests for RFC 2632

    ecstatic-morse committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    343e157 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b6b11f0 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9950a1f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    14730ed View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    fd1c003 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#66463 - estebank:point-at-closure-and-opaqu…

    …e-types, r=Centril
    
    Point at opaque and closure type definitions in type errors
    
    Fixes rust-lang#57266, fixes rust-lang#67117.
    Centril authored Jan 10, 2020
    Configuration menu
    Copy the full SHA
    fd9991c View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#67501 - oli-obk:test-slice-patterns, r=Ralf…

    …Jung
    
    Reduce special treatment for zsts
    
    addresses rust-lang#67467 (comment)
    
    cc @RalfJung
    Centril authored Jan 10, 2020
    Configuration menu
    Copy the full SHA
    79bb166 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#67820 - ecstatic-morse:const-trait, r=oli-obk

    Parse the syntax described in RFC 2632
    
    This adds support for both `impl const Trait for Ty` and `?const Trait` bound syntax from rust-lang/rfcs#2632 to the parser. For now, both modifiers end up in a newly-added `constness` field on `ast::TraitRef`, although this may change once the implementation is fleshed out.
    
    I was planning on using `delay_span_bug` when this syntax is encountered during lowering, but I can't write `should-ice` UI tests. I emit a normal error instead, which causes duplicates when the feature gate is not enabled (see the `.stderr` files for the feature gate tests). Not sure what the desired approach is; Maybe just do nothing when the syntax is encountered with the feature gate is enabled?
    
    @oli-obk I went with `const_trait_impl` and `const_trait_bound_opt_out` for the names of these features. Are these to your liking?
    
    cc rust-lang#67792 rust-lang#67794
    
    r? @Centril
    Centril authored Jan 10, 2020
    Configuration menu
    Copy the full SHA
    98e6e05 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#67922 - Centril:lowering-cleanup, r=petroch…

    …enkov
    
    rustc_ast_lowering: misc cleanup & rustc dep reductions
    
    - The first two commits do some code simplification.
    - The next three do some file splitting (getting `lib.rs` below the 3kloc tidy lint).
    - The remaining commits reduce the number of `rustc::` imports. This works towards making lowering independent of the `rustc` crate.
    
    r? @oli-obk cc @Zoxc
    Centril authored Jan 10, 2020
    Configuration menu
    Copy the full SHA
    b8b0742 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#68059 - jethrogb:jb/target-llvm-args, r=ale…

    …xcrichton
    
    Allow specifying LLVM args in target specifications
    Centril authored Jan 10, 2020
    Configuration menu
    Copy the full SHA
    0d959ad View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#68071 - estebank:ice-67995, r=Centril

    Extend support of `_` in type parameters
    
     - Account for `impl Trait<_>`.
     - Provide a reasonable `Span` for empty `Generics` in `impl`s.
     - Account for `fn foo<_>(_: _) {}` to suggest `fn foo<T>(_: T) {}`.
     - Fix rust-lang#67995. Follow up to rust-lang#67597.
    Centril authored Jan 10, 2020
    Configuration menu
    Copy the full SHA
    25e57f4 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#68073 - Centril:fix-68062, r=estebank

    expect `fn` after `const unsafe` / `const extern`
    
    Fixes rust-lang#68062
    
    r? @estebank @petrochenkov
    cc @Aaron1011
    Centril authored Jan 10, 2020
    Configuration menu
    Copy the full SHA
    a33e7c6 View commit details
    Browse the repository at this point in the history