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 10 pull requests #70109

Closed
wants to merge 58 commits into from
Closed

Commits on Feb 13, 2020

  1. keyword docs for else and inkeyword docs for else and in.

    gilescope authored and Giles Cope committed Feb 13, 2020
    Configuration menu
    Copy the full SHA
    a113609 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2020

  1. Configuration menu
    Copy the full SHA
    57f1bb1 View commit details
    Browse the repository at this point in the history
  2. Update tests

    GuillaumeGomez committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    64460a1 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2020

  1. miri: categorize errors into "unsupported" and "UB"

    Also slightly refactor pointer bounds checks to avoid creating unnecessary temporary Errors
    RalfJung committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    f5efb68 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d02543a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9a95b01 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3ebcd78 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2764d3d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3e61442 View commit details
    Browse the repository at this point in the history
  7. avoid boolean inversion

    RalfJung committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    d8f8168 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9681422 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    93436d8 View commit details
    Browse the repository at this point in the history
  10. fmt

    RalfJung committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    e219dd4 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2020

  1. Configuration menu
    Copy the full SHA
    b2779d8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4266807 View commit details
    Browse the repository at this point in the history
  3. Fix rebase fallout

    jonas-schievink committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    49aabd8 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2020

  1. Remove free_region_map from TypeckTables

    It was unused.
    matthewjasper committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    5a9ccc9 View commit details
    Browse the repository at this point in the history
  2. Don't use TypeckTables in NiceRegionError

    Regions in TypeckTables will be erased, so are unusable for error
    reporting.
    matthewjasper committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    cefd030 View commit details
    Browse the repository at this point in the history
  3. Erase regions in writeback

    Also skip duplicated region solving entirely with `-Zborrowck=mir`.
    matthewjasper committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    0a7f16e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1ee5829 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3314a34 View commit details
    Browse the repository at this point in the history
  6. Update test

    Zoxc committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    bdaf9e4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    aa20d96 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    429b16e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7f5a284 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    cc4a577 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9ac93ee View commit details
    Browse the repository at this point in the history
  12. Update pretty tests

    GuillaumeGomez committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    81172d8 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9a017da View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    548b182 View commit details
    Browse the repository at this point in the history
  15. Add psm to the crate whitelist

    oli-obk authored and nagisa committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    6c25307 View commit details
    Browse the repository at this point in the history
  16. Set the default stack size to 8MB

    This was the value used before we originally started raising the stack
    size to infinity.
    nagisa committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    410cdd7 View commit details
    Browse the repository at this point in the history
  17. Resolve some review comments

    nagisa committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    fb10e5c View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2020

  1. Configuration menu
    Copy the full SHA
    bb9f14c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a57ccf7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1b8331b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3c71f70 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    76c5a4f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4bea03d View commit details
    Browse the repository at this point in the history
  7. defatalize ProcMacroDerive::expand

    Also remove ExtCtxt::struct_span_fatal.
    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    a98ea5a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    576c7c9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8dddaed View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ad5304a View commit details
    Browse the repository at this point in the history
  11. expand: nix unused method

    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    de6e144 View commit details
    Browse the repository at this point in the history
  12. defatalize get_test_runner

    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    c440890 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    5a42b65 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    83313e4 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    7d38b0f View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#55617 - oli-obk:stacker, r=oli-obk,nagisa

    Prevent compiler stack overflow for deeply recursive code
    
    I was unable to write a test that
    
    1. runs in under 1s
    2. overflows on my machine without this patch
    
    The following reproduces the issue, but I don't think it's sensible to include a test that takes 30s to compile. We can now easily squash newly appearing overflows by the strategic insertion of calls to `ensure_sufficient_stack`.
    
    ```rust
    // compile-pass
    
    #![recursion_limit="1000000"]
    
    macro_rules! chain {
        (EE $e:expr) => {$e.sin()};
        (RECURSE $i:ident $e:expr) => {chain!($i chain!($i chain!($i chain!($i $e))))};
        (Z $e:expr) => {chain!(RECURSE EE $e)};
        (Y $e:expr) => {chain!(RECURSE Z $e)};
        (X $e:expr) => {chain!(RECURSE Y $e)};
        (A $e:expr) => {chain!(RECURSE X $e)};
        (B $e:expr) => {chain!(RECURSE A $e)};
        (C $e:expr) => {chain!(RECURSE B $e)};
        // causes overflow on x86_64 linux
        // less than 1 second until overflow on test machine
        // after overflow has been fixed, takes 30s to compile :/
        (D $e:expr) => {chain!(RECURSE C $e)};
        (E $e:expr) => {chain!(RECURSE D $e)};
        (F $e:expr) => {chain!(RECURSE E $e)};
        // more than 10 seconds
        (G $e:expr) => {chain!(RECURSE F $e)};
        (H $e:expr) => {chain!(RECURSE G $e)};
        (I $e:expr) => {chain!(RECURSE H $e)};
        (J $e:expr) => {chain!(RECURSE I $e)};
        (K $e:expr) => {chain!(RECURSE J $e)};
        (L $e:expr) => {chain!(RECURSE L $e)};
    }
    
    fn main() {
        let x = chain!(D 42.0_f32);
    }
    ```
    
    fixes rust-lang#55471
    fixes rust-lang#41884
    fixes rust-lang#40161
    fixes rust-lang#34844
    fixes rust-lang#32594
    
    cc @alexcrichton @rust-lang/compiler
    
    I looked at all code that checks the recursion limit and inserted stack growth calls where appropriate.
    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    d6e0e11 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#67749 - gilescope:keyword-in, r=Dylan-DPC

    keyword docs for else and inkeyword docs for else and in.
    
    First cut of else and in keyword docs. Comments and suggestions more than welcome.
    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    2b2dda1 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#69139 - GuillaumeGomez:cleanup-e0308, r=Dyl…

    …an-DPC
    
    clean up E0308 explanation
    
    r? @Dylan-DPC
    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    af6af30 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#69189 - matthewjasper:erase-the-world, r=ni…

    …komatsakis
    
    Erase regions in writeback
    
    Regions in `TypeckTables` (except canonicalized user annotations) are now erased. Further, we no longer do lexical region solving on item bodies with `-Zborrowck=mir`.
    
    cc rust-lang#68261
    r? @nikomatsakis
    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    1dfc89b View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#69497 - Zoxc:ast-fragment-error, r=petroche…

    …nkov
    
    Don't unwind when hitting the macro expansion recursion limit
    
    This removes one use of `FatalError.raise()`.
    
    r? @petrochenkov
    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    ee3336f View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#69837 - jonas-schievink:gen-discr-opt, r=tm…

    …andry
    
    Use smaller discriminants for generators
    
    Closes rust-lang#69815
    
    I'm not yet sure about the runtime performance impact of this, so I'll try running this on some benchmarks (if I can find any). (Update: No impact on the benchmarks I've measured on)
    
    * [x] Add test with a generator that has exactly 256 total states
    * [x] Add test with a generator that has more than 256 states so that it needs to use a u16 discriminant
    * [x] Add tests for the size of `Option<[generator]>`
    * [x] Add tests for the `discriminant_value` intrinsic in all cases
    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    4e0bd1b View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#69839 - RalfJung:miri-error-cleanup, r=oli-obk

    Miri error reform
    
    Some time ago we started moving Miri errors into a few distinct categories, but we never classified all the old errors. That's what this PR does.
    
    ~~This is on top of rust-lang#69762; [relative diff](RalfJung/rust@validity-errors...RalfJung:miri-error-cleanup).~~
    
    r? @oli-obk
    
    Fixes rust-lang/const-eval#4
    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    f1af774 View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#69899 - ecstatic-morse:const-idx-methods, r…

    …=oli-obk
    
    Make methods declared by `newtype_index` macro `const`
    
    Crates that use the macro to define an `Idx` type need to enable `#![feature(const_if_match, const_panic)]`.
    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    fc69654 View commit details
    Browse the repository at this point in the history
  24. Rollup merge of rust-lang#70074 - Centril:unpanictry, r=petrochenkov

    Expand: nix all fatal errors
    
    Basically, we go after all `.span_fatal` / `FatalError.raise()` and similar things and remove them one by one until there are no fatal errors left.
    
    r? @petrochenkov
    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    9318ffa View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#70075 - GuillaumeGomez:fix-repr-display, r=…

    …petrochenkov
    
    Fix repr pretty display
    
    Fixes rust-lang#70027.
    
    r? @varkor
    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    73f7c43 View commit details
    Browse the repository at this point in the history