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 15 pull requests #138031

Merged
merged 44 commits into from
Mar 5, 2025
Merged

Conversation

workingjubilee
Copy link
Member

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

cramertj and others added 30 commits February 28, 2025 14:04
This was previously known as the slice_take feature.
The current version is wrong (cc 137919); let's see if we can get away with a loose but trivially-correct one.
we encode "if the argument is a non-empty string,
this will never return null" into the type signature.
ideally we would encode that it is a string before
convertTypeFilterOnElem is called, and a number after,
but i'm not sure that's possible without significant refactoring.
Signed-off-by: fuyangpengqi <[email protected]>
This was missed this in the implementation PR, so update the links here.
The situation described in the comment does arise in practice now and
described panic is long gone.
some of the fields of rustdoc.Row were confusing null and undefined.
When we initially created `CrateItem`, it would only represent items
that contain a body.

That is no longer the case, for now, make this explicit by expanding
the APIs to retrieve the item body.

This is related to rust-lang/project-stable-mir#34
…pratt

Stabilize [T]::split_off... methods

This was previously known as the slice_take feature.

Closes rust-lang#62280
…nton

Update MSVC INSTALL.md instructions to recommend VS 2022 + recent Windows 10/11 SDK

This is generally iffy because we don't consistently [document the exact minimum versions of build tools required to build a given Rust toolchain](rust-lang#129307).

cc rust-lang#129307, *maybe* rustup docs are outdated?

Anyway, I updated this because I was on a slightly older VS toolchain and I couldn't `./x build library` on MSVC (even though maybe a month ago I could) due to CI `rustc_llvm` using stuff from newer Windows 11 SDK maybe. I updated the VS toolchain + Windows 11 SDK, and then I could build.

I'm not 100% sure the requirements here are accurate. It might be too high?

r? ````@ChrisDenton````
Remove unused `PpMode::needs_hir`

This method was added in rust-lang#99360 to avoid an overzealous `span_delayed_bug` ICE in specific circumstances, but the only caller was subsequently removed in rust-lang#136603, which presumably avoids the problem in a more principled way.
…t-error, r=notriddle

rustdoc search: increase strictness of typechecking

r? `@notriddle`

The signature of `makePrimitiveElement` is now more accurate.

I believe the intent of the code is that `name` cannot be null if `bindingName.name` is null, and I believe typescript is expressive enough to encode this, but I'm not quite sure how, or if this would be desirable.

I'm also introducing mapped types into `rustdoc.d.ts`, but I think it's worth it in order to avoid keeping two interfaces in sync.

I may add more commits onto this to remove more ``@ts-expect-error`` instances.
Add `avr-none` to SUMMARY.md and platform-support.md

This was missed this in the implementation PR, so update the links here.
…-errors

Remove obsolete comment from DeduceReadOnly

The situation described in the comment does arise in practice now and described panic is long gone.
…lel, r=compiler-errors

Revert "compiler/rustc_data_structures/src/sync/worker_local.rs: delete "unsafe impl Sync""

Revert "compiler/rustc_data_structures/src/sync/worker_local.rs: delete "unsafe impl Sync""

This reverts commit 0240690.

See rust-lang#136858 (comment)

cc "Parallel Rustc Front-end" rust-lang#113349

r? SparrowLii

``@rustbot`` label: +WG-compiler-parallel
``@rustbot`` label: +C-cleanup
…trs, r=compiler-errors

Pretty-print `#[deprecated]` attribute in HIR.

Pretty-print `#[deprecated]` attribute in a form closer to how it might appear in Rust source code, rather than using a `Debug`-like representation.

Consider the following Rust code:
```rust
#[deprecated]
pub struct PlainDeprecated;

#[deprecated = "here's why this is deprecated"]
pub struct DirectNote;

#[deprecated(since = "1.2.3", note = "here's why this is deprecated")]
pub struct SinceAndNote;
```

Here's the previous output:
```
#[attr="Deprecation{deprecation: Deprecation{since: Unspecifiednote:
suggestion: }span: }")]
struct PlainDeprecated;

#[attr="Deprecation{deprecation: Deprecation{since: Unspecifiednote:
here's why this is deprecatedsuggestion: }span: }")]
struct DirectNote;

#[attr="Deprecation{deprecation: Deprecation{since: NonStandard(1.2.3)note:
here's why this is deprecatedsuggestion: }span: }")]
struct SinceAndNote;
```

Here's the new output:
```rust
#[deprecated]
struct PlainDeprecated;

#[deprecated = "here's why this is deprecated"]
struct DirectNote;

#[deprecated(since = "1.2.3", note = "here's why this is deprecated"]
struct SinceAndNote;
```

