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

Merged
merged 66 commits into from
Mar 19, 2020
Merged

Rollup of 10 pull requests #70112

merged 66 commits into from
Mar 19, 2020

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 16, 2020

  1. Configuration menu
    Copy the full SHA
    73a625b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4392a8b 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
    aa20d96 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    429b16e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7f5a284 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    cc4a577 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9ac93ee View commit details
    Browse the repository at this point in the history
  10. 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
  11. Configuration menu
    Copy the full SHA
    9a017da View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2020

  1. Configuration menu
    Copy the full SHA
    bc75cba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2899a58 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    185c1d3 View commit details
    Browse the repository at this point in the history
  4. simplify submod_path

    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    2db5d49 View commit details
    Browse the repository at this point in the history
  5. submod_path: use id.span

    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    803de31 View commit details
    Browse the repository at this point in the history
  6. extract parse_mod

    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    7108b7f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    dfcefa4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ca098b1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    53a633f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    98e71cd View commit details
    Browse the repository at this point in the history
  11. expand: use push_directory

    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    b9e1b26 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8bab88f View commit details
    Browse the repository at this point in the history
  13. extract parse_external_module

    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    463995f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    59bf8a0 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    83a757a View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    f1ca996 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    ddcc8ec View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    3796fae View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    31ee8e0 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    a6cb04f View commit details
    Browse the repository at this point in the history
  21. parser/expand: minor cleanup

    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    7d0e5bb View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    fe71342 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    41a0b3e View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    5ee4f6f View commit details
    Browse the repository at this point in the history
  25. fix rebase fallout

    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    e301291 View commit details
    Browse the repository at this point in the history
  26. --bless windows test

    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    8caf688 View commit details
    Browse the repository at this point in the history
  27. Tidy: fix running rustfmt twice

    ehuss committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    287c4eb View commit details
    Browse the repository at this point in the history
  28. 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
    5610684 View commit details
    Browse the repository at this point in the history
  29. 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
    8188b21 View commit details
    Browse the repository at this point in the history
  30. 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
    3f583fc View commit details
    Browse the repository at this point in the history
  31. 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
    4118ff6 View commit details
    Browse the repository at this point in the history
  32. Rollup merge of rust-lang#69838 - Centril:expand-module, r=petrochenkov

    Expansion-driven outline module parsing
    
    After this PR, the parser will not do any conditional compilation or loading of external module files when `mod foo;` is encountered. Instead, the parser only leaves `mod foo;` in place in the AST, with no items filled in. Expansion later kicks in and will load the actual files and do the parsing. This entails that the following is now valid:
    
    ```rust
    #[cfg(FALSE)]
    mod foo {
        mod bar {
            mod baz; // `foo/bar/baz.rs` doesn't exist, but no error!
        }
    }
    ```
    
    Fixes rust-lang#64197.
    
    r? @petrochenkov
    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    23b79d8 View commit details
    Browse the repository at this point in the history
  33. 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
    a958314 View commit details
    Browse the repository at this point in the history
  34. 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
    2521849 View commit details
    Browse the repository at this point in the history
  35. Rollup merge of rust-lang#69920 - Centril:hir-cleanup, r=Zoxc

    Remove some imports to the rustc crate
    
    - When we have `NestedVisitorMap::None`, we use `type Map = dyn intravisit::Map<'v>;` instead of the actual map. This doesn't actually result in dynamic dispatch (in the future we may want to use an associated type default to simplify the code).
    
    - Use `rustc_session::` imports instead of `rustc::{session, lint}`.
    
    r? @Zoxc
    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    292c538 View commit details
    Browse the repository at this point in the history
  36. 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
    60a2d06 View commit details
    Browse the repository at this point in the history
  37. Rollup merge of rust-lang#70106 - ehuss:fix-tidy-fmt-twice, r=Mark-Si…

    …mulacrum
    
    Tidy: fix running rustfmt twice
    
    `./x.py test tidy` runs rustfmt twice. This is because `Build::build` runs `execute_cli` twice (once dry, once not). This can be quite slow (and prints a bunch of things twice).
    
    I'm not sure if this is really the best place to check the dry_run status.
    Centril committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    b6f61a1 View commit details
    Browse the repository at this point in the history