Skip to content

Rollup of 6 pull requests #139452

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 21 commits into from
Apr 6, 2025
Merged

Rollup of 6 pull requests #139452

merged 21 commits into from
Apr 6, 2025

Conversation

GuillaumeGomez
Copy link
Member

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

thaliaarchi and others added 21 commits March 27, 2025 16:49
Currently, `write` for stdout and stderr on Trusty is implemented with
the semantics of `write_all`. Instead, call the underlying syscall only
once in `write` and use the default implementation of `write_all` like
other platforms. Also, implement `write_vectored` by adding support for
`IoSlice`.

Refactor stdin to reuse the unsupported type like rust-lang#136769.
Generates branchless code
This avoids generating extra instructions that needlessly modify the slice's pointer
Optimize slice {Chunks,Windows}::nth

I've noticed that the `nth` functions on slice iters had non-optimized-out bounds checks.

The new implementation even generates branchless code.
Trusty: Implement `write_vectored` for stdio

Currently, `write` for stdout and stderr on Trusty is implemented with the semantics of `write_all`. Instead, call the underlying syscall only once in `write` and use the default implementation of `write_all` like other platforms. Also, implement `write_vectored` by adding support for `IoSlice`.

Refactor stdin to reuse the unsupported type like rust-lang#136769.

It requires rust-lang#138875 to fix the build for Trusty, though they do not conflict and can merge in either order.

cc `@randomPoison`
…k-Simulacrum

Add `slice::align_to_uninit_mut`

Add new `slice::align_to_uninit_mut` method.

Tracking issue: rust-lang#139062

ACP: rust-lang/libs-team#564
…r=Urgau

Add `*_value` methods to proc_macro lib

This is the (re-)implementation of rust-lang/libs-team#459.

It allows to get the actual value (unescaped) of the different string literals.

It was originally done in rust-lang#136355 but it broke the artifacts build so we decided to move the crate to crates.io to go around this limitation.

Part of rust-lang#136652.

Considering this is a copy-paste of the originally approved PR, no need to go through the whole process again. \o/

r? `@Urgau`
…rieril

Fix typo in `RawList`'s documentation
@rustbot rustbot added A-tidy Area: The tidy tool S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) 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 Apr 6, 2025
@GuillaumeGomez
Copy link
Member Author

@bors r+ rollup=never p=5

@bors
Copy link
Collaborator

bors commented Apr 6, 2025

📌 Commit b3e051a has been approved by GuillaumeGomez

It is now in the queue for this repository.

@bors bors removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 6, 2025
@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Apr 6, 2025
@bors
Copy link
Collaborator

bors commented Apr 6, 2025

⌛ Testing commit b3e051a with merge fd4dc18...

@bors
Copy link
Collaborator

bors commented Apr 6, 2025

☀️ Test successful - checks-actions
Approved by: GuillaumeGomez
Pushing fd4dc18 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 6, 2025
@bors bors merged commit fd4dc18 into rust-lang:master Apr 6, 2025
7 checks passed
@rustbot rustbot added this to the 1.88.0 milestone Apr 6, 2025
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#138562 Optimize slice {Chunks,Windows}::nth 67fd7e78bccc15d914d5429db87ada3a5f656327 (link)
#138876 Trusty: Implement write_vectored for stdio b8e78913a795ae98c3aac6be31e4a64d753a82eb (link)
#139072 Add slice::align_to_uninit_mut a0d2363f7003b7bf87a7ae385b32f876bbe478c8 (link)
#139367 Add *_value methods to proc_macro lib 8f7fecf5163c25f11266993778a155d5a2ba5c89 (link)
#139391 Check if merged attributes list is empty in expr 45ebf00f1a0d56c7d5ee2584591896100ce3045e (link)
#139414 Fix typo in RawList's documentation 8995cd595a740cbd38942b988bde788faf51cd46 (link)

previous master: 175dcc7773

In the case of a perf regression, run the following command for each PR you suspect might be the cause: @rust-timer build $SHA

Copy link

github-actions bot commented Apr 6, 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 175dcc7 (parent) -> fd4dc18 (this PR)

Test differences

Show 33036 test diffs

