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 12 pull requests #129979

Closed
wants to merge 30 commits into from

Commits on Aug 23, 2024

  1. Configuration menu
    Copy the full SHA
    318b4f3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b7cd99d View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2024

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

Commits on Aug 26, 2024

  1. Configuration menu
    Copy the full SHA
    78971f3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a80840 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

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

Commits on Aug 28, 2024

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

Commits on Aug 30, 2024

  1. bootstrap: Try to track down why initial_libdir sometimes fails

    Determining this path occasionally fails locally for unknown reasons, resulting
    in the build failing with an unhelpful `StripPrefixError(())` panic message.
    
    In order to track down why that's happening, include some relevant information
    in the panic message when that failure occurs.
    Zalathar committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    21edc73 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Configuration menu
    Copy the full SHA
    0402394 View commit details
    Browse the repository at this point in the history
  2. copy rustc rustlib artifacts from ci-rustc

    We recently had an issue because some rustlib files were missing (like: "error[E0463]: can't find crate for rustc_ast")
    when building tools that rely on rustc. This patch fixes that by copying those files as required.
    
    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    b5d07fd View commit details
    Browse the repository at this point in the history
  3. rustc_codegen_llvm: fix a regression where backchain feature ...

    ... can not be correctly gated using #[cfg] macro
    liushuyu committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    e98e88b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    98f74b4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f3efe3d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e2484be View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. Configuration menu
    Copy the full SHA
    4df28b8 View commit details
    Browse the repository at this point in the history
  2. use the bootstrapped compiler for test-float-parse test

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    9cb6d12 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    93b4b2d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6e4c5c1 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. Rollup merge of rust-lang#128919 - Nadrieril:lint-query-leaks, r=cjgi…

    …llot
    
    Add an internal lint that warns when accessing untracked data
    
    Some methods access data that is not tracked by the query system and should be used with caution. As suggested in rust-lang#128815 (comment), in this PR I propose a lint (modeled on the `potential_query_instability` lint) that warns when using some specially-annotatted functions.
    
    I can't tell myself if this lint would be that useful, compared to renaming `Steal::is_stolen` to `is_stolen_untracked`. This would depend on whether there are other functions we'd want to lint like this. So far it seems they're called `*_untracked`, which may be clear enough.
    
    r? ```@oli-obk```
    matthiaskrgr committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    e47624c View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#129471 - GuillaumeGomez:sort-impl-associate…

    …d-items, r=t-rustdoc-frontend
    
    [rustdoc] Sort impl associated items by kinds and then by appearance
    
    Following [this zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/266220-t-rustdoc/topic/.22Freeze.22.20order.20of.20items.20in.20.28trait.29.20impls.3F), I implemented it.
    
    This brings the following change: impl associated items will now be grouped by kind and will now be first sorted by kind and then by the order they are declared in the source code (like currently).
    
    The kinds are sorted in the following order:
    1. Constants
    2. Types
    3. Functions
    
    The reason behind this order is that associated constants can be used in associated types (like length in arrays) and both associated types and associated constants can be used in associated functions. So if an associated item from the same impl is used, its definition will always be above where it's being used.
    
    cc ````@camelid````
    r? ````@notriddle````
    matthiaskrgr committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    e9b21b6 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#129653 - RalfJung:addr-of-read-only, r=scot…

    …tmcm
    
    clarify that addr_of creates read-only pointers
    
    Stacked Borrows does make this UB, but Tree Borrows does not. This is tied up with rust-lang#56604 and other UCG discussions. Also see [this collection of links](Rust-for-Linux/linux#950 (comment)) where rustc treats `addr_of!` as a "non-mutating use".
    
    So, let's better be careful for now.
    matthiaskrgr committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    fa4924e View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#129775 - Zalathar:initial-libdir, r=albertl…

    …arsan68
    
    bootstrap: Try to track down why `initial_libdir` sometimes fails
    
    When I try to run `x` commands from the command-line, I occasionally see a mysterious failure that looks something like this:
    
    ```text
    thread 'main' panicked at src/lib.rs:341:14:
    called `Result::unwrap()` on an `Err` value: StripPrefixError(())
    ```
    
    It happens often enough to be annoying, but rarely enough that I can't reproduce it at will. The error message points to a particular `unwrap` call, but doesn't include enough context to determine *why* the failure occurs.
    
    Re-running the command almost always works, so I suspect some kind of filesystem race condition (possibly involving VSCode invoking bootstrap at the same time), but there's not much I can do with the information I currently have.
    
    So this PR includes some relevant information in the panic message when the failure occurs, in the hope that doing so will make the cause easier to track down when the failure occurs again.
    matthiaskrgr committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    f42f48f View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#129939 - RalfJung:rvalue-len, r=compiler-er…

    …rors
    
    explain why Rvalue::Len still exists
    
    I just spent a bit of time trying to remove this until I realized why that's non-trivial. Let's document that for the next person. :)
    matthiaskrgr committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    7da38d3 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#129940 - liushuyu:s390x-target-features, r=…

    …RalfJung
    
    s390x: Fix a regression related to backchain feature
    
    In rust-lang#127506, we introduced a new IBM Z-specific target feature, `backchain`.
    
    This particular `target-feature` was available as a function-level attribute in LLVM 17 and below, so some hacks were used to avoid blowing up LLVM when querying the supported LLVM features.
    
    This led to an unfortunate regression where `cfg!(target-feature = "backchain")` will always return true.
    
    This pull request aims to fix this issue, and a test has been introduced to ensure it will never happen again.
    
    Fixes rust-lang#129927.
    
    r? ``@RalfJung``
    matthiaskrgr committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    bb413ce View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#129942 - onur-ozkan:building-rustc-tools, r…

    …=Kobzol
    
    copy rustc rustlib artifacts from ci-rustc
    
    We recently (since rust-lang#129311) had an issue because some rustlib files were missing (like: "error[E0463]: can't find crate for rustc_ast") when building tools that rely on rustc. This patch fixes that by copying those files as required.
    
    r? Kobzol
    
    Blocker for rust-lang#122709
    matthiaskrgr committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    70ffcb5 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#129943 - onur-ozkan:test-float-parse-compil…

    …er, r=Kobzol
    
    use the bootstrapped compiler for `test-float-parse` test
    
    Fixes rust-lang#122709 (comment).
    
    Blocker for rust-lang#122709
    matthiaskrgr committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    86d8744 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#129944 - Mark-Simulacrum:relnotes-tweak, r=…

    …pietroalbini
    
    Add compat note for trait solver change
    
    r? ``@pietroalbini`` ``@BoxyUwU``
    
    cc ``@lcnr``
    matthiaskrgr committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    d7d5a79 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#129947 - LiterallyVoid:duration-docs-digit-…

    …separators, r=tgross35
    
    Add digit separators in `Duration` examples
    
    ``@rustbot`` label A-docs
    matthiaskrgr committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    a2c6381 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#129955 - fmease:fmease-break, r=fmease

    Temporarily remove fmease from the review rotation
    
    Namely for like a week. I seriously need to work off my review backlog!
    
    r? fmease
    matthiaskrgr committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    3a2dc05 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#129957 - chenx97:lint-docs-linker-opt, r=al…

    …bertlarsan68
    
    forward linker option to lint-docs
    
    This fixes an error found when building the doc for a cross-built toolchain.
    
    ```
    warning: the code example in lint `unstable_syntax_pre_expansion` in /buildroots/chenx97/rustc-1.80.1-src/compiler/rustc_lint_defs/src/builtin.rs failed to generate the expected output: did not find lint `unstable_syntax_p
    re_expansion` in output of example, got:
    
    error: linking with `cc` failed: exit status: 1
    ...
    ```
    Closes: rust-lang#129956
    matthiaskrgr committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    919f4cc View commit details
    Browse the repository at this point in the history