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

Merged
merged 24 commits into from
Sep 6, 2024
Merged

Rollup of 11 pull requests #129999

merged 24 commits into from
Sep 6, 2024

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 <[email protected]>
    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. Configuration menu
    Copy the full SHA
    98f74b4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f3efe3d View commit details
    Browse the repository at this point in the history
  5. 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 <[email protected]>
    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
    f7679d0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    49e3b9a 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 authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    46f390f View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#129472 - folkertdev:const-refs-to-static-as…

    …m-const, r=lcnr
    
    fix ICE when `asm_const` and `const_refs_to_static` are combined
    
    fixes rust-lang#129462
    fixes rust-lang#126896
    fixes rust-lang#124164
    
    I think this is a case that was missed in the fix for rust-lang#125558, which inserts a type error in the case of an invalid (that is, non-integer) type being passed to an asm `const` operand.
    
    I'm not 100% sure that `span_mirbug_and_err` is the right macro here, but it is used earlier with `builtin_deref` and seems to do the trick.
    
    r? ``@lcnr``
    matthiaskrgr authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    3daa015 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 authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    85d15d2 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 authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    4a8135c 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 authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    2efefe6 View commit details
    Browse the repository at this point in the history
  6. 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 authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    95c580d View commit details
    Browse the repository at this point in the history
  7. 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 authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    57d85fa View commit details
    Browse the repository at this point in the history
  8. 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 authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    a84ef47 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#129947 - LiterallyVoid:duration-docs-digit-…

    …separators, r=tgross35
    
    Add digit separators in `Duration` examples
    
    ``@rustbot`` label A-docs
    matthiaskrgr authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    96719db View commit details
    Browse the repository at this point in the history
  10. 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 authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    a0ab808 View commit details
    Browse the repository at this point in the history
  11. 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 authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    d34ad5d View commit details
    Browse the repository at this point in the history