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

[beta]: Prepare the 1.31.0 beta release #55405

Merged
merged 27 commits into from
Oct 29, 2018
Merged

Commits on Oct 29, 2018

  1. [beta]: Prepare the 1.31.0 stable release

    * Update to Cargo's branched 1.31.0 branch
    * Update bootstrap compiler to stable 1.30.0
    * Update the channel to `beta`
    alexcrichton authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    a330092 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2404f5e View commit details
    Browse the repository at this point in the history
  3. Fix link to macros chapter

    We're gonna link to nightly as this didn't make it into the corresponding stable.
    steveklabnik authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    481bd16 View commit details
    Browse the repository at this point in the history
  4. Remove redundant clone

    sinkuu authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    ff0605a View commit details
    Browse the repository at this point in the history
  5. Shrink Statement.

    This commit reduces the size of `Statement` from 80 bytes to 56 bytes on
    64-bit platforms, by boxing the `AscribeUserType` variant of
    `StatementKind`.
    
    This change reduces instruction counts on most benchmarks by 1--3%.
    nnethercote authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    87f4ad1 View commit details
    Browse the repository at this point in the history
  6. Remove PlaceContext from API of mir::Visitor::visit_projection_elem.

    It is unused, and would not make sense to maintain in the commits later in this PR.
    pnkfelix authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    dc4e0bd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3bb7999 View commit details
    Browse the repository at this point in the history
  8. Refactoring: added PatternTypeAnnotation wrapper around `UserTypeAn…

    …notation` to ease future changes.
    pnkfelix authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    8a15d7b View commit details
    Browse the repository at this point in the history
  9. Added mir::UserTypeProjection, a stub for a structure that projects…

    … *into* a given UserTypeAnnotation.
    
    (That is, it will pull out some component type held or referenced by
    the type annotation.)
    
    Note: this still needs to actually do projection itself. That comes in
    a later commit
    pnkfelix authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    f279d8a View commit details
    Browse the repository at this point in the history
  10. Checkpoint: Added abstraction over collection of projections into use…

    …r type.
    
    I did not think I would need this in the MIR, but in general local
    decls are going to need to support this. (That, or we need to be able
    define a least-upper-bound for a collection of types encountered via
    the pattern compilation.)
    pnkfelix authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    83e6c3c View commit details
    Browse the repository at this point in the history
  11. Add the actual chain of projections to UserTypeProjection.

    Update the existing NLL `patterns.rs` test accordingly.
    
    includes changes addressing review feedback:
    
     * Added example to docs for `UserTypeProjections` illustrating how we
       build up multiple projections when descending into a pattern with
       type ascriptions.
    
     * Adapted niko's suggested docs for `UserTypeProjection`.
    
     * Factored out `projection_ty` from more general `projection_ty_core`
       (as a drive-by, made its callback an `FnMut`, as I discovered later
       that I need that).
    
     * Add note to docs that `PlaceTy.field_ty(..)` does not normalize its result.
    
     * Normalize as we project out `field_ty`.
    pnkfelix authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    8f94230 View commit details
    Browse the repository at this point in the history
  12. Update mir-opt tests to reflect change to AscribeUserType to carry …

    …a `UserTypeProjection`.
    pnkfelix authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    fb68889 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0cb0d49 View commit details
    Browse the repository at this point in the history
  14. Add test for normalization during field-lookup on patterns with ascri…

    …bed types.
    
    As a drive-by, also added test analogous to existing
    static_to_a_to_static_through_tuple, but now apply to a struct instead
    of a tuple.
    pnkfelix authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    ad3c607 View commit details
    Browse the repository at this point in the history
  15. Add intern table for List<ProjectionElem<'tcx, (), ()>>.

    Also added alias `ProjectionKind<'tcx>` for `ProjectionElem<'tcx, (), ()>`.
    pnkfelix authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    5a85bb6 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    5e52b66 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    7a1093b View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    66931a0 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    b909534 View commit details
    Browse the repository at this point in the history
  20. resolve: Absolute paths may be undetermined on 2018 edition

    due to macro-expanded `extern crate` items adding names to extern prelude.
    petrochenkov authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    8c65675 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    feea133 View commit details
    Browse the repository at this point in the history
  22. resolve: Make sure macros and imports are resolved in full parent scope

    Slightly simplify `fn build_reduced_graph_for_use_tree`
    petrochenkov authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    540d837 View commit details
    Browse the repository at this point in the history
  23. resolve: Desugar empty import groups into synthetic dummy imports

    so that they are correctly resolved on 2018 edition
    petrochenkov authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    f7e7b3a View commit details
    Browse the repository at this point in the history
  24. Fix ordering of nested modules in non-mod.rs mods

    Flatten relative offset into directory path before adding inline
    (mod x { ... }) module names to the current directory path.
    
    Fix rust-lang#55094
    cramertj authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    f186dce View commit details
    Browse the repository at this point in the history
  25. Add note linking to Rust 2018 path semantics docs.

    This commit extends existing path suggestions to link to documentation
    on the changed semantics of `use` in Rust 2018.
    davidtwco authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    1cc978d View commit details
    Browse the repository at this point in the history
  26. back out bogus Ok-wrapping suggestion on ? arm type mismatch

    This suggestion was introduced in rust-lang#51938 / 6cc78bf (while
    introducing different language for type errors coming from `?` rather
    than a `match`), but it has a lot of false-positives (as repeatedly
    reported in Issues rust-lang#52537, rust-lang#52598, rust-lang#54578, rust-lang#55336), and incorrect
    suggestions carry more badness than marginal good suggestions do
    goodness. Just get rid of it (unless and until someone figures out how
    to do it correctly).
    
    Resolves rust-lang#52537, resolves rust-lang#54578.
    zackmdavis authored and pietroalbini committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    4b3b4d2 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    7c81496 View commit details
    Browse the repository at this point in the history