Skip to content

Conversation

JonathanBrouwer
Copy link
Contributor

Ports rustc_layout_scalar_valid_range_start and rustc_layout_scalar_valid_range_end to the new attribute parsing infrastructure for #131229 (comment)

r? @jdonszelmann

@rustbot
Copy link
Collaborator

rustbot commented Jun 23, 2025

jdonszelmann is currently at their maximum review capacity.
They may take a while to respond.

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) 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 Jun 23, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jun 23, 2025

Some changes occurred in compiler/rustc_attr_data_structures

cc @jdonszelmann

Changes to the size of AST and/or HIR nodes.

cc @nnethercote

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann

Some changes occurred in compiler/rustc_passes/src/check_attr.rs

cc @jdonszelmann

@JonathanBrouwer JonathanBrouwer force-pushed the rustc_attributes_parser branch from 46ea3f1 to 9102b14 Compare June 23, 2025 18:02
@JonathanBrouwer JonathanBrouwer force-pushed the rustc_attributes_parser branch from 9102b14 to 49398cf Compare June 23, 2025 18:23
workingjubilee added a commit to workingjubilee/rustc that referenced this pull request Jun 23, 2025
…t, r=jdonszelmann

Fix comment on NoMangle

Fix comment on NoMangle.
This was discussed in comments of rust-lang#142823 (comment) and rust-lang#142921
@aDotInTheVoid
Copy link
Member

@bors2 try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Jun 23, 2025

⌛ Trying commit 49398cf with merge 600a41a

To cancel the try build, run the command @bors2 try cancel.

rust-bors bot added a commit that referenced this pull request Jun 23, 2025
Port `#[rustc_layout_scalar_valid_range_start/end]` to the new attrib…

Ports `rustc_layout_scalar_valid_range_start` and `rustc_layout_scalar_valid_range_end` to the new attribute parsing infrastructure for #131229 (comment)

r? `@jdonszelmann`
@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jun 23, 2025
@rust-bors
Copy link

rust-bors bot commented Jun 24, 2025

☀️ Try build successful (CI)
Build commit: 600a41a (600a41ac6ff1ea3a01ebd1fc0715b567826018f6, parent: 706f244db581212cabf2e619e0113d70999b2bbe)

@rust-timer

This comment has been minimized.

rust-timer added a commit that referenced this pull request Jun 24, 2025
Rollup merge of #142922 - JonathanBrouwer:fix-rustdoc-comment, r=jdonszelmann

Fix comment on NoMangle

Fix comment on NoMangle.
This was discussed in comments of #142823 (comment) and #142921
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (600a41a): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @rustbot label: +perf-regression-triaged. If not, please fix the regressions and do another perf run. If its results are neutral or positive, the label will be automatically removed.

