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

Closed
wants to merge 32 commits into from

Commits on Dec 27, 2023

  1. Configuration menu
    Copy the full SHA
    5f56465 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a251974 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    32cea61 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    977546d View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2023

  1. Configuration menu
    Copy the full SHA
    76d616d View commit details
    Browse the repository at this point in the history
  2. Disallow reference to static mut for expressions

    Add `E0796` error code.
    Add `static_mut_ref` lint.
    
    This is the idea for the 2024 edition.
    obeis committed Dec 29, 2023
    Configuration menu
    Copy the full SHA
    9faa4b5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    11129a8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5e01c26 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a4a774a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cd07eb1 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2023

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

Commits on Jan 2, 2024

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

Commits on Jan 4, 2024

  1. Configuration menu
    Copy the full SHA
    03e9eff View commit details
    Browse the repository at this point in the history
  2. Remove -Zdump-mir-spanview

    Zalathar committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    af32054 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ddc5a82 View commit details
    Browse the repository at this point in the history
  4. Remove -Zreport-delayed-bugs.

    It's not used within the repository in any way (e.g. in tests), and
    doesn't seem useful.
    nnethercote committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    cf9484e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    35ad2ae View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5bc7687 View commit details
    Browse the repository at this point in the history
  7. Move i586-unknown-netbsd from tier 2 to tier 3 platform support table

    It appears it was intended to be tier 3, but was accidentally added to
    tier 2.
    Nemo157 committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    073ed0e View commit details
    Browse the repository at this point in the history
  8. Visit only reachable blocks in MIR lint

    No functional changes - all checks have been emitted conditionally on
    block being rechable already.
    tmiasko committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    12b92c8 View commit details
    Browse the repository at this point in the history
  9. Fix validation and linting of injected MIR

    Reevaluate `body.should_skip()` after updating the MIR phase to ensure
    that injected MIR is processed correctly.
    
    Update a few custom MIR tests that were ill-formed for the injected
    phase.
    tmiasko committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    a084e06 View commit details
    Browse the repository at this point in the history
  10. Migrate memory overlap check from validator to lint

    The check attempts to identify potential undefined behaviour, rather
    than whether MIR is well-formed. It belongs in the lint not validator.
    tmiasko committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    df116ec View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2024

  1. Rollup merge of rust-lang#117449 - oli-obk:query_merge_immobile_game,…

    … r=matthewjasper
    
    Avoid silencing relevant follow-up errors
    
    r? ``@matthewjasper``
    
    This PR only adds new errors to tests that are already failing and fixes one ICE.
    
    Several tests were changed to not emit new errors. I believe all of them were faulty tests, and not explicitly testing for the code that had new errors.
    matthiaskrgr authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    7a5a540 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#117556 - obeis:static-mut-ref-lint, r=david…

    …twco
    
    Disallow reference to `static mut` and adding `static_mut_ref` lint
    
    Closes rust-lang#114447
    
    r? `@scottmcm`
    matthiaskrgr authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    011b61e View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#119354 - fmease:negative_bounds-fixes, r=co…

    …mpiler-errors
    
    Make `negative_bounds` internal & fix some of its issues
    
    r? compiler-errors
    matthiaskrgr authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    7843807 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#119420 - cjgillot:issue-119295, r=compiler-…

    …errors
    
    Handle ForeignItem as TAIT scope.
    
    Fixes rust-lang#119295
    matthiaskrgr authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    e8b5899 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#119506 - compiler-errors:visibilities-for-o…

    …bject-safety-error, r=Nilstrieb
    
    Use `resolutions(()).effective_visiblities` to avoid cycle errors in `report_object_error`
    
    Inside of `report_object_error`, using the `effective_visibilities` query causes cycles since it calls `type_of`, which itself may call `typeck`, which may end up reporting its own object-safety errors.
    
    Fixes rust-lang#119346
    Fixes rust-lang#119502
    matthiaskrgr authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    594ba79 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#119566 - Zalathar:remove-spanview, r=Swatin…

    …em,Nilstrieb
    
    Remove `-Zdump-mir-spanview`
    
    The `-Zdump-mir-spanview` flag was added back in rust-lang#76074, as a development/debugging aid for the initial work on what would eventually become `-Cinstrument-coverage`. It causes the compiler to emit an HTML file containing a function's source code, with various spans highlighted based on the contents of MIR.
    
    When the suggestion was made to [triage and remove unnecessary `-Z` flags (Zulip)](https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/.60-Z.60.20option.20triage), I noted that this flag could potentially be worth removing, but I wanted to keep it around to see whether I found it useful for my own coverage work.
    
    But when I actually tried to use it, I ran into various issues (e.g. it crashes on `tests/coverage/closure.rs`). If I can't trust it to work properly without a full overhaul, then instead of diving down a rabbit hole of trying to fix arcane span-handling bugs, it seems better to just remove this obscure old code entirely.
    
    ---
    
    `@rustbot` label +A-code-coverage
    matthiaskrgr authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    5e5ecf5 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#119567 - nnethercote:rm-Zreport-delayed-bug…

    …s, r=oli-obk
    
    Remove `-Zreport-delayed-bugs`.
    
    It's not used within the repository in any way (e.g. in tests), and doesn't seem useful.
    
    It was added in rust-lang#52568.
    
    r? `@oli-obk`
    matthiaskrgr authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    d483369 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#119577 - tmiasko:lint, r=oli-obk

    Migrate memory overlap check from validator to lint
    
    The check attempts to identify potential undefined behaviour, rather
    than whether MIR is well-formed. It belongs in the lint not validator.
    
    Follow up to changes from rust-lang#119077.
    matthiaskrgr authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    af97ffc View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#119586 - GuillaumeGomez:jump-to-def-static-…

    …methods, r=notriddle
    
    [rustdoc] Fix invalid handling for static method calls in jump to definition feature
    
    I realized when working on a clippy lint that static method calls on `Self` could not give me the method `Res`. For that, we need to use `typeck` and so that's what I did in here.
    
    It fixes the linking to static method calls.
    
    r? `@notriddle`
    matthiaskrgr authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    f88beca View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#119588 - Nemo157:i586-netbsd-tier-3, r=Nils…

    …trieb
    
    Move `i586-unknown-netbsd` from tier 2 to tier 3 platform support table
    
    It appears it was intended to be tier 3, but was accidentally added to tier 2. Based on inspecting the PR adding it the table rust-lang#117170 and the fact that it is not built in CI which is one of the tier 2 requirements.
    
    cc `@he32`
    
    r? `@Nilstrieb`
    matthiaskrgr authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    cbe63d0 View commit details
    Browse the repository at this point in the history