rust/tests/ui/union
Matthias Krüger ed27148812
Rollup merge of #116284 - RalfJung:no-nan-match, r=cjgillot
make matching on NaN a hard error, and remove the rest of illegal_floating_point_literal_pattern

These arms would never be hit anyway, so the pattern makes little sense. We have had a future-compat lint against float matches in general for a *long* time, so I hope we can get away with immediately making this a hard error.

This is part of implementing https://github.com/rust-lang/rfcs/pull/3535.

Closes https://github.com/rust-lang/rust/issues/41620 by removing the lint.

https://github.com/rust-lang/reference/pull/1456 updates the reference to match.
2024-02-05 11:07:26 +01:00
..
auxiliary
unnamed-fields Parse unnamed fields and anonymous structs or unions 2023-08-24 11:17:54 +08:00
field_checks.rs Tweak E0740 2023-03-08 01:58:15 +00:00
field_checks.stderr Tweak E0740 2023-03-08 01:58:15 +00:00
issue-41073.rs Tweak E0740 2023-03-08 01:58:15 +00:00
issue-41073.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-81199.rs raw pointer metadata API: data address -> data pointer 2024-01-29 07:56:38 +01:00
issue-81199.stderr Work around the fact that check_mod_type_wf may spuriously return ErrorGuaranteed, even if that error is only emitted by check_modwitem_types 2023-10-25 12:04:54 +00:00
issue-99375.rs
projection-as-union-type-error-2.rs Add failing test for invalid projection as union field type 2023-01-17 14:00:55 +01:00
projection-as-union-type-error-2.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
projection-as-union-type-error.rs Add failing test for invalid projection as union field type 2023-01-17 14:00:55 +01:00
projection-as-union-type-error.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
projection-as-union-type.rs Add ui test for projection used as union field type 2023-01-16 15:19:18 +01:00
union-align.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-backcomp.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-basic.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-borrow-move-parent-sibling.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-borrow-move-parent-sibling.stderr Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-const-codegen.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-const-eval-field.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-const-eval.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-const-pat.rs
union-const-pat.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
union-copy.rs may not => cannot 2023-03-08 00:00:18 +00:00
union-copy.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
union-deref.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-deref.stderr Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-derive-clone.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-derive-clone.stderr Use single label for method not found due to unmet bound 2024-01-26 20:47:19 +00:00
union-derive-eq.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-derive-eq.stderr Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-derive-rpass.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-derive.rs
union-derive.stderr
union-drop-assign.rs
union-drop.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-empty.rs
union-empty.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
union-fields-1.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-fields-1.stderr Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-fields-2.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-fields-2.stderr Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-generic-rpass.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-generic.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-generic.stderr Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-inherent-method.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-lint-dead-code.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-lint-dead-code.stderr Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-macro.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-manuallydrop-rpass.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-move.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-move.stderr Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-nodrop.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-nonrepresentable.rs
union-nonrepresentable.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
union-nonzero.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-overwrite.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-packed.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-pat-refutability.rs remove illegal_floating_point_literal_pattern lint 2024-01-26 17:25:02 +01:00
union-repr-c.rs
union-repr-c.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
union-sized-field.rs
union-sized-field.stderr change std::marker::Sized to just Sized 2023-06-15 12:01:38 +02:00
union-suggest-field.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-suggest-field.stderr Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-trait-impl.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-transmute.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-unsafe.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-unsafe.stderr Stabilize THIR unsafeck 2024-01-05 10:00:59 +00:00
union-unsized.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-unsized.stderr Stabilize THIR unsafeck 2024-01-05 10:00:59 +00:00
union-with-drop-fields.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
union-with-drop-fields.stderr Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
unresolved-field-isnt-copy.rs Don't report E0740 for type error 2023-03-08 01:55:32 +00:00
unresolved-field-isnt-copy.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00