@bors rollup=never
@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)
1.7% [0.3%, 3.0%] 2
Regressions ❌
(secondary)
0.2% [0.1%, 0.5%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.4% [-0.4%, -0.4%] 1
All ❌✅ (primary) 1.7% [0.3%, 3.0%] 2

Max RSS (memory usage)

Results (primary 1.5%, secondary 0.6%)

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

mean range count
Regressions ❌
(primary)
1.5% [1.3%, 1.8%] 2
Regressions ❌
(secondary)
4.0% [2.7%, 5.2%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.7% [-2.8%, -2.6%] 2
All ❌✅ (primary) 1.5% [1.3%, 1.8%] 2

Cycles

Results (primary 0.7%, secondary -2.4%)

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

mean range count
Regressions ❌
(primary)
2.7% [2.7%, 2.7%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-1.4% [-1.4%, -1.4%] 1
Improvements ✅
(secondary)
-2.4% [-2.8%, -1.5%] 5
All ❌✅ (primary) 0.7% [-1.4%, 2.7%] 2

Binary size

Results (primary 1.1%)

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

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

Bootstrap: 688.989s -> 689.147s (0.02%)
Artifact size: 371.96 MiB -> 372.00 MiB (0.01%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Jun 24, 2025
@JonathanBrouwer JonathanBrouwer force-pushed the rustc_attributes_parser branch from 49398cf to 37abd08 Compare June 24, 2025 08:33
@JonathanBrouwer
Copy link
Contributor Author

JonathanBrouwer commented Jun 24, 2025

^ I've boxed the u128, since there seems to be a performance regression.
Let's see if I have permission to undo the changes made by rust-timer
@bors rollup=always (since it should no longer be perf-sensitive)
@rustbot label: -perf-regression

@rustbot rustbot removed the perf-regression Performance regression. label Jun 24, 2025
@bors
Copy link
Collaborator

bors commented Jun 24, 2025

@JonathanBrouwer: 🔑 Insufficient privileges: not in try users

@jdonszelmann
Copy link
Contributor

No let's not rollup always, still want to see the final results

@rustbot rustbot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jun 24, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jun 24, 2025

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@JonathanBrouwer JonathanBrouwer force-pushed the rustc_attributes_parser branch from e6396e3 to d5586dc Compare June 25, 2025 07:44
@JonathanBrouwer
Copy link
Contributor Author

^ Rebased & replied to your comment
@rustbot ready

@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 Jun 25, 2025
@workingjubilee workingjubilee added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-blocked Status: Blocked on something else such as an RFC or other implementation work. labels Jun 25, 2025
@JonathanBrouwer JonathanBrouwer force-pushed the rustc_attributes_parser branch from d5586dc to 498aa7b Compare June 26, 2025 08:48
@bors
Copy link
Collaborator

bors commented Jun 27, 2025

☔ The latest upstream changes (presumably #143074) made this pull request unmergeable. Please resolve the merge conflicts.

…ute parsing infrastructure

Signed-off-by: Jonathan Brouwer <[email protected]>
@JonathanBrouwer JonathanBrouwer force-pushed the rustc_attributes_parser branch from 498aa7b to f98ea3d Compare June 27, 2025 07:08
@JonathanBrouwer
Copy link
Contributor Author

r? @oli-obk

@rustbot rustbot assigned oli-obk and unassigned jdonszelmann Jun 28, 2025
@oli-obk
Copy link
Contributor

oli-obk commented Jun 30, 2025

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 30, 2025

📌 Commit f98ea3d has been approved by oli-obk

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 30, 2025
@bors
Copy link
Collaborator

bors commented Jul 1, 2025

⌛ Testing commit f98ea3d with merge 86e05cd...

@bors
Copy link
Collaborator

bors commented Jul 1, 2025

☀️ Test successful - checks-actions
Approved by: oli-obk
Pushing 86e05cd to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jul 1, 2025
@bors bors merged commit 86e05cd into rust-lang:master Jul 1, 2025
11 checks passed
@rustbot rustbot added this to the 1.90.0 milestone Jul 1, 2025
Copy link
Contributor

github-actions bot commented Jul 1, 2025

What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing f46ce66 (parent) -> 86e05cd (this PR)

Test differences

Show 221 test diffs

Stage 1

  • errors::verify_passes_abi_ne_123: [missing] -> pass (J0)
  • errors::verify_passes_abi_ne_124: pass -> [missing] (J0)
  • errors::verify_passes_align_should_be_repr_align_176: pass -> [missing] (J0)
  • errors::verify_passes_allow_internal_unstable_79: [missing] -> pass (J0)
  • errors::verify_passes_allow_internal_unstable_80: pass -> [missing] (J0)
  • errors::verify_passes_attr_application_enum_137: [missing] -> pass (J0)
  • errors::verify_passes_attr_application_enum_138: pass -> [missing] (J0)
  • errors::verify_passes_attr_application_struct_union_140: pass -> [missing] (J0)
  • errors::verify_passes_cannot_stabilize_deprecated_145: pass -> [missing] (J0)
  • errors::verify_passes_confusables_89: [missing] -> pass (J0)
  • errors::verify_passes_confusables_90: pass -> [missing] (J0)
  • errors::verify_passes_const_stable_not_stable_154: [missing] -> pass (J0)
  • errors::verify_passes_const_stable_not_stable_155: pass -> [missing] (J0)
  • errors::verify_passes_coroutine_on_non_closure_90: [missing] -> pass (J0)
  • errors::verify_passes_debug_visualizer_invalid_82: pass -> [missing] (J0)
  • errors::verify_passes_debug_visualizer_unreadable_82: [missing] -> pass (J0)
  • errors::verify_passes_debug_visualizer_unreadable_83: pass -> [missing] (J0)
  • errors::verify_passes_deprecated_93: [missing] -> pass (J0)
  • errors::verify_passes_deprecated_attribute_142: [missing] -> pass (J0)
  • errors::verify_passes_deprecated_attribute_143: pass -> [missing] (J0)
  • errors::verify_passes_duplicate_diagnostic_item_in_crate_116: pass -> [missing] (J0)
  • errors::verify_passes_duplicate_feature_err_153: pass -> [missing] (J0)
  • errors::verify_passes_extern_main_130: [missing] -> pass (J0)
  • errors::verify_passes_extern_main_131: pass -> [missing] (J0)
  • errors::verify_passes_inline_ignored_for_exported_135: [missing] -> pass (J0)
  • errors::verify_passes_invalid_macro_export_arguments_too_many_items_98: [missing] -> pass (J0)
  • errors::verify_passes_invalid_macro_export_arguments_too_many_items_99: pass -> [missing] (J0)
  • errors::verify_passes_lang_item_fn_with_track_caller_111: [missing] -> pass (J0)
  • errors::verify_passes_lang_item_fn_with_track_caller_112: pass -> [missing] (J0)
  • errors::verify_passes_lang_item_on_incorrect_target_113: [missing] -> pass (J0)
  • errors::verify_passes_layout_align_117: [missing] -> pass (J0)
  • errors::verify_passes_layout_align_118: pass -> [missing] (J0)
  • errors::verify_passes_layout_homogeneous_aggregate_119: [missing] -> pass (J0)
  • errors::verify_passes_layout_invalid_attribute_121: [missing] -> pass (J0)
  • errors::verify_passes_layout_invalid_attribute_122: pass -> [missing] (J0)
  • errors::verify_passes_layout_of_120: [missing] -> pass (J0)
  • errors::verify_passes_layout_of_121: pass -> [missing] (J0)
  • errors::verify_passes_link_ordinal_89: pass -> [missing] (J0)
  • errors::verify_passes_linkage_91: [missing] -> pass (J0)
  • errors::verify_passes_linkage_92: pass -> [missing] (J0)
  • errors::verify_passes_macro_export_95: [missing] -> pass (J0)
  • errors::verify_passes_macro_export_on_decl_macro_96: [missing] -> pass (J0)
  • errors::verify_passes_macro_use_94: [missing] -> pass (J0)
  • errors::verify_passes_macro_use_95: pass -> [missing] (J0)
  • errors::verify_passes_missing_const_err_153: [missing] -> pass (J0)
  • errors::verify_passes_missing_const_err_154: pass -> [missing] (J0)
  • errors::verify_passes_missing_const_stab_attr_147: [missing] -> pass (J0)
  • errors::verify_passes_missing_lang_item_110: [missing] -> pass (J0)
  • errors::verify_passes_missing_lang_item_111: pass -> [missing] (J0)
  • errors::verify_passes_missing_panic_handler_108: [missing] -> pass (J0)
  • errors::verify_passes_no_mangle_74: [missing] -> pass (J0)
  • errors::verify_passes_no_mangle_foreign_74: pass -> [missing] (J0)
  • errors::verify_passes_no_sanitize_164: [missing] -> pass (J0)
  • errors::verify_passes_object_lifetime_err_137: pass -> [missing] (J0)
  • errors::verify_passes_panic_unwind_without_std_109: [missing] -> pass (J0)
  • errors::verify_passes_proc_macro_bad_sig_155: [missing] -> pass (J0)
  • errors::verify_passes_repr_conflicting_76: pass -> [missing] (J0)
  • errors::verify_passes_rustc_allow_const_fn_unstable_84: pass -> [missing] (J0)
  • errors::verify_passes_rustc_const_stable_indirect_pairing_166: pass -> [missing] (J0)
  • errors::verify_passes_rustc_dirty_clean_71: [missing] -> pass (J0)
  • errors::verify_passes_rustc_dirty_clean_72: pass -> [missing] (J0)
  • errors::verify_passes_rustc_force_inline_87: pass -> [missing] (J0)
  • errors::verify_passes_rustc_force_inline_coro_88: pass -> [missing] (J0)
  • errors::verify_passes_rustc_layout_scalar_valid_range_arg_67: pass -> [missing] (J0)
  • errors::verify_passes_rustc_legacy_const_generics_index_exceed_69: [missing] -> pass (J0)
  • errors::verify_passes_rustc_legacy_const_generics_only_67: [missing] -> pass (J0)
  • errors::verify_passes_rustc_legacy_const_generics_only_68: pass -> [missing] (J0)
  • errors::verify_passes_rustc_lint_opt_deny_field_access_105: pass -> [missing] (J0)
  • errors::verify_passes_rustc_lint_opt_ty_103: [missing] -> pass (J0)
  • errors::verify_passes_rustc_pub_transparent_86: pass -> [missing] (J0)
  • errors::verify_passes_rustc_std_internal_symbol_84: [missing] -> pass (J0)
  • errors::verify_passes_stability_promotable_92: [missing] -> pass (J0)
  • errors::verify_passes_trait_impl_const_stable_149: pass -> [missing] (J0)
  • errors::verify_passes_transparent_incompatible_141: [missing] -> pass (J0)
  • errors::verify_passes_transparent_incompatible_142: pass -> [missing] (J0)
  • errors::verify_passes_unexportable_adt_with_private_fields_173: [missing] -> pass (J0)
  • errors::verify_passes_unexportable_fn_abi_169: [missing] -> pass (J0)
  • errors::verify_passes_unexportable_priv_item_172: [missing] -> pass (J0)
  • errors::verify_passes_unknown_feature_150: pass -> [missing] (J0)
  • errors::verify_passes_unknown_feature_alias_150: [missing] -> pass (J0)
  • errors::verify_passes_unknown_feature_alias_151: pass -> [missing] (J0)
  • errors::verify_passes_unknown_lang_item_115: pass -> [missing] (J0)
  • errors::verify_passes_unnecessary_partial_stable_feature_161: [missing] -> pass (J0)
  • errors::verify_passes_unnecessary_partial_stable_feature_162: pass -> [missing] (J0)
  • errors::verify_passes_unnecessary_stable_feature_161: pass -> [missing] (J0)
  • errors::verify_passes_unreachable_due_to_uninhabited_156: [missing] -> pass (J0)
  • errors::verify_passes_unreachable_due_to_uninhabited_157: pass -> [missing] (J0)
  • errors::verify_passes_unstable_attr_for_already_stable_feature_146: pass -> [missing] (J0)
  • errors::verify_passes_unsupported_attributes_in_where_166: [missing] -> pass (J0)
  • errors::verify_passes_unused_assign_passed_164: pass -> [missing] (J0)
  • errors::verify_passes_unused_capture_maybe_capture_ref_159: pass -> [missing] (J0)
  • errors::verify_passes_unused_duplicate_101: [missing] -> pass (J0)
  • errors::verify_passes_unused_duplicate_102: pass -> [missing] (J0)
  • errors::verify_passes_unused_multiple_103: pass -> [missing] (J0)
  • errors::verify_passes_unused_var_assigned_only_160: pass -> [missing] (J0)
  • errors::verify_passes_unused_var_maybe_capture_ref_157: [missing] -> pass (J0)
  • errors::verify_passes_unused_var_maybe_capture_ref_158: pass -> [missing] (J0)
  • errors::verify_passes_used_static_79: pass -> [missing] (J0)
  • errors::verify_passes_useless_assignment_133: [missing] -> pass (J0)
  • errors::verify_passes_useless_stability_144: pass -> [missing] (J0)

(and 119 additional test diffs)

Additionally, 2 doctest diffs were found. These are ignored, as they are noisy.

Job group index

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard 86e05cd300fac9e83e812c4d46582b48db780d8f --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. dist-x86_64-apple: 8076.2s -> 11094.0s (37.4%)
  2. dist-aarch64-apple: 4811.9s -> 5785.4s (20.2%)
  3. dist-x86_64-netbsd: 4537.3s -> 5153.8s (13.6%)
  4. x86_64-gnu-aux: 6320.4s -> 6832.5s (8.1%)
  5. x86_64-gnu-llvm-20-2: 5859.4s -> 5442.5s (-7.1%)
  6. mingw-check-tidy: 81.5s -> 76.0s (-6.7%)
  7. x86_64-apple-2: 4255.5s -> 4540.7s (6.7%)
  8. x86_64-apple-1: 7582.6s -> 7082.3s (-6.6%)
  9. aarch64-gnu: 6475.0s -> 6880.9s (6.3%)
  10. dist-loongarch64-linux: 5917.3s -> 6286.7s (6.2%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (86e05cd): 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.8%, secondary -0.1%)

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

mean range count
Regressions ❌
(primary)
3.5% [3.5%, 3.5%] 1
Regressions ❌
(secondary)
5.4% [5.4%, 5.4%] 1
Improvements ✅
(primary)
-2.9% [-3.4%, -2.3%] 2
Improvements ✅
(secondary)
-2.0% [-3.0%, -0.8%] 3
All ❌✅ (primary) -0.8% [-3.4%, 3.5%] 3

Cycles

Results (primary 2.1%, secondary -0.0%)

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

mean range count
Regressions ❌
(primary)
2.1% [1.4%, 2.8%] 14
Regressions ❌
(secondary)
2.4% [1.1%, 4.0%] 6
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.7% [-6.5%, -2.5%] 4
All ❌✅ (primary) 2.1% [1.4%, 2.8%] 14

Binary size

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

Bootstrap: 461.485s -> 460.931s (-0.12%)
Artifact size: 372.20 MiB -> 372.21 MiB (0.00%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) 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. 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.

9 participants