Skip to content

Atomic intrinsics : use const generic ordering, part 2 #141700

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 3 commits into from
Jun 8, 2025

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented May 28, 2025

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. 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-libs Relevant to the library team, which will review and decide on the PR/issue. labels May 28, 2025
@rustbot
Copy link
Collaborator

rustbot commented May 28, 2025

Some changes occurred in compiler/rustc_codegen_gcc

cc @antoyo, @GuillaumeGomez

Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter
gets adapted for the changes, if necessary.

cc @rust-lang/miri, @RalfJung, @oli-obk, @lcnr

Some changes occurred in compiler/rustc_codegen_ssa

cc @WaffleLapkin

The Miri subtree was changed

cc @rust-lang/miri

Some changes occurred in compiler/rustc_codegen_cranelift

cc @bjorn3

@RalfJung RalfJung changed the title Atomic intrinsics part2 Atomic intrinsics : use const generic ordering, part 2 May 28, 2025
@rust-log-analyzer

This comment has been minimized.

Comment on lines -225 to -231
} else if intrinsic_name == sym::contract_check_ensures {
// contract_check_ensures::<Ret, C>(Ret, C) -> Ret
// where C: for<'a> Fn(&'a Ret) -> bool,
//
// so: two type params, 0 lifetime param, 0 const params, two inputs, no return
(2, 0, 0, vec![param(0), param(1)], param(1), hir::Safety::Safe)
Copy link
Member Author

Choose a reason for hiding this comment

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

@celinval do you know why this intrinsic is handled separately rather than in the big match with all the others?

@RalfJung RalfJung force-pushed the atomic-intrinsics-part2 branch from 28cacd2 to b35d186 Compare May 28, 2025 16:54
@rust-log-analyzer

This comment has been minimized.

@RalfJung RalfJung added the S-blocked Status: Blocked on something else such as an RFC or other implementation work. label May 29, 2025
@bors
Copy link
Collaborator

bors commented May 29, 2025

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

@RalfJung RalfJung force-pushed the atomic-intrinsics-part2 branch from b35d186 to 1b4ba1f Compare May 30, 2025 09:47
#[rustc_intrinsic]
pub unsafe fn atomic_xchg_seqcst<T>(dst: *mut T, src: T) -> T;
pub unsafe fn atomic_xchg<T, const ORD: AtomicOrdering>(dst: *mut T, src: T) -> T;
Copy link
Member

@bjorn3 bjorn3 May 30, 2025

Choose a reason for hiding this comment

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

Can this test use core::intrinsics instead?
Edit: Nope, that would invalidate the test. It seems like it could use a different intrinsic though.
Edit2: This test was added in 22e3a85

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I don't know what this is testing so I changed it as little as possible...

@rust-log-analyzer

This comment has been minimized.

@RalfJung RalfJung force-pushed the atomic-intrinsics-part2 branch from 1b4ba1f to bfcece2 Compare May 30, 2025 10:05
@rustbot

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@RalfJung RalfJung force-pushed the atomic-intrinsics-part2 branch from bfcece2 to 581de04 Compare May 30, 2025 12:01
@rust-log-analyzer

This comment has been minimized.

@RalfJung
Copy link
Member Author

RalfJung commented May 30, 2025

Uh, how could this PR possibly break that incremental test... (incremental/issue-39569.rs)?
This reproduces when I try it locally.
Cc @compiler-errors @oli-obk @BoxyUwU
(we desperately need an expert map, I have only a vague idea whom to ping for incremental issues)

@BoxyUwU
Copy link
Member

BoxyUwU commented May 30, 2025

I don't really know much about incremental 🙏 Hope you manage to figure it out

@compiler-errors
Copy link
Member

I can look later if you are willing to wait a day or so 🤔

@RalfJung
Copy link
Member Author

The PR is blocked on some other stuff anyway.

@compiler-errors
Copy link
Member

compiler-errors commented May 31, 2025

This isn't an incremental bug per se, but instead a bug that has to do with debug printing query keys when debug assertions and -Z query-dep-graph is enabled. We end up printing a const (b/c we're using generic const args here) whose debug printing for -Z query-dep-graph requires invoking the same query cyclically 😃

