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

Merged
merged 18 commits into from
Aug 21, 2024
Merged

Rollup of 9 pull requests #129331

merged 18 commits into from
Aug 21, 2024

Commits on Aug 19, 2024

  1. Configuration menu
    Copy the full SHA
    c864238 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    78d0e08 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. Stabilize iter::repeat_n

    scottmcm committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    dfea11d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    df019a9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2575196 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    38af7b0 View commit details
    Browse the repository at this point in the history
  5. fix link in mir/mod

    change url path when rewrite those code
    kyoto7250 committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    df568af View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    83fce47 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ef25fbd View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#128662 - dingxiangfei2009:lint-tail-expr-dr…

    …op-order, r=jieyouxu
    
    Lint on tail expr drop order change in Edition 2024
    
    This lint warns users to consider extra discretion on the effect of a transposed drop order arising from Edition 2024, which involves temporaries in tail expression location with significant drop implementation.
    
    cc `@traviscross`
    
    Tracking:
    
    - rust-lang#123739
    matthiaskrgr authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    552b5c7 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#128932 - bvanjoi:issue-128813, r=petrochenkov

    skip updating when external binding is existed
    
    Fixes rust-lang#128813
    
    For following code:
    
    ```rs
    extern crate core;
    
    fn f() {
        use ::core;
    }
    
    macro_rules! m {
        () => {
            extern crate std as core;
        };
    }
    
    m!();
    
    fn main() {}
    ```
    
    - In the first loop, we define `extern crate core` and `use ::core` will be referred to `core` (yes, it does not consider if there are some macros that are not expanded. Ideally, this should be delayed if there are some unexpanded macros in the root, but I didn't change it like that because it seems like a huge change).
    - Then `m` is expanded, which makes `extern_prelude('core')` return `std` rather than `core`, causing the inconsistency.
    
    r? `@petrochenkov`
    matthiaskrgr authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    2e58d62 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#129270 - compiler-errors:inner-generics-sha…

    …dowing, r=petrochenkov
    
    Don't consider locals to shadow inner items' generics
    
    We don't want to consider the bindings from a `RibKind::Module` itself, because for an inner item that module will contain the local bindings from the function body or wherever else the inner item is being defined.
    
    Fixes rust-lang#129265
    
    r? petrochenkov
    matthiaskrgr authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    d502b1c View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#129277 - Xiretza:update-annotate-snippets, …

    …r=fee1-dead
    
    Update annotate-snippets to 0.11
    matthiaskrgr authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    43a1ca5 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#129294 - scottmcm:stabilize-repeat-n, r=Nor…

    …atrieb
    
    Stabilize `iter::repeat_n`
    
    ACP completed in rust-lang#104434 (comment)
    matthiaskrgr authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    aced570 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#129308 - c8ef:typo, r=jieyouxu

    fix: simple typo in compiler directory
    matthiaskrgr authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    ef9fba2 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#129309 - RalfJung:CompileTimeInterpCx, r=co…

    …mpiler-errors
    
    ctfe: make CompileTimeInterpCx type alias public
    
    `CompileTimeMachine` is already public so there is no good reason to not also make this public.
    
    Also add comment explaining why `CompileTimeMachine` is public.
    matthiaskrgr authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    b1f19ca View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#129314 - kyoto7250:fix_link_in_mir_mod, r=c…

    …ompiler-errors
    
    fix a broken link in `mir/mod.rs`
    
    I discovered that the internal link in mir/mod.rs is broken, so I will fix it. The AddCallGuards is now located under rustc_mir_transform.
    
    The PR at that time is as follows.
    rust-lang@c5fc260
    matthiaskrgr authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    71df480 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#129318 - GuillaumeGomez:rm-unneeded-defid-c…

    …onversion, r=notriddle
    
    Remove unneeded conversion to `DefId` for `ExtraInfo`
    
    I'm working on adding support for "unit test doctests" and this first cleanup came up so just sending it ahead of the rest.
    
    r? ``@notriddle``
    matthiaskrgr authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    f631287 View commit details
    Browse the repository at this point in the history