Also includes a test for `#[diagnostic::(..)]` attributes, though their behavior is not changed here. I already wrote the test, so I figured it probably won't hurt to have it.

Related to discussion in rust-lang#137645.

r? `@jdonszelmann`
…ompiler-errors

Make CrateItem::body() function return an option

When we initially created `CrateItem`, it would only represent items that contain a body.

That is no longer the case, for now, make this explicit by expanding the APIs to retrieve the item body.

This is related to rust-lang/project-stable-mir#34

r? `@oli-obk`
@rustbot rustbot added A-meta Area: Issues & PRs about the rust-lang/rust repository itself A-rustdoc-search Area: Rustdoc's search feature S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. rollup A PR which is a rollup labels Mar 5, 2025
@workingjubilee
Copy link
Member Author

@bors r+ rollup=never p=5

@bors
Copy link
Contributor

bors commented Mar 5, 2025

📌 Commit 3065925 has been approved by workingjubilee

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 5, 2025
@bors
Copy link
Contributor

bors commented Mar 5, 2025

⌛ Testing commit 3065925 with merge 4559163...

@bors
Copy link
Contributor

bors commented Mar 5, 2025

☀️ Test successful - checks-actions
Approved by: workingjubilee
Pushing 4559163 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Mar 5, 2025
@bors bors merged commit 4559163 into rust-lang:master Mar 5, 2025
7 checks passed
@rustbot rustbot added this to the 1.87.0 milestone Mar 5, 2025
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#137829 Stabilize [T]::split_off... methods 02bd4f5f20853083315fb97b67a2ccf80c81bcbe (link)
#137850 Stabilize box_uninit_write e6f00808b0e0477e2d4aa2550fe6f97b544a6998 (link)
#137912 Do not recover missing lifetime with random in-scope lifeti… 41d8c996697adc0acf1103f9363131f7809a527b (link)
#137913 Allow struct field default values to reference struct's gen… 34ae93e5917c9de5207bca295f322bea3f59798e (link)
#137923 Simplify <Postorder as Iterator>::size_hint d615aa5e946325eae7b112c01ca9fd93adaeb067 (link)
#137949 Update MSVC INSTALL.md instructions to recommend VS 2022 + … 163242daeb4332e9d47488bd1d328d132e6bea4e (link)
#137963 Add dyn keyword to E0373 examples 5ec761784b53c43493f5607c605c6c3c528af9a0 (link)
#137975 Remove unused PpMode::needs_hir 09a7b944f8a4bb6af1a2b81a97004af4a60efa1a (link)
#137981 rustdoc search: increase strictness of typechecking b60c4ef43517e76a150092e3fa8c37c4b74c3fac (link)
#137986 Fix some typos 149fe1a97ec35a458fc253dd8b4d32c7f7ec3adb (link)
#137991 Add avr-none to SUMMARY.md and platform-support.md 85aaed7566e5fbc21cc56544eef2a213f9eaf301 (link)
#137993 Remove obsolete comment from DeduceReadOnly 76ac7f4ad121798cb428c4cd2fedf2f077bffcb2 (link)
#137996 Revert "compiler/rustc_data_structures/src/sync/worker_loca… 6ec1a0326e548a39bdc14c3068556b6780b7c514 (link)
#138019 Pretty-print #[deprecated] attribute in HIR. 641814ae3796e024357ee3da80020781492335dd (link)
#138026 Make CrateItem::body() function return an option d186d7f81394894acc28166947ff58c6d75ce3d2 (link)

previous master: ac951d3799

In the case of a perf regression, run the following command for each PR you suspect might be the cause: @rust-timer build $SHA

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (4559163): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results (primary 0.5%, secondary -2.0%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
1.8% [1.8%, 1.8%] 1
Regressions ❌
(secondary)
1.3% [1.3%, 1.3%] 1
Improvements ✅
(primary)
-0.7% [-0.7%, -0.7%] 1
Improvements ✅
(secondary)
-3.1% [-6.0%, -1.7%] 3
All ❌✅ (primary) 0.5% [-0.7%, 1.8%] 2

Cycles

Results (secondary -1.1%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.1% [-1.1%, -1.1%] 1
All ❌✅ (primary) - - 0

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 777.698s -> 777.245s (-0.06%)
Artifact size: 362.14 MiB -> 362.11 MiB (-0.01%)

@workingjubilee workingjubilee deleted the rollup-5bsotpz branch March 5, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-meta Area: Issues & PRs about the rust-lang/rust repository itself A-rustdoc-search Area: Rustdoc's search feature merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Projects
None yet
Development

Successfully merging this pull request may close these issues.