Stage 1

  • bit_set::tests::dense_insert_range: [missing] -> pass (J0)
  • error::verify_middle_layout_cycle_13: [missing] -> pass (J0)
  • errors::verify_builtin_macros_env_not_defined_56: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_vector_element_type_126: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_shuffle_indices_evaluation_84: [missing] -> pass (J0)
  • errors::verify_expand_must_repeat_once_1: [missing] -> pass (J0)
  • errors::verify_incremental_delete_incompatible_34: [missing] -> pass (J0)
  • errors::verify_metadata_conflicting_global_alloc_48: [missing] -> pass (J0)
  • errors::verify_metadata_failed_write_error_52: [missing] -> pass (J0)
  • errors::verify_parse_expected_trait_in_trait_impl_found_type_70: [missing] -> pass (J0)
  • errors::verify_parse_invalid_dyn_keyword_128: [missing] -> pass (J0)
  • errors::verify_passes_unrecognized_field_124: [missing] -> pass (J0)
  • errors::verify_session_invalid_num_literal_suffix_35: [missing] -> pass (J0)
  • errors::verify_session_sanitizer_cfi_normalize_integers_requires_cfi_16: [missing] -> pass (J0)
  • errors::verify_trait_selection_lf_bound_not_satisfied_18: [missing] -> pass (J0)
  • format_foreign::printf::tests::test_escape: [missing] -> pass (J0)
  • lints::verify_lint_builtin_anonymous_params_25: [missing] -> pass (J0)
  • lints::verify_lint_builtin_decl_unsafe_method_20: [missing] -> pass (J0)
  • parser::tests::long_snippet_multiple_spans: [missing] -> pass (J0)
  • spec::tests::x86_64_apple_darwin: [missing] -> pass (J0)
  • spec::tests::x86_64_wrs_vxworks: [missing] -> pass (J0)
  • stable_hasher::tests::test_hash_bit_set: [missing] -> pass (J0)
  • arc::weak_may_dangle: [missing] -> pass (J1)
  • collections::vec_deque::tests::test_vec_from_vecdeque: [missing] -> pass (J1)
  • f32::test_float_bits_conv: [missing] -> pass (J1)
  • fmt::pad_integral_resets: [missing] -> pass (J1)
  • io::error::tests::test_size: [missing] -> pass (J1)
  • mpmc::very_long_recv_timeout_wont_panic: [missing] -> pass (J1)
  • mpsc_sync::stress: [missing] -> pass (J1)
  • num::test_try_i128i8: [missing] -> pass (J1)
  • num::u128::test_reverse_bits: [missing] -> pass (J1)
  • num::u16::test_unsigned_checked_div: [missing] -> pass (J1)
  • vec::test_cow_from: [missing] -> pass (J1)
  • sort::tests::stable::correct_i32_random_z1_03: [missing] -> ignore (J2)
  • sort::tests::unstable::panic_retain_orig_set_i32_saw_mixed: [missing] -> ignore (J2)
  • sort::tests::unstable::stability_cell_i32_random_d2: [missing] -> ignore (J2)
  • ascii::short::case07_fake_simd_u32: [missing] -> pass (J3)
  • btree::set::clone_10k_and_clear: [missing] -> pass (J3)
  • fmt::write_vec_macro_debug: [missing] -> pass (J3)
  • fs::tests::concurrent_recursive_mkdir: [missing] -> pass (J3)
  • iter::bench_enumerate_chain_sum: [missing] -> pass (J3)
  • iter::bench_peekable_sum: [missing] -> pass (J3)
  • net::tcp::tests::connect_error: [missing] -> pass (J3)
  • sort::tests::stable::panic_observable_is_less_random: [missing] -> pass (J3)
  • sort::tests::unstable::deterministic_i32_random_s95: [missing] -> pass (J3)
  • sort::tests::unstable::panic_retain_orig_set_cell_i32_saw_mixed: [missing] -> pass (J3)
  • vec::bench_clone_0010: [missing] -> pass (J3)
  • os::net::linux_ext::tests::deferaccept: [missing] -> pass (J4)

Stage 2

  • errors::verify_expand_proc_macro_derive_tokens_34: pass -> [missing] (J0)
  • errors::verify_incremental_no_cfg_14: pass -> [missing] (J0)
  • errors::verify_interface_limit_invalid_18: pass -> [missing] (J0)
  • errors::verify_metadata_extern_location_not_file_60: pass -> [missing] (J0)
  • errors::verify_metadata_full_metadata_not_found_61: pass -> [missing] (J0)
  • errors::verify_metadata_unknown_link_kind_17: pass -> [missing] (J0)
  • errors::verify_parse_bad_assoc_type_bounds_130: pass -> [missing] (J0)
  • errors::verify_parse_remove_let_29: pass -> [missing] (J0)
  • errors::verify_passes_doc_fake_variadic_not_valid_32: pass -> [missing] (J0)
  • errors::verify_resolve_bad_macro_import_38: pass -> [missing] (J0)
  • graph::implementation::tests::each_adjacent_from_d: pass -> [missing] (J0)
  • html::length_limit::tests::exactly_limit: pass -> [missing] (J0)
  • lints::verify_lint_builtin_impl_unsafe_method_21: pass -> [missing] (J0)
  • lints::verify_lint_overflowing_uint_84: pass -> [missing] (J0)
  • markdown::parse::tests::test_parse_heading: pass -> [missing] (J0)
  • session_diagnostics::verify_borrowck_lifetime_constraints_error_4: pass -> [missing] (J0)
  • source_map::tests::path_prefix_remapping: pass -> [missing] (J0)
  • spec::tests::armv6_unknown_netbsd_eabihf: pass -> [missing] (J0)
  • spec::tests::i686_wrs_vxworks: pass -> [missing] (J0)
  • spec::tests::mips_unknown_linux_musl: pass -> [missing] (J0)
  • spec::tests::x86_64_fortanix_unknown_sgx: pass -> [missing] (J0)
  • arc::float_nan_ne: pass -> [missing] (J1)
  • cell::refcell_ref_coercion: pass -> [missing] (J1)
  • collections::btree::map::tests::test_extract_if::height_0_keeping_half: pass -> [missing] (J1)
  • collections::btree::set::tests::test_range_panic_2: pass -> [missing] (J1)
  • f128::test_to_radians: pass -> [missing] (J1)
  • f64::test_clamp_max_is_nan: pass -> [missing] (J1)
  • mem::uninit_write_clone_of_slice_no_drop: pass -> [missing] (J1)
  • net::ip_addr::ipv6_from_segments: pass -> [missing] (J1)
  • num::f64::midpoint: pass -> [missing] (J1)
  • num::i128::test_signed_checked_div: pass -> [missing] (J1)
  • num::i32::test_rotate: pass -> [missing] (J1)
  • num::int_sqrt::i16::isqrt: pass -> [missing] (J1)
  • num::test_try_i32i8: pass -> [missing] (J1)
  • num::test_try_i8i64: pass -> [missing] (J1)
  • pin_macro::extension_works_through_block: pass -> [missing] (J1)
  • slice::test_iter_as_ref: pass -> [missing] (J1)
  • slice::test_pop: pass -> [missing] (J1)
  • str::different_str_pattern_forwarding_lifetimes: pass -> [missing] (J1)
  • sys_common::wtf8::tests::wtf8_to_ascii_uppercase: pass -> [missing] (J1)
  • sys_common::wtf8::tests::wtf8_utf8_boundary_between_surrogates: pass -> [missing] (J1)
  • time::from_hours_overflow: pass -> [missing] (J1)
  • time::micros: pass -> [missing] (J1)
  • ascii::long::is_ascii_alphabetic: pass -> [missing] (J3)
  • char::methods::bench_ascii_char_to_lowercase: pass -> [missing] (J3)
  • fs::tests::symlink_hard_link: pass -> [missing] (J3)
  • iter::bench_filter_count: pass -> [missing] (J3)
  • num::bench_i8_from_str_radix_16: pass -> [missing] (J3)
  • sort::tests::stable::self_cmp_cell_i32_random_d2: pass -> [missing] (J3)
  • sort::tests::stable::violate_ord_retain_orig_set_string_random_d2: pass -> [missing] (J3)
  • sort::tests::unstable::violate_ord_retain_orig_set_i32_random_s95: pass -> [missing] (J3)
  • vec::bench_clone_from_10_1000_0100: pass -> [missing] (J3)

(and 16422 additional test diffs)

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

Job group index

  • J0: aarch64-apple, x86_64-apple-1
  • J1: aarch64-apple, test-various, x86_64-apple-1, x86_64-gnu-aux
  • J2: x86_64-gnu-aux
  • J3: aarch64-apple, test-various, x86_64-apple-1
  • J4: test-various

Job duration changes

  1. x86_64-apple-2: 1113.7s -> 5173.9s (364.6%)
  2. test-various: 2300.5s -> 4152.9s (80.5%)
  3. x86_64-apple-1: 5410.5s -> 8018.4s (48.2%)
  4. x86_64-gnu-aux: 4241.6s -> 6043.3s (42.5%)
  5. aarch64-apple: 3000.4s -> 3796.1s (26.5%)
  6. x86_64-msvc-1: 8508.9s -> 8874.2s (4.3%)
  7. i686-msvc-2: 7000.5s -> 7273.1s (3.9%)
  8. dist-i686-msvc: 7014.2s -> 7262.1s (3.5%)
  9. dist-powerpc64le-linux: 9581.8s -> 9802.0s (2.3%)
  10. dist-android: 2533.1s -> 2590.1s (2.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 (fd4dc18): 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 (secondary 4.7%)

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)
4.7% [4.7%, 4.7%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Cycles

Results (secondary 4.2%)

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)
4.2% [1.5%, 6.7%] 6
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Binary size

Results (primary 0.5%, secondary 0.3%)

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.5% [0.5%, 0.6%] 4
Regressions ❌
(secondary)
0.3% [0.0%, 1.2%] 12
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.5% [0.5%, 0.6%] 4

Bootstrap: 776.533s -> 776.854s (0.04%)
Artifact size: 365.95 MiB -> 365.95 MiB (0.00%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tidy Area: The tidy tool merged-by-bors This PR was explicitly merged by bors. 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-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) 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.

9 participants