I've pushed a commit which should fix this.

@rustbot rustbot added the A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) label May 31, 2025
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented Jun 1, 2025

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

@RalfJung
Copy link
Member Author

RalfJung commented Jun 7, 2025

Finally.

@bors r=bjorn3

@bors
Copy link
Collaborator

bors commented Jun 7, 2025

📌 Commit 5282405 has been approved by bjorn3

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 7, 2025
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 8, 2025
…r=bjorn3

Atomic intrinsics : use const generic ordering, part 2

This completes what got started in rust-lang#141507 by using a const generic for the ordering for all intrinsics. It is based on that PR; only the last commit is new.

Blocked on:
- rust-lang#141507
- rust-lang#141687
- rust-lang/stdarch#1811
- rust-lang#141964

r? `@bjorn3`
bors added a commit that referenced this pull request Jun 8, 2025
Rollup of 7 pull requests

Successful merges:

 - #141001 (Make NonZero<char> possible)
 - #141700 (Atomic intrinsics : use const generic ordering, part 2)
 - #141993 (Use the in-tree `compiler-builtins` for the sysroot)
 - #142008 (const-eval error: always say in which item the error occurred)
 - #142053 (Add new Tier-3 targets: `loongarch32-unknown-none*`)
 - #142132 (`tests/ui`: A New Order [6/N])
 - #142179 (store `target.min_global_align` as an `Align`)

r? `@ghost`
`@rustbot` modify labels: rollup
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 8, 2025
…r=bjorn3

Atomic intrinsics : use const generic ordering, part 2

This completes what got started in rust-lang#141507 by using a const generic for the ordering for all intrinsics. It is based on that PR; only the last commit is new.

Blocked on:
- rust-lang#141507
- rust-lang#141687
- rust-lang/stdarch#1811
- rust-lang#141964

r? ``@bjorn3``
bors added a commit that referenced this pull request Jun 8, 2025
Rollup of 6 pull requests

Successful merges:

 - #141001 (Make NonZero<char> possible)
 - #141700 (Atomic intrinsics : use const generic ordering, part 2)
 - #142008 (const-eval error: always say in which item the error occurred)
 - #142053 (Add new Tier-3 targets: `loongarch32-unknown-none*`)
 - #142132 (`tests/ui`: A New Order [6/N])
 - #142179 (store `target.min_global_align` as an `Align`)

r? `@ghost`
`@rustbot` modify labels: rollup
workingjubilee added a commit to workingjubilee/rustc that referenced this pull request Jun 8, 2025
…r=bjorn3

Atomic intrinsics : use const generic ordering, part 2

This completes what got started in rust-lang#141507 by using a const generic for the ordering for all intrinsics. It is based on that PR; only the last commit is new.

Blocked on:
- rust-lang#141507
- rust-lang#141687
- rust-lang/stdarch#1811
- rust-lang#141964

r? ```@bjorn3```
bors added a commit that referenced this pull request Jun 8, 2025
Rollup of 11 pull requests

Successful merges:

 - #140774 (Affirm `-Cforce-frame-pointers=off` does not override)
 - #141001 (Make NonZero<char> possible)
 - #141700 (Atomic intrinsics : use const generic ordering, part 2)
 - #142008 (const-eval error: always say in which item the error occurred)
 - #142053 (Add new Tier-3 targets: `loongarch32-unknown-none*`)
 - #142089 (Replace all uses of sysroot_candidates with get_or_default_sysroot)
 - #142108 (compiler: Add track_caller to AbiMapping::unwrap)
 - #142132 (`tests/ui`: A New Order [6/N])
 - #142162 (UnsafePinned: update get() docs and signature to allow shared mutation)
 - #142171 (`tests/ui`: A New Order [7/N])
 - #142179 (store `target.min_global_align` as an `Align`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors
Copy link
Collaborator

bors commented Jun 8, 2025

⌛ Testing commit 5282405 with merge 6ccd447...

