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

Merged
merged 13 commits into from
Sep 12, 2024
Merged

Rollup of 5 pull requests #130281

merged 13 commits into from
Sep 12, 2024

Commits on Sep 8, 2024

  1. Configuration menu
    Copy the full SHA
    7f9a541 View commit details
    Browse the repository at this point in the history
  2. add FIXME(const-hack)

    RalfJung committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    332fa6a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7a3a317 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Introduce 'ra lifetime name.

    `rustc_resolve` allocates many things in `ResolverArenas`. The lifetime
    used for references into the arena is mostly `'a`, and sometimes `'b`.
    
    This commit changes it to `'ra`, which is much more descriptive. The
    commit also changes the order of lifetimes on a couple of structs so
    that '`ra` is second last, before `'tcx`, and does other minor
    renamings such as `'r` to `'a`.
    nnethercote committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    d4fc76c View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Configuration menu
    Copy the full SHA
    a7a3595 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2344133 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    675c99f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d3ebd23 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#130101 - RalfJung:const-cleanup, r=fee1-dead

    some const cleanup: remove unnecessary attributes, add const-hack indications
    
    I learned that we use `FIXME(const-hack)` on top of the "const-hack" label. That seems much better since it marks the right place in the code and moves around with the code. So I went through the PRs with that label and added appropriate FIXMEs in the code. IMO this means we can then remove the label -- Cc ``@rust-lang/wg-const-eval.``
    
    I also noticed some const stability attributes that don't do anything useful, and removed them.
    
    r? ``@fee1-dead``
    matthiaskrgr authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    4428d6f View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#130208 - nnethercote:rslv-lifetime, r=petro…

    …chenkov
    
    Introduce `'ra` lifetime name.
    
    `rustc_resolve` allocates many things in `ResolverArenas`. The lifetime used for references into the arena is mostly `'a`, and sometimes `'b`.
    
    This commit changes it to `'rslv`, which is much more descriptive. The commit also changes the order of lifetimes on a couple of structs so that '`rslv` is second last, before `'tcx`, and does other minor renamings such as `'r` to `'a`.
    
    r? ``@petrochenkov``
    cc ``@oli-obk``
    matthiaskrgr authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    b0ff0b7 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#130263 - Zalathar:sums, r=compiler-errors

    coverage: Simplify creation of sum counters
    
    A small and self-contained improvement, extracted from some larger changes that I'm still working on.
    
    Ultimately I want to avoid creating these sum counter-expressions in some cases (in favour of just adding physical counters directly to the nodes we care about), so a good incremental move towards that is splitting the “gather edge counters” step out from the ”build a sum of those counters” step.
    
    Creating an extra intermediate vector should have negligible cost (and coverage isn't exercised by the benchmark suite anyway). The removed logging is redundant with the `#[instrument(..)]` logging we already have on the underlying method calls.
    matthiaskrgr authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    7cae463 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#130273 - lcnr:overflow-no-constraints, r=co…

    …mpiler-errors
    
    more eagerly discard constraints on overflow
    
    We always discard the results of overflowing goals inside of the trait solver. We previously did so when instantiating the response in `evaluate_goal`. Canonicalizing results only to later discard them is also  inefficient 🤷
    
    It's simpler and nicer to debug to eagerly discard constraints inside of the query itself.
    
    r? ``@compiler-errors``
    matthiaskrgr authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    cb1d80d View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#130276 - compiler-errors:nalgebra-hang, r=lcnr

    Add test for nalgebra hang in coherence
    
    r? lcnr
    matthiaskrgr authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    ed1602e View commit details
    Browse the repository at this point in the history