Skip to content

optimization: don't look for diagnostic/canonical items without rustc_attrs enabled#159732

Open
mejrs wants to merge 1 commit into
rust-lang:mainfrom
mejrs:attribute_crawler
Open

optimization: don't look for diagnostic/canonical items without rustc_attrs enabled#159732
mejrs wants to merge 1 commit into
rust-lang:mainfrom
mejrs:attribute_crawler

Conversation

@mejrs

@mejrs mejrs commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 22, 2026
@mejrs

mejrs commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 22, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Jul 22, 2026
optimization: don't look for diagnostic/canonical items without rustc_attrs enabled
@rust-bors

rust-bors Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: a7e10cb (a7e10cb790e92286329e5cdecbeacfd62d6d09f7)
Base parent: c188565 (c188565812a9b414ddf02f3c7d89e84f1ba53f7d)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (a7e10cb): comparison URL.

Overall result: ✅ improvements - no action needed

Benchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up.

@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

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

Max RSS (memory usage)

Results (secondary 2.8%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.8% [2.2%, 3.5%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 489.502s -> 488.835s (-0.14%)
Artifact size: 387.76 MiB -> 387.83 MiB (0.02%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 22, 2026
@mejrs

mejrs commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this somewhat undid the (small) regression in #159344 (comment) cc @Urgau

r? @nnethercote

Do you think this is worthwhile?

@mejrs
mejrs marked this pull request as ready for review July 22, 2026 20:13
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 22, 2026

@nnethercote nnethercote left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this somewhat undid the (small) regression in #159344 (comment) cc @Urgau

That PR slightly regressed large-workspace and externs. This PR slightly improves unused-warnings, which is a stress test with a bazillion warnings that is not representative of real-world code. Having said that, this change is trivial, so it's not like we're paying any cost. I'll let you decide if you want to merge it.

View changes since this review

@nnethercote

Copy link
Copy Markdown
Contributor

@bors delegate=mejrs

@rust-bors

rust-bors Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

✌️ @mejrs, you can now approve this pull request!

If @nnethercote told you to "r=me" after making some further change, then please make that change and post @bors r=nnethercote.

View changes since this delegation.

@nnethercote nnethercote added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 23, 2026
@mejrs

mejrs commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

let's do it

@bors r=nnethercote

@rust-bors

rust-bors Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

📌 Commit aabf824 has been approved by nnethercote

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 24, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Jul 24, 2026
optimization: don't look for diagnostic/canonical items without rustc_attrs enabled
@rust-bors rust-bors Bot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 24, 2026
@rust-bors

rust-bors Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

💔 Test for 742eacd failed: CI. Failed job:

@jhpratt

jhpratt commented Jul 24, 2026

Copy link
Copy Markdown
Member

@bors retry

@rust-bors rust-bors Bot 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 Jul 24, 2026
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

A job failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
#29 loading layer 8a50b5f1ebd4 625.46MB / 625.46MB 33.3s done
#29 loading layer d4d73977ead7 351B / 351B 22.6s done
#29 loading layer ae4e189d5071 624.93MB / 624.93MB 22.6s done
#29 loading layer 1ce6387464db 282B / 282B 12.3s done
#29 ERROR: write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device

#27 exporting to docker image format
#27 sending tarball 76.2s done
#27 ERROR: rpc error: code = Unknown desc = write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device
------
 > exporting to docker image format:
------
------
 > importing to docker:
------
ERROR: failed to build: failed to solve: rpc error: code = Unknown desc = write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device
Command failed. Attempt 2/5:
#0 building with "focused_yalow" instance using docker-container driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 7.17kB done
---
#27 loading layer 8a50b5f1ebd4 625.46MB / 625.46MB 32.5s done
#27 loading layer d4d73977ead7 351B / 351B 22.0s done
#27 loading layer ae4e189d5071 624.93MB / 624.93MB 21.9s done
#27 loading layer 1ce6387464db 282B / 282B 11.9s done
#27 ERROR: write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device

#26 exporting to docker image format
#26 sending tarball 75.2s done
#26 ERROR: rpc error: code = Unknown desc = write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device
------
 > exporting to docker image format:
------
------
 > importing to docker:
------
ERROR: failed to build: failed to solve: rpc error: code = Unknown desc = write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device
Command failed. Attempt 3/5:
#0 building with "focused_yalow" instance using docker-container driver

#1 [internal] load build definition from Dockerfile
#1 DONE 0.0s
---
#27 loading layer 8a50b5f1ebd4 625.46MB / 625.46MB 32.9s done
#27 loading layer d4d73977ead7 351B / 351B 22.3s done
#27 loading layer ae4e189d5071 624.93MB / 624.93MB 22.3s done
#27 loading layer 1ce6387464db 282B / 282B 12.2s done
#27 ERROR: write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device

#26 exporting to docker image format
#26 sending tarball 75.0s done
#26 ERROR: rpc error: code = Unknown desc = write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device
------
 > exporting to docker image format:
------
------
 > importing to docker:
------
ERROR: failed to build: failed to solve: rpc error: code = Unknown desc = write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device
Command failed. Attempt 4/5:
#0 building with "focused_yalow" instance using docker-container driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 7.17kB done
---
#27 loading layer 8a50b5f1ebd4 625.46MB / 625.46MB 32.8s done
#27 loading layer d4d73977ead7 351B / 351B 22.2s done
#27 loading layer ae4e189d5071 624.93MB / 624.93MB 22.2s done
#27 loading layer 1ce6387464db 282B / 282B 12.2s done
#27 ERROR: write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device

#26 exporting to docker image format
#26 sending tarball 76.1s done
#26 ERROR: rpc error: code = Unknown desc = write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device
------
 > exporting to docker image format:
------
------
 > importing to docker:
------
ERROR: failed to build: failed to solve: rpc error: code = Unknown desc = write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device
Command failed. Attempt 5/5:
#0 building with "focused_yalow" instance using docker-container driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 7.17kB done
---
#28 loading layer 8a50b5f1ebd4 625.46MB / 625.46MB 32.6s done
#28 loading layer d4d73977ead7 351B / 351B 22.1s done
#28 loading layer ae4e189d5071 624.93MB / 624.93MB 22.1s done
#28 loading layer 1ce6387464db 282B / 282B 12.1s done
#28 ERROR: write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device

#27 exporting to docker image format
#27 sending tarball 77.0s done
#27 ERROR: rpc error: code = Unknown desc = write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device
------
 > exporting to docker image format:
------
------
 > importing to docker:
------
ERROR: failed to build: failed to solve: rpc error: code = Unknown desc = write /build/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libllvmlibc-mt.a: no space left on device
The command has failed after 5 attempts.
##[error]Process completed with exit code 1.
##[group]Run echo "disk usage:"
echo "disk usage:"
df -h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

6 participants