rust/compiler
Matthias Krüger 1ae0d90b72
Rollup merge of #124797 - beetrees:primitive-float, r=davidtwco
Refactor float `Primitive`s to a separate `Float` type

Now there are 4 of them, it makes sense to refactor `F16`, `F32`, `F64` and `F128` out of `Primitive` and into a separate `Float` type (like integers already are). This allows patterns like `F16 | F32 | F64 | F128` to be simplified into `Float(_)`, and is consistent with `ty::FloatTy`.

As a side effect, this PR also makes the `Ty::primitive_size` method work with `f16` and `f128`.

Tracking issue: #116909

`@rustbot` label +F-f16_and_f128
2024-05-10 16:10:46 +02:00
..
rustc Change SIGPIPE ui from #[unix_sigpipe = "..."] to -Zon-broken-pipe=... 2024-05-02 19:48:29 +02:00
rustc_abi Rollup merge of #124797 - beetrees:primitive-float, r=davidtwco 2024-05-10 16:10:46 +02:00
rustc_arena
rustc_ast Add ErrorGuaranteed to Recovered::Yes and use it more. 2024-05-09 20:12:07 +10:00
rustc_ast_ir
rustc_ast_lowering Add ErrorGuaranteed to Recovered::Yes and use it more. 2024-05-09 20:12:07 +10:00
rustc_ast_passes Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
rustc_ast_pretty Rollup merge of #123344 - pietroalbini:pa-unused-imports, r=Nilstrieb 2024-05-08 23:33:24 +02:00
rustc_attr
rustc_baked_icu_data
rustc_borrowck Auto merge of #124961 - matthiaskrgr:rollup-1jj65p6, r=matthiaskrgr 2024-05-10 06:50:46 +00:00
rustc_builtin_macros Rollup merge of #124919 - nnethercote:Recovered-Yes-ErrorGuaranteed, r=compiler-errors 2024-05-09 19:09:30 +02:00
rustc_codegen_cranelift Refactor float Primitives to a separate Float type 2024-05-06 14:56:10 +01:00
rustc_codegen_gcc Rollup merge of #124797 - beetrees:primitive-float, r=davidtwco 2024-05-10 16:10:46 +02:00
rustc_codegen_llvm Rollup merge of #124797 - beetrees:primitive-float, r=davidtwco 2024-05-10 16:10:46 +02:00
rustc_codegen_ssa Rollup merge of #124797 - beetrees:primitive-float, r=davidtwco 2024-05-10 16:10:46 +02:00
rustc_const_eval interpret/miri: better errors on failing offset_from 2024-05-09 13:09:47 +02:00
rustc_data_structures Remove enum_from_u32. 2024-05-09 09:01:59 +10:00
rustc_driver
rustc_driver_impl compiler: upgrade time from 0.3.34 to 0.3.36 2024-05-04 21:18:41 -07:00
rustc_error_codes Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
rustc_error_messages
rustc_errors Remove some low-value use renamings. 2024-05-03 16:03:12 +10:00
rustc_expand Add ErrorGuaranteed to Recovered::Yes and use it more. 2024-05-09 20:12:07 +10:00
rustc_feature Auto merge of #124747 - MasterAwesome:master, r=davidtwco 2024-05-06 00:55:49 +00:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Rollup merge of #124919 - nnethercote:Recovered-Yes-ErrorGuaranteed, r=compiler-errors 2024-05-09 19:09:30 +02:00
rustc_hir_analysis Auto merge of #124961 - matthiaskrgr:rollup-1jj65p6, r=matthiaskrgr 2024-05-10 06:50:46 +00:00
rustc_hir_pretty
rustc_hir_typeck Auto merge of #124961 - matthiaskrgr:rollup-1jj65p6, r=matthiaskrgr 2024-05-10 06:50:46 +00:00
rustc_incremental Auto merge of #123441 - saethlin:fixed-len-file-names, r=oli-obk 2024-05-03 17:41:48 +00:00
rustc_index
rustc_index_macros
rustc_infer Auto merge of #124961 - matthiaskrgr:rollup-1jj65p6, r=matthiaskrgr 2024-05-10 06:50:46 +00:00
rustc_interface Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
rustc_lexer
rustc_lint Rollup merge of #124955 - nnethercote:next_ty_var, r=lcnr 2024-05-10 07:30:22 +02:00
rustc_lint_defs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
rustc_llvm Update cc crate to v1.0.97 2024-05-08 15:06:35 +00:00
rustc_log
rustc_macros
rustc_metadata Rename Generics::params to Generics::own_params 2024-05-09 20:58:46 -04:00
rustc_middle Rollup merge of #124797 - beetrees:primitive-float, r=davidtwco 2024-05-10 16:10:46 +02:00
rustc_mir_build Use fewer origins when creating type variables. 2024-05-10 09:47:46 +10:00
rustc_mir_dataflow Inline & delete Ty::new_unit, since it's just a field access 2024-05-02 17:49:23 +02:00
rustc_mir_transform Rollup merge of #124615 - Zalathar:extracted-mappings, r=davidtwco 2024-05-10 16:10:45 +02:00
rustc_monomorphize Rename Generics::params to Generics::own_params 2024-05-09 20:58:46 -04:00
rustc_next_trait_solver Use super_fold in RegionsToStatic visitor 2024-05-06 12:22:15 -04:00
rustc_parse Rollup merge of #124778 - fmease:fix-diag-msg-parse-meta-item, r=nnethercote 2024-05-10 16:10:45 +02:00
rustc_parse_format
rustc_passes Fix Error Messages for break Inside Coroutines 2024-05-08 17:32:25 -04:00
rustc_pattern_analysis Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
rustc_privacy Rename Generics::params to Generics::own_params 2024-05-09 20:58:46 -04:00
rustc_query_impl Simplify use crate::rustc_foo::bar occurrences. 2024-05-08 16:57:31 +10:00
rustc_query_system Remove some unneeded Cargo.toml dependencies. 2024-05-03 15:33:52 +10:00
rustc_resolve Rollup merge of #123344 - pietroalbini:pa-unused-imports, r=Nilstrieb 2024-05-08 23:33:24 +02:00
rustc_sanitizers
rustc_serialize Step bootstrap cfgs 2024-05-01 22:19:11 -04:00
rustc_session Add rustfmt cfg to well known cfgs list 2024-05-05 14:30:35 +02:00
rustc_smir Rollup merge of #124797 - beetrees:primitive-float, r=davidtwco 2024-05-10 16:10:46 +02:00
rustc_span Auto merge of #124747 - MasterAwesome:master, r=davidtwco 2024-05-06 00:55:49 +00:00
rustc_symbol_mangling Auto merge of #123441 - saethlin:fixed-len-file-names, r=oli-obk 2024-05-03 17:41:48 +00:00
rustc_target Rollup merge of #124797 - beetrees:primitive-float, r=davidtwco 2024-05-10 16:10:46 +02:00
rustc_trait_selection Auto merge of #124961 - matthiaskrgr:rollup-1jj65p6, r=matthiaskrgr 2024-05-10 06:50:46 +00:00
rustc_traits Use ObligationCtxt in favor of TraitEngine in many places 2024-05-02 22:03:01 -04:00
rustc_transmute Align: add bytes_usize and bits_usize 2024-05-01 15:57:33 +02:00
rustc_ty_utils Rollup merge of #124797 - beetrees:primitive-float, r=davidtwco 2024-05-10 16:10:46 +02:00
rustc_type_ir
stable_mir Use generic NonZero. 2024-05-08 21:37:55 +02:00