Rollup of 8 pull requests - #163236
Closed
jhpratt wants to merge 35 commits into
Closed
Rollup of 8 pull requests#163236jhpratt wants to merge 35 commits into
jhpratt wants to merge 35 commits into
Conversation
VSCode settings: disable diagnostics as RA shows many false positives
This updates the rust-version file to 88638df.
Pull recent changes from https://github.com/rust-lang/rust via Josh. Previous upstream ref: rust-lang/rust@feaadee New upstream ref: rust-lang/rust@88638df Filtered ref: rust-lang/miri@a3ebd7e Upstream diff: rust-lang/rust@feaadee...88638df This merge was created using https://github.com/rust-lang/josh-sync.
Automatic Rustup
Add `miri.toml` config file for `./miri` script
fix #[path] in doctest
Currently it's used in a really hacky way: a diagnostic with an empty message and some suggestions is stashed. Later on it might be retrieved and its suggestions extracted. It uses `Level::Allow` so that it isn't printed by `emit_stashed_diagnostics` at shutdown if it hasn't been retrieved. This isn't a normal stashed diagnostic, more just a case of "save some information that might be useful for diagnostics later". We can record the information more simply and directly. This commit adds `paths_matching_assoc_types` fields to `Resolver` and `ResolverGlobalCtxt`. These store the spans of the paths of interest. The new subdiagnostic `AssocTypeWithSameName` is used to construct the relevant suggestions when they are needed. Much nicer. The old approach removed the stashed diagnostic and the new approach doesn't remove the set entry, so a single span could conceivably match more than once, presumably a good thing, though this doesn't show up in the test suite.
…r=lolbinarycat,GuillaumeGomez fix quadratic naming of duplicate sidebar links This PR fixes quadratic naming of duplicate sidebar links as discussed in rust-lang#158174. Fixes rust-lang#158174 `get_next_url` gives duplicate sidebar links with unique names but it started counting from 1 every time which makes the page quadratic. So to make it more optimal I changed that to remember the next unique number for each name making it linear per page. Also added the test at `tests/rustdoc-html/deref/sidebar-links-deref-chain.rs` ### Results | N | Instructions (before) | Instructions (after) | Time (before) | Time (after) | |-----:|----------------------:|---------------------:|--------------:|-------------:| | 200 | 5.71 B | 3.69 B | 1.20 s | 1.01 s | | 400 | 22.40 B | 9.52 B | 3.79 s | 1.98 s | | 800 | 126.83 B | 30.82 B | 19.68 s | 6.04 s | | 1600 | — | — | 118.59 s | 37.76 s | r? @GuillaumeGomez
…llaumeGomez Enable EII tests for cg_gcc
…TypeSuggestion, r=davidtwco Remove `StashKey::AssociatedTypeSuggestion` Currently it's used in a really hacky way: a diagnostic with an empty message and some suggestions is stashed. Later on it might be retrieved and its suggestions extracted. It uses `Level::Allow` so that it isn't printed by `emit_stashed_diagnostics` at shutdown if it hasn't been retrieved. This isn't a normal stashed diagnostic, more just a case of "save some information that might be useful for diagnostics later". We can record the information more simply and directly. This commit adds `paths_matching_assoc_types` fields to `Resolver` and `ResolverGlobalCtxt`. These store the spans of the paths of interest. The new subdiagnostic `AssocTypeWithSameName` is used to construct the relevant suggestions when they are needed. Much nicer. The old approach removed the stashed diagnostic and the new approach doesn't remove the set entry, so a single span could conceivably match more than once, presumably a good thing, though this doesn't show up in the test suite. r? @davidtwco
Member
Author
|
@bors r+ p=5 |
Contributor
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Sep 24, 2026
Rollup of 8 pull requests Successful merges: - #162976 (fix quadratic naming of duplicate sidebar links) - #163222 (Enable EII tests for cg_gcc) - #162942 (Remove `StashKey::AssociatedTypeSuggestion`) - #163096 (Don't suggest `std::` rustfix paths in `#![no_std]` crates) - #163110 (Mark `std::os::wasip2` with correct doc-cfgs, mark as unstable) - #163185 (properly decrement available_depth on cycles and provisional cache hits) - #163214 (revert r14 register names for arm) - #163226 (miri subtree update)
Contributor
|
💔 Test for d6642e8 failed: CI. Failed job:
|
Member
Author
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Sep 24, 2026
Rollup of 8 pull requests try-job: test-i686-gnu-1
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Sep 24, 2026
Rollup of 8 pull requests Successful merges: - #162976 (fix quadratic naming of duplicate sidebar links) - #163222 (Enable EII tests for cg_gcc) - #162942 (Remove `StashKey::AssociatedTypeSuggestion`) - #163096 (Don't suggest `std::` rustfix paths in `#![no_std]` crates) - #163110 (Mark `std::os::wasip2` with correct doc-cfgs, mark as unstable) - #163185 (properly decrement available_depth on cycles and provisional cache hits) - #163214 (revert r14 register names for arm) - #163226 (miri subtree update)
Contributor
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Contributor
|
💔 Test for 77cd507 failed: CI. Failed job:
|
Contributor
|
PR #163222, which is a member of this rollup, was unapproved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful merges:
StashKey::AssociatedTypeSuggestion#162942 (RemoveStashKey::AssociatedTypeSuggestion)std::rustfix paths in#![no_std]crates #163096 (Don't suggeststd::rustfix paths in#![no_std]crates)std::os::wasip2with correct doc-cfgs, mark as unstable #163110 (Markstd::os::wasip2with correct doc-cfgs, mark as unstable)r? @ghost
Create a similar rollup