@bors
Copy link
Collaborator

bors commented Jun 8, 2025

☀️ Test successful - checks-actions
Approved by: bjorn3
Pushing 6ccd447 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jun 8, 2025
@bors bors merged commit 6ccd447 into rust-lang:master Jun 8, 2025
11 checks passed
@rustbot rustbot added this to the 1.89.0 milestone Jun 8, 2025
Copy link
Contributor

github-actions bot commented Jun 8, 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 fb644e6 (parent) -> 6ccd447 (this PR)

Test differences

Show 904 test diffs

Stage 1

  • errors::verify_codegen_ssa_aarch64_softfloat_neon_142: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_aix_strip_not_used_137: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_compiler_builtins_cannot_call_131: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_compiler_builtins_cannot_call_135: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_dlltool_fail_import_library_127: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_dlltool_fail_import_library_131: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_error_calling_dlltool_133: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_error_creating_import_library_132: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_error_creating_import_library_136: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_error_creating_remark_dir_130: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_error_creating_remark_dir_134: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_error_writing_def_file_128: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_error_writing_def_file_132: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_failed_to_get_layout_126: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_failed_to_get_layout_130: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_forbidden_target_feature_attr_129: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_illegal_link_ordinal_format_127: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_link_ordinal_nargs_122: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_link_ordinal_nargs_126: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_basic_float_type_90: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_basic_integer_type_85: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_basic_integer_type_89: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_cannot_return_111: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_cast_wide_pointer_115: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_cast_wide_pointer_119: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_element_type_112: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_element_type_116: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_pointer_116: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_pointer_120: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_return_type_108: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_return_type_112: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_usize_117: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_vector_element_type_120: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_float_to_int_unchecked_87: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_float_to_int_unchecked_91: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_floating_point_type_89: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_floating_point_vector_92: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_inserted_type_106: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_inserted_type_110: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_invalid_bitmask_101: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_invalid_bitmask_97: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_mask_wrong_element_type_110: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_mask_wrong_element_type_114: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_mismatched_lengths_109: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_element_104: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_element_108: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_integer_type_101: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_integer_type_105: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_length_103: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_length_107: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_length_input_type_102: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_length_input_type_98: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_type_107: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_type_111: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_argument_91: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_argument_95: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_first_93: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_first_97: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_index_out_of_bounds_105: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_index_out_of_bounds_109: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_input_96: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_return_100: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_return_96: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_second_98: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_shuffle_102: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_shuffle_106: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_third_95: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_third_99: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_third_argument_length_100: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_third_argument_length_104: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_unrecognized_intrinsic_90: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_unrecognized_intrinsic_94: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_unsupported_cast_118: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_unsupported_cast_122: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_unsupported_operation_119: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_unsupported_operation_123: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_unsupported_symbol_114: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_unsupported_symbol_118: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_unsupported_symbol_of_size_113: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_monomorphization_unsupported_symbol_of_size_117: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_invalid_no_sanitize_121: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_invalid_no_sanitize_125: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_missing_memory_ordering_85: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_mixed_export_name_and_no_mangle_134: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_mixed_export_name_and_no_mangle_138: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_target_feature_safe_trait_124: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_target_feature_safe_trait_128: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_unknown_atomic_operation_88: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_unknown_atomic_ordering_86: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_xcrun_failed_invoking_135: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_xcrun_failed_invoking_139: pass -> [missing] (J0)
  • errors::verify_codegen_ssa_xcrun_sdk_path_warning_137: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_xcrun_unsuccessful_136: [missing] -> pass (J0)
  • errors::verify_codegen_ssa_xcrun_unsuccessful_140: pass -> [missing] (J0)
  • [ui] tests/ui/error-codes/E0092.rs: pass -> [missing] (J1)
  • [ui] tests/ui/intrinsics/intrinsic-atomics-cc.rs: pass -> [missing] (J1)
  • [ui] tests/ui/intrinsics/intrinsic-inline-cc.rs: [missing] -> pass (J1)

