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

Closed
wants to merge 44 commits into from
Closed

Commits on Jun 28, 2024

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

Commits on Jul 4, 2024

  1. rustdoc: Remove OpaqueTy

    It turns out it's never constructed anywhere.
    aDotInTheVoid committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    7c76747 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. library: outline VaList into ffi::va_list

    and reexport
    workingjubilee committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    c147805 View commit details
    Browse the repository at this point in the history
  2. core: erase redundant stability attrs in va_list

    Now that VaList, et al. have a module, they only need one `#[unstable]`.
    workingjubilee committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    c1a29b3 View commit details
    Browse the repository at this point in the history
  3. Run alloc sync tests

    ChrisDenton committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    7566f41 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2024

  1. Use field ident spans directly instead of the full field span in diag…

    …nostics on local fields
    oli-obk committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    8c2ea71 View commit details
    Browse the repository at this point in the history
  2. Add support for literals

    c410-f3r committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    c990e00 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2024

  1. Configuration menu
    Copy the full SHA
    58aad3c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    39bb14e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4f54193 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8e7314f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b2e30bd View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a982471 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ab27c2f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    484152d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4187cdc View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3b5a5ee View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    45c7031 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5f4caae View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    30b18d7 View commit details
    Browse the repository at this point in the history
  14. Uplift elaboration

    compiler-errors committed Jul 7, 2024
    Configuration menu
    Copy the full SHA
    90423a7 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    66eb346 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    15d16f1 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    cda25e5 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    6d4995f View commit details
    Browse the repository at this point in the history
  19. doc fixups from review

    WaffleLapkin committed Jul 7, 2024
    Configuration menu
    Copy the full SHA
    cda6f0c View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    2363520 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    dd5a447 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    54e11cf View commit details
    Browse the repository at this point in the history
  23. Fix conflicts after rebase

    - r-l/r 126784
    - r-l/r 127113
    - r-l/miri 3562
    WaffleLapkin committed Jul 7, 2024
    Configuration menu
    Copy the full SHA
    7fd0c55 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    39eaefc View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    14e5d5f View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Rollup merge of rust-lang#113128 - WaffleLapkin:become_trully_unuwuab…

    …le, r=oli-obk,RalfJung
    
    Support tail calls in mir via `TerminatorKind::TailCall`
    
    This is one of the interesting bits in tail call implementation — MIR support.
    
    This adds a new `TerminatorKind` which represents a tail call:
    ```rust
        TailCall {
            func: Operand<'tcx>,
            args: Vec<Operand<'tcx>>,
            fn_span: Span,
        },
    ```
    
    *Structurally* this is very similar to a normal `Call` but is missing a few fields:
    - `destination` — tail calls don't write to destination, instead they pass caller's destination to the callee (such that eventual `return` will write to the caller of the function that used tail call)
    - `target` — similarly to `destination` tail calls pass the caller's return address to the callee, so there is nothing to do
    - `unwind` — I _think_ this is applicable too, although it's a bit confusing
    - `call_source` — `become` forbids operators and is not created as a lowering of something else; tail calls always come from HIR (at least for now)
    
    It might be helpful to read the interpreter implementation to understand what `TailCall` means exactly, although I've tried documenting it too.
    
    -----
    
    There are a few `FIXME`-questions still left, ideally we'd be able to answer them during review ':)
    
    -----
    
    r? `@oli-obk`
    cc `@scottmcm` `@DrMeepster` `@JakobDegen`
    jieyouxu authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    fbc1120 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#126841 - c410-f3r:concat-again, r=petrochenkov

    [`macro_metavar_expr_concat`] Add support for literals
    
    Adds support for things like `${concat($variable, 123)}` or `${concat("hello", "_world")}` .
    
    cc rust-lang#124225
    jieyouxu authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    49bcf82 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#126881 - WaffleLapkin:unsafe-code-affected-…

    …by-fallback-hard-in-2024, r=compiler-errors
    
    Make `NEVER_TYPE_FALLBACK_FLOWING_INTO_UNSAFE` a deny-by-default lint in edition 2024
    
    I don't actually really care about this, but `@traviscross` asked me to do this, because lang team briefly discussed this before.
    
    (TC here:)
    
    Specifically, our original FCPed plan included this step:
    
    - Add a lint against fallback affecting a generic that is passed to an `unsafe` function.
       - Perhaps make this lint `deny-by-default` or a hard error in Rust 2024.
    
    That is, we had left as an open question strengthening this in Rust 2024, and had marked it as an open question on the tracking issue.  We're nominating here to address the open question.  (Closing the remaining open question helps us to fully mark this off for Rust 2024.)
    
    r? `@compiler-errors`
    
    Tracking:
    
    - rust-lang#123748
    jieyouxu authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    f345d50 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#126921 - workingjubilee:outline-va-list, r=…

    …Nilstrieb
    
    Give VaList its own home
    
    Just rearranging things internally and reexporting.
    jieyouxu authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    f0608f9 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#127276 - aDotInTheVoid:no-opaque, r=camelid

    rustdoc: Remove OpaqueTy
    
    r? `@ghost`
    
    Apparently this works lol?!?
    jieyouxu authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    6f753c8 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#127367 - ChrisDenton:run-sync, r=Nilstrieb

    Run alloc sync tests
    
    I was browsing the code and this struck me as weird. We're not running some doc tests because, the comment says, Windows builders deadlock. That should absolutely not happen, at least with our current implementation. And if it does happen I'd like to know.
    
    Just to be sure though I'll do some try builds.
    
    try-job: x86_64-msvc
    try-job: i686-msvc
    try-job: i686-mingw
    try-job: x86_64-mingw
    jieyouxu authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    c0765fb View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#127431 - oli-obk:feed_item_attrs, r=compile…

    …r-errors
    
    Use field ident spans directly instead of the full field span in diagnostics on local fields
    
    This improves diagnostics and avoids having to store the `DefId`s of fields
    jieyouxu authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    4ece021 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#127437 - compiler-errors:uplift-trait-ref-i…

    …s-knowable, r=lcnr
    
    Uplift trait ref is knowable into `rustc_next_trait_solver`
    
    Self-explanatory. Eliminates one more delegate method.
    
    r? lcnr cc `@fmease`
    jieyouxu authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    88eca34 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#127439 - compiler-errors:uplift-elaborate, …

    …r=lcnr
    
    Uplift elaboration into `rustc_type_ir`
    
    Allows us to deduplicate and consolidate elaboration (including these stupid elaboration duplicate fns i added for pretty printing like 3 years ago) so I'm pretty hyped about this change :3
    
    r? lcnr
    jieyouxu authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    dda162c View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#127451 - GuillaumeGomez:improve-output-type…

    …-permutations, r=kobzol
    
    Improve `run-make/output-type-permutations` code and improve `filename_not_in_denylist` API
    
    r? `@Kobzol`
    jieyouxu authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    1c83099 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#127452 - fee1-dead-contrib:fx-intrinsic-cou…

    …nting, r=fmease
    
    Fix intrinsic const parameter counting with `effects`
    
    r? project-const-traits
    jieyouxu authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    6a31edc View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#127459 - its-the-shrimp:rustdocjson_add_ali…

    …as_tests, r=aDotInTheVoid
    
    rustdoc-json: add type/trait alias tests
    
    Not sure if this tests everything there is to test in them though.
    
    Updates rust-lang#81359
    jieyouxu authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    d200683 View commit details
    Browse the repository at this point in the history