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 7 pull requests #125456

Merged
merged 16 commits into from
May 23, 2024
Merged

Rollup of 7 pull requests #125456

merged 16 commits into from
May 23, 2024

Commits on May 17, 2024

  1. Add a warning to Delimiter::None that rustc currently does not respec…

    …t it.
    
    It does not provide the behaviour it is indicated to provide when used in
    a proc_macro context.
    CensoredUsername committed May 17, 2024
    Configuration menu
    Copy the full SHA
    c2d2df1 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2024

  1. Configuration menu
    Copy the full SHA
    f0cb386 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    56ad545 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Configuration menu
    Copy the full SHA
    fc76015 View commit details
    Browse the repository at this point in the history
  2. rewrite issue-30063

    Oneirical committed May 22, 2024
    Configuration menu
    Copy the full SHA
    f377ea1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dd7e68b View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Configuration menu
    Copy the full SHA
    9696835 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6743fc7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b1fa845 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#122382 - mu001999:dead_code/enhance, r=petr…

    …ochenkov
    
    Detect unused structs which implement private traits
    
    Fixes rust-lang#122361
    fmease authored May 23, 2024
    Configuration menu
    Copy the full SHA
    c99b3f2 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#124389 - CensoredUsername:master, r=petroch…

    …enkov
    
    Add a warning to proc_macro::Delimiter::None that rustc currently does not respect it.
    
    It does not provide the behaviour it is indicated to provide when used in a proc_macro context.
    
    This seems to be a bug, (rust-lang#67062), but it is a long standing one, and hard to discover.
    
    This pull request adds a warning to inform users of this issue, with a link to the relevant issue, and a version number of the last known affected rustc version.
    fmease authored May 23, 2024
    Configuration menu
    Copy the full SHA
    f862f6d View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#125224 - Oneirical:sixth, r=jieyouxu

    Migrate `run-make/issue-53964` to `rmake`
    
    Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
    
    This is extremely similar to rust-lang#125146. Could it be interesting to merge the two in some way? This one seems to do the same thing as the rust-lang#125146, but with an added check that a useless lint is not shown.
    fmease authored May 23, 2024
    Configuration menu
    Copy the full SHA
    e282b1f View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#125227 - Oneirical:seventh, r=jieyouxu

    Migrate `run-make/issue-30063` to `rmake`
    
    Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
    
    (Sorry about the [inconvenience](rust-lang#125224 (comment)) of all these PRs, this is the last one batched for today. I will discuss how we can cut these down a bit.)
    
    The last check was previously commented out in the Makefile, and I have readded it. If it fails the CI, this can be reconsidered.
    fmease authored May 23, 2024
    Configuration menu
    Copy the full SHA
    d392d68 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#125336 - momvart:smir-77-intrinsic, r=celinval

    Add dedicated definition for intrinsics
    
    Closes rust-lang/project-stable-mir#77
    fmease authored May 23, 2024
    Configuration menu
    Copy the full SHA
    c700590 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#125401 - GuillaumeGomez:migrate-rustdoc-scr…

    …ape-examples-macros, r=jieyouxu
    
    Migrate `run-make/rustdoc-scrape-examples-macros` to `rmake.rs`
    
    Part of rust-lang#121876.
    
    r? `````@jieyouxu`````
    fmease authored May 23, 2024
    Configuration menu
    Copy the full SHA
    72cc4de View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#125454 - mu001999-contrib:master, r=oli-obk

    Improve the doc of query associated_item
    
    <!--
    If this PR is related to an unstable feature or an otherwise tracked effort,
    please link to the relevant tracking issue here. If you don't know of a related
    tracking issue or there are none, feel free to ignore this.
    
    This PR will get automatically assigned to a reviewer. In case you would like
    a specific user to review your work, you can assign it to them by using
    
        r​? <reviewer name>
    -->
    
    This query also maps from a impl item to the impl item "descriptor". So it's a bit confused, I skipped it cause it doesn't say it contains impl items.
    
    ```rust
    fn associated_item(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::AssocItem {
        let id = tcx.local_def_id_to_hir_id(def_id);
        let parent_def_id = tcx.hir().get_parent_item(id);
        let parent_item = tcx.hir().expect_item(parent_def_id.def_id);
        match parent_item.kind {
            hir::ItemKind::Impl(impl_) => {
                if let Some(impl_item_ref) = impl_.items.iter().find(|i| i.id.owner_id.def_id == def_id)
                {
                    let assoc_item = associated_item_from_impl_item_ref(impl_item_ref);
                    debug_assert_eq!(assoc_item.def_id.expect_local(), def_id);
                    return assoc_item;
                }
            }
    
            hir::ItemKind::Trait(.., trait_item_refs) => {
                if let Some(trait_item_ref) =
                    trait_item_refs.iter().find(|i| i.id.owner_id.def_id == def_id)
                {
                    let assoc_item = associated_item_from_trait_item_ref(trait_item_ref);
                    debug_assert_eq!(assoc_item.def_id.expect_local(), def_id);
                    return assoc_item;
                }
            }
    
            _ => {}
        }
    
        span_bug!(
            parent_item.span,
            "unexpected parent of trait or impl item or item not found: {:?}",
            parent_item.kind
        )
    }
    ```
    fmease authored May 23, 2024
    Configuration menu
    Copy the full SHA
    55a16a4 View commit details
    Browse the repository at this point in the history