diff options
| author | Trevor Gross <tmgross@umich.edu> | 2025-08-07 03:42:02 -0500 |
|---|---|---|
| committer | Trevor Gross <tmgross@umich.edu> | 2025-08-07 12:31:22 -0500 |
| commit | 36ec648e0a951425a7dcee0c742a60df19a37939 (patch) | |
| tree | cf59f2e9afb5f59bf52840445717080aec909740 | |
| parent | ab0def2739744ae31d5738263acd0cc0e00e1a16 (diff) | |
| download | rust-36ec648e0a951425a7dcee0c742a60df19a37939.tar.gz rust-36ec648e0a951425a7dcee0c742a60df19a37939.zip | |
Remove instances of `allow(improper_ctypes)`
i128/u128 haven't flagged `improper_ctypes` for a while, and this just made it to stable [1]. Remove the `allow`s as they are no longer needed. [1]: https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/#i128-and-u128-in-extern-c-functions
| -rw-r--r-- | library/compiler-builtins/builtins-test/benches/float_conv.rs | 1 | ||||
| -rw-r--r-- | library/compiler-builtins/compiler-builtins/src/lib.rs | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/library/compiler-builtins/builtins-test/benches/float_conv.rs b/library/compiler-builtins/builtins-test/benches/float_conv.rs index e0f488eb685..40c13d270ac 100644 --- a/library/compiler-builtins/builtins-test/benches/float_conv.rs +++ b/library/compiler-builtins/builtins-test/benches/float_conv.rs @@ -1,4 +1,3 @@ -#![allow(improper_ctypes)] #![cfg_attr(f128_enabled, feature(f128))] use builtins_test::float_bench; diff --git a/library/compiler-builtins/compiler-builtins/src/lib.rs b/library/compiler-builtins/compiler-builtins/src/lib.rs index ca75f44e02a..b111dc0bd18 100644 --- a/library/compiler-builtins/compiler-builtins/src/lib.rs +++ b/library/compiler-builtins/compiler-builtins/src/lib.rs @@ -18,10 +18,6 @@ #![no_std] #![allow(unused_features)] #![allow(internal_features)] -// We use `u128` in a whole bunch of places which we currently agree with the -// compiler on ABIs and such, so we should be "good enough" for now and changes -// to the `u128` ABI will be reflected here. -#![allow(improper_ctypes, improper_ctypes_definitions)] // `mem::swap` cannot be used because it may generate references to memcpy in unoptimized code. #![allow(clippy::manual_swap)] // Support compiling on both stage0 and stage1 which may differ in supported stable features. |
