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 11 pull requests #100416

Merged
merged 32 commits into from
Aug 11, 2022
Merged

Rollup of 11 pull requests #100416

merged 32 commits into from
Aug 11, 2022

Commits on Jul 10, 2022

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

Commits on Aug 6, 2022

  1. Remove duplicated temporaries creating during box derefs elaboration

    Temporaries created with `MirPatch::new_temp` will be declared after
    patch application. Remove manually created duplicate declarations.
    
    Removing duplicates exposes another issue. Visitor elaborates
    terminator twice and attempts to access new, but not yet available,
    local declarations. Remove duplicated call to `visit_terminator`.
    tmiasko committed Aug 6, 2022
    Configuration menu
    Copy the full SHA
    18a21e1 View commit details
    Browse the repository at this point in the history
  2. ./x.py test --bless

    tmiasko committed Aug 6, 2022
    Configuration menu
    Copy the full SHA
    7d2131a View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2022

  1. linux: Use pthread_setname_np instead of prctl

    This function is available on Linux since glibc 2.12, musl 1.1.16, and
    uClibc 1.0.20. The main advantage over `prctl` is that it properly
    represents the pointer argument, rather than a multi-purpose `long`,
    so we're better representing strict provenance (rust-lang#95496).
    cuviper committed Aug 8, 2022
    Configuration menu
    Copy the full SHA
    013986b View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2022

  1. Avoid repeating qualifiers on static_assert_size calls.

    Some of these don't need a `use` statement because there is already a
    `#[macro_use] extern crate rustc_data_structures` item in the crate.
    nnethercote committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    574ba83 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0658e8c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a2b6744 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a4f52a5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0cd06fb View commit details
    Browse the repository at this point in the history
  6. Stabilize ptr_const_cast

    This stabilizes `ptr_const_cast` feature as was decided in a recent
    [FCP](rust-lang#92675 (comment))
    
    Closes rust-lang#92675
    Kixunil committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    2a3ce78 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9701845 View commit details
    Browse the repository at this point in the history
  8. Adapt ui-fulldeps test.

    cjgillot committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    69205db View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a3b84ad View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    dfb3713 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2022

  1. Add a test for -Zhir-stats output.

    This will be very useful in subsequent commits where I will improve the
    output.
    nnethercote committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    bf20777 View commit details
    Browse the repository at this point in the history
  2. Improve AST stat collector.

    This commit:
    - Adds a comment explaining which `visit_*` methods should be
      implemented.
    - Adds and removes some `visit_*` methods accordingly, improving
      coverage, and avoiding some double counting.
    nnethercote committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    288b667 View commit details
    Browse the repository at this point in the history
  3. Change how AssocItem is reported.

    Currently it's reported as either `TraitItem` or `ImplItem`. This commit
    changes it to `AssocItem`, because having the report match the type name
    is (a) consistent with other types, and (b) the trait/impl split isn't
    that important here.
    nnethercote committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    6a3c663 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    85c7492 View commit details
    Browse the repository at this point in the history
  5. Add a second level to the AST size reporting.

    This tells you which variants of the enums are most common, which is
    very useful. I've only done it for the AST for now, HIR can be done
    later.
    nnethercote committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    4f8a170 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a72f0c2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    46af79c View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#92744 - lambinoo:I-91161-non-exhaustive-for…

    …eign-variants, r=scottmcm
    
    Check if enum from foreign crate has any non exhaustive variants when attempting a cast
    
    Fixes rust-lang#91161
    
    As stated in the issue, this will require a crater run as it might break other people's stuff.
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    dfddc2f View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#99110 - audunhalland:match_has_guard_from_c…

    …andidate, r=pnkfelix
    
    Determine match_has_guard from candidates instead of looking up thir table again
    
    Currently looking through mir build of matches because of interest in deref patterns. Finding some micro-optimizable things.
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    561ea0a View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#100184 - Kixunil:stabilize_ptr_const_cast, …

    …r=m-ou-se
    
    Stabilize ptr_const_cast
    
    This stabilizes `ptr_const_cast` feature as was decided in a recent
    [FCP](rust-lang#92675 (comment))
    
    Closes rust-lang#92675
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    d749914 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#100192 - tmiasko:rm-duplicated-locals, r=na…

    …gisa
    
     Remove duplicated temporaries creating during box derefs elaboration
    
    Temporaries created with `MirPatch::new_temp` will be declared after
    patch application. Remove manually created duplicate declarations.
    
    Removing duplicates exposes another issue. Visitor elaborates
    terminator twice and attempts to access new, but not yet available,
    local declarations. Remove duplicated call to `visit_terminator`.
    
    Extracted from rust-lang#99946.
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    32bd147 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#100232 - cjgillot:no-desugar-methodcall, r=…

    …nagisa
    
    Do not consider method call receiver as an argument in AST.
    
    Fixes rust-lang#73663
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    1c43cab View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#100287 - cuviper:no-linux-prctl, r=Mark-Sim…

    …ulacrum
    
    linux: Use `pthread_setname_np` instead of `prctl`
    
    This function is available on Linux since glibc 2.12, musl 1.1.16, and
    uClibc 1.0.20. The main advantage over `prctl` is that it properly
    represents the pointer argument, rather than a multi-purpose `long`,
    so we're better representing strict provenance (rust-lang#95496).
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    a5b0f72 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#100351 - compiler-errors:diagnostic-convent…

    …ion, r=fee1-dead
    
    Use `&mut Diagnostic` instead of `&mut DiagnosticBuilder` unless needed
    
    This seems to be the established convention (02ff9e0) when `DiagnosticBuilder` was first added. I am guilty of introducing some of these.
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    b5f5bdc View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#100370 - GuillaumeGomez:rm-more-clean-impls…

    …, r=Dylan-DPC
    
    Remove more Clean trait implementations
    
    Follow-up of rust-lang#99638.
    
    r? `@Dylan-DPC`
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    1d09545 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#100391 - nnethercote:improve-size-assertion…

    …s, r=lqd
    
    Improve size assertions
    
    r? `@lqd`
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    bc0f9e3 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#100398 - nnethercote:improve-Zhir-stats, r=…

    …michaelwoerister
    
    Improve `-Zhir-stats`
    
    Add testing, improve coverage, avoid some double counting, and add more detail.
    
    r? `@michaelwoerister`
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    7ecc892 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#100403 - GuillaumeGomez:improve-messages, r…

    …=jsha
    
    Improve error messages when running rustdoc GUI tests
    
    There was already a message on how to install `browser-ui-test`, so nothing to be done there. However, we didn't show how to update its version, so the first commit adds it.
    
    Another pain point was how to fix the unexpected crash in `browser-ui-test` (because of a missing `--no-sandbox`, still no idea why it became mandatory a few months ago on some linux distributions...). It now looks like this:
    
    ```console
    Running 1 rustdoc-gui (8 concurrently) ...
    ERROR: puppeteer failed when trying to create a new page. Please try again with `--no-sandbox`
    
    `browser-ui-test` crashed unexpectedly. Please try again with adding `--test-args --no-sandbox` at the end. For example: `x.py test src/test/rustdoc-gui --test-args --no-sandbox`
    
    Build completed unsuccessfully in 0:00:03
    ```
    
    Thanks to `@jsha` for suggesting these improvements!
    
    r? `@jsha`
    Dylan-DPC authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    f583bf6 View commit details
    Browse the repository at this point in the history