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

Closed
wants to merge 36 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. bootstrap: Move -Clto= setting from Rustc::run to rustc_cargo

    It prevents a full rebuild of stage 1 compiler when issuing "x.py test"
    with rust.lto != thin-local in config.toml.
    xry111 committed Dec 29, 2023
    Configuration menu
    Copy the full SHA
    786e0bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    76d616d 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 3, 2024

  1. Rename some Diagnostic setters.

    `Diagnostic` has 40 methods that return `&mut Self` and could be
    considered setters. Four of them have a `set_` prefix. This doesn't seem
    necessary for a type that implements the builder pattern. This commit
    removes the `set_` prefixes on those four methods.
    nnethercote committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    505c137 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5fe5d5d View commit details
    Browse the repository at this point in the history
  3. Remove forward for downgrade_to_delayed_bug.

    It's not used, and doesn't quite fit the general pattern.
    
    Also, `Diagnostic::downgrade_to_delayed_bug` doesn't need to return
    `&mut Self` for the same reason.
    nnethercote committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    096b844 View commit details
    Browse the repository at this point in the history
  4. Fix up forward! decls.

    - Move comments onto corresponding `Diagnostic` methods.
    - Make formatting more consistent.
    nnethercote committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    caefa55 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b4a6239 View commit details
    Browse the repository at this point in the history
  6. Remove unused DiagnosticBuilder::struct_almost_fatal.

    `create_almost_fatal` and `emit_almost_fatal` are always used instead.
    nnethercote committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    1e92223 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2024

  1. Avoid some rustc_errors:: qualifiers.

    These are misleading, because the mixture of `Level` and
    `rustc_errors::Level` makes it look like there are two different types
    involved.
    nnethercote committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    9560c58 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4d35981 View commit details
    Browse the repository at this point in the history
  3. Inline and remove StringReader::struct_fatal_span_char.

    It has a single call site.
    nnethercote committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    8e6bca6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    03e9eff View commit details
    Browse the repository at this point in the history
  5. 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
  6. Remove is_lint field from Level::Error.

    Because it's redundant w.r.t. `Diagnostic::is_lint`, which is present
    for every diagnostic level.
    
    `struct_lint_level_impl` was the only place that set the `Error` field
    to `true`, and it's also the only place that calls
    `Diagnostic::is_lint()` to set the `is_lint` field.
    nnethercote committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    8388112 View commit details
    Browse the repository at this point in the history
  7. 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
  8. Configuration menu
    Copy the full SHA
    35ad2ae View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5bc7687 View commit details
    Browse the repository at this point in the history
  10. 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
  11. 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
  12. 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
  13. 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#119354 - fmease:negative_bounds-fixes, r=co…

    …mpiler-errors
    
    Make `negative_bounds` internal & fix some of its issues
    
    r? compiler-errors
    GuillaumeGomez committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    98c9d72 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#119414 - xry111:xry111/lto-test, r=Mark-Sim…

    …ulacrum
    
    bootstrap: Move -Clto= setting from Rustc::run to rustc_cargo
    
    It prevents a full rebuild of stage 1 compiler when issuing "x.py test" with rust.lto != thin-local in config.toml.
    GuillaumeGomez committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    3a19a92 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#119420 - cjgillot:issue-119295, r=compiler-…

    …errors
    
    Handle ForeignItem as TAIT scope.
    
    Fixes rust-lang#119295
    GuillaumeGomez committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    2dcaadb View commit details
    Browse the repository at this point in the history
  4. 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
    GuillaumeGomez committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    3eebe88 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#119538 - nnethercote:cleanup-errors-5, r=co…

    …mpiler-errors
    
    Cleanup error handlers: round 5
    
    More rustc_errors cleanups. A sequel to rust-lang#119171.
    
    r? ```@compiler-errors```
    GuillaumeGomez committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    c537d20 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
    GuillaumeGomez committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    38e22ad 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```
    GuillaumeGomez committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    22a6343 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.
    GuillaumeGomez committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    c224f4d 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```
    GuillaumeGomez committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    eef3320 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```
    GuillaumeGomez committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    2a10782 View commit details
    Browse the repository at this point in the history