Stage 2

  • [ui] tests/ui/error-codes/E0092.rs: pass -> [missing] (J2)
  • [ui] tests/ui/intrinsics/intrinsic-atomics-cc.rs: pass -> [missing] (J2)
  • [ui] tests/ui/intrinsics/intrinsic-inline-cc.rs: [missing] -> pass (J2)

(and 18 additional test diffs)

Additionally, 786 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 6ccd4476036edfce364e6271f9e190ec7a2a1ff5 --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-apple-various: 7236.5s -> 5723.7s (-20.9%)
  2. mingw-check-2: 1995.1s -> 2304.8s (15.5%)
  3. aarch64-apple: 4521.0s -> 3979.9s (-12.0%)
  4. dist-aarch64-apple: 5865.1s -> 5446.4s (-7.1%)
  5. dist-x86_64-solaris: 4997.8s -> 5343.0s (6.9%)
  6. dist-loongarch64-musl: 5066.0s -> 4827.1s (-4.7%)
  7. i686-gnu-nopt-2: 5461.0s -> 5210.0s (-4.6%)
  8. mingw-check-1: 1816.5s -> 1888.6s (4.0%)
  9. dist-ohos-x86_64: 4136.5s -> 3991.3s (-3.5%)
  10. x86_64-gnu-llvm-19-3: 6717.7s -> 6945.1s (3.4%)
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 (6ccd447): comparison URL.

Overall result: ❌✅ regressions and improvements - no action needed

@rustbot label: -perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
0.3% [0.3%, 0.3%] 1
Regressions ❌
(secondary)
0.4% [0.4%, 0.4%] 1
Improvements ✅
(primary)
-0.2% [-0.2%, -0.2%] 1
Improvements ✅
(secondary)
-0.2% [-0.2%, -0.2%] 1
All ❌✅ (primary) 0.1% [-0.2%, 0.3%] 2

Max RSS (memory usage)

Results (primary 0.8%, secondary 2.1%)

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)
4.1% [4.1%, 4.1%] 1
Regressions ❌
(secondary)
3.3% [2.6%, 4.4%] 4
Improvements ✅
(primary)
-0.8% [-1.2%, -0.5%] 2
Improvements ✅
(secondary)
-2.7% [-2.7%, -2.7%] 1
All ❌✅ (primary) 0.8% [-1.2%, 4.1%] 3

Cycles

Results (primary -1.4%, secondary -2.4%)

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.5% [2.5%, 2.5%] 1
Improvements ✅
(primary)
-1.4% [-1.8%, -0.8%] 5
Improvements ✅
(secondary)
-2.8% [-3.6%, -1.4%] 14
All ❌✅ (primary) -1.4% [-1.8%, -0.8%] 5

Binary size

Results (primary 0.0%, secondary 0.0%)

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

Bootstrap: 750.755s -> 751.825s (0.14%)
Artifact size: 372.25 MiB -> 372.19 MiB (-0.02%)

@RalfJung RalfJung deleted the atomic-intrinsics-part2 branch June 9, 2025 09:03
github-merge-queue bot pushed a commit to model-checking/kani that referenced this pull request Jun 14, 2025
Culprit PRs:
- June 4: rust-lang/rust#141741
- June 5: rust-lang/rust#142015
- June 6: rust-lang/rust#138677,
rust-lang/rust#142005
- June 7: rust-lang/rust#142012
- June 9: rust-lang/rust#141700 
- June 10: rust-lang/rust#142179,
rust-lang/rust#141803

Resolves #4140

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.
tautschnig pushed a commit to model-checking/verify-rust-std that referenced this pull request Jun 17, 2025
…bjorn3

Atomic intrinsics : use const generic ordering, part 2

This completes what got started in rust-lang#141507 by using a const generic for the ordering for all intrinsics. It is based on that PR; only the last commit is new.

Blocked on:
- rust-lang#141507
- rust-lang#141687
- rust-lang/stdarch#1811
- rust-lang#141964

r? `@bjorn3`
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) A-run-make Area: port run-make Makefiles to rmake.rs 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-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.

8 participants