Skip to content

rustc_span: Minor improvements #126545

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

Merged
merged 1 commit into from
Jun 16, 2024
Merged

rustc_span: Minor improvements #126545

merged 1 commit into from
Jun 16, 2024

Conversation

petrochenkov
Copy link
Contributor

Introduce {IndexNewtype,SyntaxContext}::from_u16 for convenience because small indices are sometimes encoded as u16.
Use SpanData::span instead of Span::new where appropriate.
Add a clarifying comment about decoding span parents.

Introduce `{IndexNewtype,SyntaxContext}::from_u16` for convenience because small indices are sometimes encoded as `u16`.
Use `SpanData::span` instead of `Span::new` where appropriate.
Add a clarifying comment about decoding span parents.
@rustbot
Copy link
Collaborator

rustbot commented Jun 16, 2024

r? @BoxyUwU

rustbot has assigned @BoxyUwU.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added 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. labels Jun 16, 2024
@BoxyUwU
Copy link
Member

BoxyUwU commented Jun 16, 2024

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jun 16, 2024

📌 Commit 14da80c has been approved by BoxyUwU

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 Jun 16, 2024
@bors
Copy link
Collaborator

bors commented Jun 16, 2024

⌛ Testing commit 14da80c with merge 55cac26...

@bors
Copy link
Collaborator

bors commented Jun 16, 2024

☀️ Test successful - checks-actions
Approved by: BoxyUwU
Pushing 55cac26 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jun 16, 2024
@bors bors merged commit 55cac26 into rust-lang:master Jun 16, 2024
7 checks passed
@rustbot rustbot added this to the 1.81.0 milestone Jun 16, 2024
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (55cac26): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

This is a highly reliable metric that was 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)
-0.3% [-0.3%, -0.3%] 1
All ❌✅ (primary) - - 0

Max RSS (memory usage)

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

Cycles

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

Binary size

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

Bootstrap: 670.387s -> 671.558s (0.17%)
Artifact size: 320.49 MiB -> 319.87 MiB (-0.19%)

@petrochenkov petrochenkov deleted the spimprove branch February 22, 2025 18:28
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. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants