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

Merged
merged 20 commits into from
Jan 10, 2025
Merged

Rollup of 7 pull requests #135327

merged 20 commits into from
Jan 10, 2025

Conversation

jhpratt
Copy link
Member

@jhpratt jhpratt commented Jan 10, 2025

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

SpriteOvO and others added 20 commits January 1, 2025 20:56
…esult, r=tgross35

Used pthread name functions returning result for FreeBSD and DragonFly

`pthread_getname_np` and `pthread_setname_np` received a wider adoption in past years and was added to:
* FreeBSD by June 11 2020 via [`2ef84b7da9a6c3e23b4a135e6e863581f16d46e1`](freebsd/freebsd-src@2ef84b7),
* DargonFly by March 8 2021 via [`ab5dc9aceb34419d1c4b6006739e61acee8ee999`](https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ab5dc9aceb34419d1c4b6006739e61acee8ee999).

There's not so much advantage except that the result can be checked in debug builds. Ideally it should be unified with Linux' implementation, but it trims the input.
…-in-quote, r=tgross35

proc_macro: Use `ToTokens` trait in `quote` macro

Tracking issues: rust-lang#130977, rust-lang#54722

This PR changed `proc_macro::quote!` to use `ToTokens` trait instead of `TokenStream::from`, and migrated test cases from `quote` crate.

r? `@dtolnay`
CC `@tgross35`
…const-error-reporting, r=RalfJung

Unify conditional-const error reporting with non-const error reporting

This PR unifies the error reporting between `ConditionallyConstCall` and `FnCallNonConst` so that the former will refer to syntactical sugar like operators by their sugared name, rather than calling all operators "methods". We achieve this by making the "non-const" part of the error message generic over the "non" part so we can plug in "conditionally" instead.

This should ensure that as we constify traits in the standard library, we don't regress error messages for things like `==`.

r? fmease or reassign
…source, r=camelid

Do not ICE when encountering predicates from other items in method error reporting

See the comments I left in the code and the test file.

Fixes rust-lang#124350
Only treat plain literal patterns as short

See rust-lang#134228 (comment) and rust-lang#134228 (comment) for context. We never wanted to treat const blocks and paths as short, only plain literals.

I don't know how to write a test for this, it.s not clear to me how the short pattern check actually affects the formatting
Fix typo in `#[coroutine]` gating error
remove more redundant into() conversions
@rustbot rustbot added O-unix Operating system: Unix-like 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. rollup A PR which is a rollup labels Jan 10, 2025
@jhpratt
Copy link
Member Author

jhpratt commented Jan 10, 2025

@bors r+ rollup=never p=5

@bors
Copy link
Contributor

bors commented Jan 10, 2025

📌 Commit b557f1b has been approved by jhpratt

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 Jan 10, 2025
@bors
Copy link
Contributor

bors commented Jan 10, 2025

⌛ Testing commit b557f1b with merge 252b07b...

@bors
Copy link
Contributor

bors commented Jan 10, 2025

☀️ Test successful - checks-actions
Approved by: jhpratt
Pushing 252b07b to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jan 10, 2025
@bors bors merged commit 252b07b into rust-lang:master Jan 10, 2025
7 checks passed
@rustbot rustbot added this to the 1.86.0 milestone Jan 10, 2025
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#132607 Used pthread name functions returning result for FreeBSD an… fd041e077e9a43a7f3b7fe876fd792dcd9d3894f (link)
#134693 proc_macro: Use ToTokens trait in quote macro 2d4a6f4ef201cd1a2508196f8431cba7fd66f7b6 (link)
#134732 Unify conditional-const error reporting with non-const erro… 437561f32d792d1777e2e647c6ece4b58554e55c (link)
#135083 Do not ICE when encountering predicates from other items in… 2f2390db47d646ea09d25ec2d9c68c8531f2643d (link)
#135251 Only treat plain literal patterns as short 5c31a1bc54517edf73acaff81d4afca974650dd9 (link)
#135320 Fix typo in #[coroutine] gating error e5e420fda72052d1fdc6b2c2c04784c61deb2f19 (link)
#135321 remove more redundant into() conversions ff0bb16150ef010e865c09dc1f1b15f741028845 (link)

previous master: b44e14f762

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 (252b07b): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

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

Max RSS (memory usage)

Results (primary 2.0%, secondary -3.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)
2.0% [2.0%, 2.0%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.0% [-4.6%, -2.0%] 3
All ❌✅ (primary) 2.0% [2.0%, 2.0%] 1

Cycles

Results (secondary -2.6%)

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)
-2.6% [-3.0%, -2.3%] 3
All ❌✅ (primary) - - 0

Binary size

Results (primary -4.1%, secondary -4.5%)

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)
-4.1% [-4.4%, -4.0%] 4
Improvements ✅
(secondary)
-4.5% [-8.6%, -0.4%] 6
All ❌✅ (primary) -4.1% [-4.4%, -4.0%] 4

Bootstrap: 762.913s -> 763.605s (0.09%)
Artifact size: 325.74 MiB -> 325.79 MiB (0.01%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. O-unix Operating system: Unix-like 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants