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 5 pull requests #61915

Merged
merged 17 commits into from
Jun 18, 2019
Merged

Rollup of 5 pull requests #61915

merged 17 commits into from
Jun 18, 2019

Commits on Jun 9, 2019

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

Commits on Jun 16, 2019

  1. Configuration menu
    Copy the full SHA
    af0e35e View commit details
    Browse the repository at this point in the history
  2. make Weak::ptr_eqs into methods

    chpio committed Jun 16, 2019
    Configuration menu
    Copy the full SHA
    387ac06 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2019

  1. don't ICE on large files

    This is an extremely marginal error, so the cost of properly threading
    `Handler` everywhere just not seemed justified. However, it's useful
    to panic when we create a file, and not when we slice strings with
    overflown indexes somewhere in the guts of the compiler.
    
    For this reason, while we provide safe `try_new_source_file`, we don't
    change the existing public interface and just panic more or less
    cleanly.
    matklad committed Jun 17, 2019
    Configuration menu
    Copy the full SHA
    ccb2dfb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    61964d9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d996c4d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1c8551b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    21fbb59 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    88961b0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    72bb5c7 View commit details
    Browse the repository at this point in the history
  8. fix rebase fallout

    ljedrz committed Jun 17, 2019
    Configuration menu
    Copy the full SHA
    61e004d View commit details
    Browse the repository at this point in the history
  9. remove superfluous space

    ljedrz committed Jun 17, 2019
    Configuration menu
    Copy the full SHA
    e1bf56d View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#61702 - RalfJung:const-enum-cast, r=oli-obk

    test more variants of enum-int-casting
    
    As I learned in rust-lang#61673 (comment), there is a code path we are not testing yet. Looks like enum-int-casting with and without an intermediate let-binding is totally different.
    
    EDIT: The reason for this is to get rid of the cycle in definitions such as:
    ```rust
    enum Foo {
        A = 0,
        B = Foo::A as isize + 2,
    }
    ```
    This has historically been supported, so a hack adding special treatment to `Enum::Variant as _` was added to keep supporting it.
    Centril committed Jun 17, 2019
    Configuration menu
    Copy the full SHA
    a2259aa View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#61836 - ljedrz:i_still_hate_node_ids, r=ljedrz

    Replace some uses of NodeId with HirId
    
    We are still using `NodeId` in some spots where we could use `HirId` instead; this PR targets some of these spots and removes some of the associated `hir::map` functions.
    Centril committed Jun 17, 2019
    Configuration menu
    Copy the full SHA
    0800b6e View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#61885 - scottmcm:slice-iter-len-opt, r=rkru…

    …ppe,RalfJung
    
    Help LLVM better optimize slice::Iter(Mut)::len
    
    r? @RalfJung
    
    I've included a codegen test that fails without this change as a demonstration of usefulness.
    Centril committed Jun 17, 2019
    Configuration menu
    Copy the full SHA
    2d3d0b7 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#61893 - chpio:weak_ptr_eq_methods, r=rkruppe

    make `Weak::ptr_eq`s into methods
    
    This makes the `Weak::ptr_eq`s associated function into methods. There's no reason for methods on `Weak`s to be associated functions, as there is no `Dered` thus no possibility of a collision. Also: methods can be called using the associated function syntax.
    
    follow up on rust-lang#55987
    [Tracking issue for weak_ptr_eq](rust-lang#55981)
    Centril committed Jun 17, 2019
    Configuration menu
    Copy the full SHA
    04d6539 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#61908 - matklad:overflow, r=petrochenkov

    don't ICE on large files
    
    This is an extremely marginal error, so the cost of properly threading
    `Handler` everywhere just not seemed justified. However, it's useful
    to panic when we create a file, and not when we slice strings with
    overflown indexes somewhere in the guts of the compiler.
    
    For this reason, while we provide safe `try_new_source_file`, we don't
    change the existing public interface and just panic more or less
    cleanly.
    
    closes rust-lang#61904
    
    r? @petrochenkov
    Centril committed Jun 17, 2019
    Configuration menu
    Copy the full SHA
    6fe2653 View commit details
    Browse the repository at this point in the history