Skip to content

[PERF-EXPERIMENT] Add second span to TokenTree #118671

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

Closed
wants to merge 1 commit into from

Conversation

petrochenkov
Copy link
Contributor

cc #118517

@rustbot
Copy link
Collaborator

rustbot commented Dec 6, 2023

r? @davidtwco

(rustbot has picked a reviewer for you, use r? to override)

@petrochenkov
Copy link
Contributor Author

@bors try @rust-timer queue

@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. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Dec 6, 2023
@rust-timer

This comment has been minimized.

@rustbot
Copy link
Collaborator

rustbot commented Dec 6, 2023

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

Some changes occurred in src/tools/rustfmt

cc @rust-lang/rustfmt

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Dec 6, 2023
@petrochenkov petrochenkov removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 6, 2023
@bors
Copy link
Collaborator

bors commented Dec 6, 2023

⌛ Trying commit cca1dd4 with merge 0f071b2...

bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 6, 2023
[PERF-EXPERIMENT] Add second span to TokenTree

cc rust-lang#118517
@rust-log-analyzer
Copy link
Collaborator

The job mingw-check failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
   Compiling rustc-main v0.0.0 (/checkout/compiler/rustc)
    Checking dissimilar v1.0.6
   Compiling coverage_test_macros v0.0.0 (/checkout/compiler/rustc_mir_transform/src/coverage/test_macros)
    Checking expect-test v1.4.1
error: in expressions, `_` can only be used on the left-hand side of an assignment
    |
137 |                 _,
137 |                 _,
    |                 ^ `_` not allowed here

error: in expressions, `_` can only be used on the left-hand side of an assignment
    |
147 |                 _,
147 |                 _,
    |                 ^ `_` not allowed here
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
  --> compiler/rustc_expand/src/parse/tests.rs:77:34
   |
   |
77 |                 TokenTree::Token(Token { kind: token::Ident(name_macro_rules, false), .. }, _),
   |
  ::: /checkout/compiler/rustc_ast/src/tokenstream.rs:47:11
   |
47 |     Token(Token, Spacing, Span),
47 |     Token(Token, Spacing, Span),
   |           -----  -------  ---- tuple variant has 3 fields
   |
help: use `_` to explicitly ignore each field
   |
77 |                 TokenTree::Token(Token { kind: token::Ident(name_macro_rules, false), .. }, _, _),

error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
  --> compiler/rustc_expand/src/parse/tests.rs:78:34
   |
   |
78 |                 TokenTree::Token(Token { kind: token::Not, .. }, _),
   |
  ::: /checkout/compiler/rustc_ast/src/tokenstream.rs:47:11
   |
47 |     Token(Token, Spacing, Span),
47 |     Token(Token, Spacing, Span),
   |           -----  -------  ---- tuple variant has 3 fields
   |
help: use `_` to explicitly ignore each field
   |
78 |                 TokenTree::Token(Token { kind: token::Not, .. }, _, _),

error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
  --> compiler/rustc_expand/src/parse/tests.rs:79:34
   |
   |
79 |                 TokenTree::Token(Token { kind: token::Ident(name_zip, false), .. }, _),
   |
  ::: /checkout/compiler/rustc_ast/src/tokenstream.rs:47:11
   |
47 |     Token(Token, Spacing, Span),
47 |     Token(Token, Spacing, Span),
   |           -----  -------  ---- tuple variant has 3 fields
   |
help: use `_` to explicitly ignore each field
   |
79 |                 TokenTree::Token(Token { kind: token::Ident(name_zip, false), .. }, _, _),

error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> compiler/rustc_expand/src/parse/tests.rs:105:50
    |
    |
105 | ...                   TokenTree::Token(Token { kind: token::Dollar, .. }, _),
    |
   ::: /checkout/compiler/rustc_ast/src/tokenstream.rs:47:11
    |
47  |     Token(Token, Spacing, Span),
47  |     Token(Token, Spacing, Span),
    |           -----  -------  ---- tuple variant has 3 fields
    |
help: use `_` to explicitly ignore each field
    |
105 |                                 TokenTree::Token(Token { kind: token::Dollar, .. }, _, _),

error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> compiler/rustc_expand/src/parse/tests.rs:106:50
    |
    |
106 | ...                   TokenTree::Token(Token { kind: token::Ident(name, false), .. }, _),
    |
   ::: /checkout/compiler/rustc_ast/src/tokenstream.rs:47:11
    |
47  |     Token(Token, Spacing, Span),
47  |     Token(Token, Spacing, Span),
    |           -----  -------  ---- tuple variant has 3 fields
    |
help: use `_` to explicitly ignore each field
    |
106 |                                 TokenTree::Token(Token { kind: token::Ident(name, false), .. }, _, _),

For more information about this error, try `rustc --explain E0023`.
error: could not compile `rustc_expand` (lib test) due to 7 previous errors
warning: build failed, waiting for other jobs to finish...

@bors
Copy link
Collaborator

bors commented Dec 6, 2023

☀️ Try build successful - checks-actions
Build commit: 0f071b2 (0f071b2d659e5c2f6caca1f468ced9a679fe80b7)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (0f071b2): comparison URL.

Overall result: ❌✅ regressions and improvements - ACTION NEEDED

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +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.4% [0.1%, 1.3%] 56
Regressions ❌
(secondary)
1.5% [0.3%, 3.4%] 17
Improvements ✅
(primary)
-0.4% [-1.2%, -0.1%] 6
Improvements ✅
(secondary)
-0.6% [-1.1%, -0.2%] 7
All ❌✅ (primary) 0.3% [-1.2%, 1.3%] 62

Max RSS (memory usage)

Results

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.5% [0.6%, 3.7%] 15
Regressions ❌
(secondary)
4.6% [0.5%, 12.0%] 25
Improvements ✅
(primary)
-1.5% [-2.1%, -0.8%] 2
Improvements ✅
(secondary)
-3.7% [-7.2%, -0.8%] 17
All ❌✅ (primary) 1.2% [-2.1%, 3.7%] 17

Cycles

Results

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)
2.0% [1.0%, 4.4%] 8
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Binary size

Results

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.7% [0.0%, 3.8%] 93
Regressions ❌
(secondary)
0.7% [0.0%, 2.2%] 30
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.7% [0.0%, 3.8%] 93

Bootstrap: 675.083s -> 675.461s (0.06%)
Artifact size: 314.18 MiB -> 314.25 MiB (0.02%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Dec 6, 2023
@petrochenkov petrochenkov deleted the span3 branch February 22, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf-regression Performance regression. T-compiler Relevant to the compiler 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants