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 9 pull requests #121240

Merged
merged 19 commits into from
Feb 17, 2024
Merged

Rollup of 9 pull requests #121240

merged 19 commits into from
Feb 17, 2024

Commits on Feb 14, 2024

  1. use build.rustc config and skip-stage0-validation flag

    This change helps us to bypass downloading the beta compiler in bootstrap tests.
    
    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    0925ff8 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2024

  1. errors: only eagerly translate subdiagnostics

    Subdiagnostics don't need to be lazily translated, they can always be
    eagerly translated. Eager translation is slightly more complex as we need
    to have a `DiagCtxt` available to perform the translation, which involves
    slightly more threading of that context.
    
    This slight increase in complexity should enable later simplifications -
    like passing `DiagCtxt` into `AddToDiagnostic` and moving Fluent messages
    into the diagnostic structs rather than having them in separate files
    (working on that was what led to this change).
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    b80fc5d View commit details
    Browse the repository at this point in the history
  2. Fix typo in VecDeque::handle_capacity_increase() doc comment.

    Strategies B and C both show a full buffer before the capacity increase, while strategy A had one empty element left. Filled the last element in.
    SebastianJL committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    1706687 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. Configuration menu
    Copy the full SHA
    7c2db70 View commit details
    Browse the repository at this point in the history
  2. Make CodegenBackend::join_codegen infallible.

    Because they all are, in practice.
    nnethercote committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    ede9923 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    228441d View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2024

  1. Fix cfg(target_abi = "sim") on i386-apple-ios

    i386-apple-ios is also a simulator target
    madsmtm committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    dae22a5 View commit details
    Browse the repository at this point in the history
  2. Fix comment

    madsmtm committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    d801985 View commit details
    Browse the repository at this point in the history
  3. create stamp file for clippy in Config::download_clippy

    Due to missing stamp file, we were downloading (and applying nix patches if enabled)
    continuously every time `Config::download_clippy` was called. This change fixes that by
    creating stamp file at the end of the function.
    
    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    3ec7d0a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    87b6f41 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#120952 - saethlin:vec-into-iter, r=the8472

    Don't use mem::zeroed in vec::IntoIter
    
    `mem::zeroed` is not a trivial function. Maybe it was once, but now it involves multiple locals, copies, and an intrinsic that gets monomorphized into a call to `panic_nounwind` for iterators of types like `Vec<&T>`. Of course all that complexity is trivially optimized out, but generating a bunch of IR where we don't need to just so we can optimize it away later is silly.
    matthiaskrgr committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    5997286 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#121085 - davidtwco:always-eager-diagnostics…

    …, r=nnethercote
    
    errors: only eagerly translate subdiagnostics
    
    Subdiagnostics don't need to be lazily translated, they can always be eagerly translated. Eager translation is slightly more complex as we need to have a `DiagCtxt` available to perform the translation, which involves slightly more threading of that context.
    
    This slight increase in complexity should enable later simplifications - like passing `DiagCtxt` into `AddToDiagnostic` and moving Fluent messages into the diagnostic structs rather than having them in separate files (working on that was what led to this change).
    
    r? ```@nnethercote```
    matthiaskrgr committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    45d5773 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#121091 - onur-ozkan:bypass-stage0-download-…

    …in-tests, r=albertlarsan68
    
    use build.rustc config and skip-stage0-validation flag
    
    This change helps us to bypass downloading the beta compiler in bootstrap tests.
    
    more context: https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/tests.20causing.20downloads.20of.20native.20rustc.20for.20other.20platforms/near/421467975
    matthiaskrgr committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    60cc6b9 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#121149 - SebastianJL:patch-1, r=Mark-Simula…

    …crum
    
    Fix typo in VecDeque::handle_capacity_increase() doc comment.
    
    Strategies B and C both show a full buffer before the capacity increase, while strategy A had one empty element left. Filled the last element in.
    matthiaskrgr committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    cb37179 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#121193 - compiler-errors:coherence-fulfillm…

    …ent, r=lcnr
    
    Use fulfillment in next trait solver coherence
    
    Use fulfillment in the new trait solver's `impl_intersection_has_impossible_obligation` routine. This means that inference that falls out of processing other obligations can influence whether we can determine if an obligation is impossible to satisfy. See the committed test.
    
    This should be completely sound, since evaluation and fulfillment both respect intercrate mode equally.
    
    We run the risk of breaking coherence later if we were to change the rules of fulfillment and/or inference during coherence, but this is a problem which affects evaluation, as nested obligations from a trait goal are processed together and can influence each other in the same way.
    
    r? lcnr
    cc rust-lang#114862
    
    Also changed obligationctxt -> fulfillmentctxt because it feels kind of redundant to use an ocx here. I don't really care enough and can change it back if it really matters much.
    matthiaskrgr committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    df3712c View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#121209 - nnethercote:infallible-join_codege…

    …n, r=bjorn3
    
    Make `CodegenBackend::join_codegen` infallible.
    
    Because they all are, in practice.
    
    r? ```@bjorn3```
    matthiaskrgr committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    a387b71 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#121210 - madsmtm:fix-target-abi-i386-apple-…

    …ios, r=workingjubilee
    
    Fix `cfg(target_abi = "sim")` on `i386-apple-ios`
    
    Since rust-lang#80970 is stabilizing, I went and had a look, and found that the result was wrong on `i386-apple-ios`.
    
    r? rust-lang/macos
    matthiaskrgr committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    a78e461 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#121228 - onur-ozkan:fix-clippy-stamp-bug, r…

    …=albertlarsan68
    
    create stamp file for clippy
    
    Due to missing stamp file, we were downloading (and applying nix patches if enabled) continuously every time `Config::download_clippy` was called. This change fixes that by creating stamp file at the end of the function.
    
    Fixes rust-lang#119442
    matthiaskrgr committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    4ddc8e4 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#121231 - matthiaskrgr:cloone, r=compiler-er…

    …rors
    
    remove a couple of redundant clones
    matthiaskrgr committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    eafa74a View commit details
    Browse the repository at this point in the history