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

Merged
merged 17 commits into from
Feb 2, 2023
Merged

Rollup of 7 pull requests #107601

merged 17 commits into from
Feb 2, 2023

Commits on Jan 31, 2023

  1. Add test.

    cjgillot committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    05ee406 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3c10cf0 View commit details
    Browse the repository at this point in the history
  3. Remove assignment.

    cjgillot committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    e8ac040 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2023

  1. Configuration menu
    Copy the full SHA
    2c23c7f View commit details
    Browse the repository at this point in the history
  2. Improve pretty-printing of HirIdValidator errors

    This now uses `node_to_string` for both missing and seen Ids, which includes
    the snippet of code for which the Id was allocated.
    Also removes the duplicated printing of `HirId`, as `node_to_string` includes that already.
    Similarly, changes all other users of `node_to_string` that do so, and changes the output of `node_to_string`, which is now "$hirid ($what `$span` in $path)".
    Swatinem committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    3a75f10 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e30cd18 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

  1. Configuration menu
    Copy the full SHA
    9dd5d3e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9fe8ae7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a7f97a7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4ab75de View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#106919 - compiler-errors:underscore-typo-in…

    …-field-pat, r=jackh726
    
    Recover `_` as `..` in field pattern
    matthiaskrgr authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    8f47954 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#107493 - clubby789:range-fat-arrow-followup…

    …, r=estebank
    
    Improve diagnostic for missing space in range pattern
    
    Improves the diagnostic in rust-lang#107425 by turning it into a note explaining the parsing issue.
    
    r? `@compiler-errors`
    matthiaskrgr authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    e9c4e29 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#107515 - Swatinem:hirvalidator, r=compiler-…

    …errors
    
    Improve pretty-printing of `HirIdValidator` errors
    
    This now uses `node_to_string` for both missing and seen Ids, which includes the snippet of code for which the Id was allocated. Also removes the duplicated printing of `HirId`, as `node_to_string` also includes that.
    matthiaskrgr authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    230c9e9 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#107524 - cjgillot:both-storage, r=RalfJung

    Remove both StorageLive and StorageDead in CopyProp.
    
    Fixes rust-lang#107511
    
    rust-lang#106908 removed StorageDead without the accompanying StorageLive. In loops, execution would see repeated StorageLive, without any StorageDead, which is UB.
    
    So when removing storage statements, we have to remove both StorageLive and StorageDead.
    
    ~I also added a MIR validation pass for StorageLive. It may be a bit overzealous.~
    matthiaskrgr authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    6917040 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#107532 - compiler-errors:erase-regions-in-u…

    …ninhabited, r=jackh726
    
    Erase regions before doing uninhabited check in borrowck
    
    ~Also, fingerprint query keys/values when debug assertions are enabled. This should make it easier to check for issues like this without `-Cincremental`, and make UI tests a bit cleaner.~ edit: moving that to a separate PR
    
    Fixes rust-lang#107505
    matthiaskrgr authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    3e0995a View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#107559 - WaffleLapkin:is_it_2015¿, r=davidtwco

    Rename `rust_2015` → `is_rust_2015`
    
    r? ```@compiler-errors```
    rust-lang#107508 (comment)
    matthiaskrgr authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    3d92100 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#107577 - nnethercote:reinstate-hir-stats, r…

    …=jyn514
    
    Reinstate the `hir-stats.rs` tests on stage 1.
    
    r? ```@the8472```
    matthiaskrgr authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    08181ea View commit details
    Browse the repository at this point in the history