diff options
| author | Trevor Gross <tmgross@umich.edu> | 2025-07-25 17:36:25 -0500 | 
|---|---|---|
| committer | Trevor Gross <t.gross35@gmail.com> | 2025-07-27 16:39:31 -0500 | 
| commit | 16cb37c9574b35a3b54c7aa3604f328347f304ab (patch) | |
| tree | 28a784ae5e715b833cc901a22c7e8af6670cd480 /library/compiler-builtins/builtins-test/tests/lse.rs | |
| parent | 9c683d3487d8966dad182bc7ad2524bf0bb6d797 (diff) | |
| download | rust-16cb37c9574b35a3b54c7aa3604f328347f304ab.tar.gz rust-16cb37c9574b35a3b54c7aa3604f328347f304ab.zip | |
Remove `no-asm` gating when there is no alternative implementation
Assembly-related configuration was added in 1621c6dbf9eb ("Use
`specialized-div-rem` 1.0.0 for division algorithms") to account for
Cranelift not yet supporting assembly. This hasn't been relevant for a
while, so we no longer need to gate `asm!` behind this configuration.
Thus, remove `cfg(not(feature = "no-asm"))` in places where there is no
generic fallback.
There are other cases, however, where setting the `no-asm` configuration
enables testing of generic version of builtins when there are platform-
specific implementations available; these cases are left unchanged. This
could be improved in the future by exposing both versions for testing
rather than using a configuration and running the entire testsuite
twice.
This is the compiler-builtins portion of
https://github.com/rust-lang/rust/pull/144471.
Diffstat (limited to 'library/compiler-builtins/builtins-test/tests/lse.rs')
| -rw-r--r-- | library/compiler-builtins/builtins-test/tests/lse.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/library/compiler-builtins/builtins-test/tests/lse.rs b/library/compiler-builtins/builtins-test/tests/lse.rs index 0d85228d7a2..5d59fbb7f44 100644 --- a/library/compiler-builtins/builtins-test/tests/lse.rs +++ b/library/compiler-builtins/builtins-test/tests/lse.rs @@ -1,6 +1,6 @@ #![feature(decl_macro)] // so we can use pub(super) #![feature(macro_metavar_expr_concat)] -#![cfg(all(target_arch = "aarch64", target_os = "linux", not(feature = "no-asm")))] +#![cfg(all(target_arch = "aarch64", target_os = "linux"))] /// Translate a byte size to a Rust type. macro int_ty { | 
