rust/library/std/tests
bors c3dd4eefd6 Auto merge of #138363 - beetrees:f16-f128-integer-convert, r=Amanieu
Add `From<{integer}>` for `f16`/`f128` impls

This PR adds `impl From<{bool,i8,u8}> for f16` and `impl From<{bool,i8,u8,i16,u16,i32,u32}> for f128`.

The `From<{i64,u64}> for f128` impls are left commented out as adding them would allow using `f128` on stable before it is stabilised like in the following example:
```rust
fn f<T: From<u64>>(x: T) -> T { x }

fn main() {
    let x = f(1.0); // the type of the literal is inferred to be `f128`
}
```
None of the impls added in this PR have this issue as they are all, at minimum, also implemented by `f64`.

This PR will need a crater run for the `From<{i32,u32}>` impls, as `f64` is no longer the only float type to implement them (similar to the cause of #125198).

cc `@bjoernager`
r? `@tgross35`

Tracking issue: #116909
2025-03-17 00:33:36 +00:00
..
common std: get rid of sys_common::io 2025-02-07 16:54:07 +01:00
floats Auto merge of #138363 - beetrees:f16-f128-integer-convert, r=Amanieu 2025-03-17 00:33:36 +00:00
sync library: Update rand to 0.9.0 2025-02-13 12:20:55 -08:00
thread_local Move std::thread_local unit tests to integration tests 2025-01-26 10:28:05 +00:00
builtin-clone.rs Run tidy on tests 2024-04-28 18:04:25 -04:00
create_dir_all_bare.rs Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
env.rs Move env modifying tests to a separate integration test 2025-01-26 10:28:05 +00:00
env_modify.rs std: Apply deprecated_safe_2024 2025-02-13 13:10:28 -08:00
eq-multidispatch.rs Run tidy on tests 2024-04-28 18:04:25 -04:00
error.rs Move std::error unit tests to integration tests 2025-01-26 10:28:04 +00:00
istr.rs Remove some unnecessary parens in assert! conditions 2025-02-06 22:28:44 +00:00
log-knows-the-names-of-variants-in-std.rs Run tidy on tests 2024-04-28 18:04:25 -04:00
minmax-stability-issue-23687.rs Run tidy on tests 2024-04-28 18:04:25 -04:00
num.rs Move std::num unit tests to integration tests 2025-01-26 10:28:04 +00:00
panic.rs Move std::panic unit tests to integration tests 2025-01-26 10:28:04 +00:00
path.rs Move std::path unit tests to integration tests 2025-01-26 10:28:04 +00:00
pipe_subprocess.rs Fix testing of the standard library with Emscripten 2025-01-24 09:25:34 +00:00
process_spawning.rs Fix testing of the standard library with Emscripten 2025-01-24 09:25:34 +00:00
run-time-detect.rs expose is_s390x_feature_detected from std::arch 2025-03-09 14:04:39 +01:00
seq-compare.rs Remove some unnecessary parens in assert! conditions 2025-02-06 22:28:44 +00:00
slice-from-array-issue-113238.rs Move various stdlib tests to library/std/tests 2024-04-28 16:10:12 -04:00
switch-stdout.rs Mark extern blocks as unsafe 2025-02-09 17:11:13 +00:00
thread.rs Avoid shadowing user provided types or type aliases in thread_local! 2024-10-18 10:27:41 +08:00
time.rs Move std::time unit tests to integration tests 2025-01-26 10:28:04 +00:00
type-name-unsized.rs Rename test for issue 21058 2024-05-05 10:47:12 -04:00
volatile-fat-ptr.rs Move various stdlib tests to library/std/tests 2024-04-28 16:10:12 -04:00
win_delete_self.rs ignore win_delete_self test in Miri 2025-02-10 08:08:32 +01:00
windows.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00