rust/compiler
Matthias Krüger 3fcc79f04a
Rollup merge of #108364 - Nilstrieb:validity-checks-refactor, r=compiler-errors
Unify validity checks into a single query

Previously, there were two queries to check whether a type allows the 0x01 or zeroed bitpattern.

I am planning on adding a further initness to check in #100423, truly uninit for MaybeUninit, which would make this three queries. This seems overkill for such a small feature, so this PR unifies them into one.

I am not entirely happy with the naming and key type and open for improvements.

r? oli-obk
2023-02-27 06:11:52 +01:00
..
rustc
rustc_abi Unify validity checks into a single query 2023-02-23 18:42:36 +00:00
rustc_apfloat
rustc_arena
rustc_ast
rustc_ast_lowering Add ErrorGuaranteed to HIR ExprKind::Err 2023-02-25 19:46:36 +00:00
rustc_ast_passes Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00
rustc_ast_pretty
rustc_attr
rustc_baked_icu_data
rustc_borrowck Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_builtin_macros Replace parse_[sth]_expr with parse_expr_[sth] function names 2023-02-24 05:12:03 +01:00
rustc_codegen_cranelift Rollup merge of #108364 - Nilstrieb:validity-checks-refactor, r=compiler-errors 2023-02-27 06:11:52 +01:00
rustc_codegen_gcc Use List::empty() instead of mk_substs(&[]). 2023-02-24 07:33:02 +11:00
rustc_codegen_llvm Use List::empty() instead of mk_substs(&[]). 2023-02-24 07:33:02 +11:00
rustc_codegen_ssa Rollup merge of #108364 - Nilstrieb:validity-checks-refactor, r=compiler-errors 2023-02-27 06:11:52 +01:00
rustc_const_eval Rollup merge of #108364 - Nilstrieb:validity-checks-refactor, r=compiler-errors 2023-02-27 06:11:52 +01:00
rustc_data_structures Upgrade ena to 0.14.1. 2023-02-24 08:53:27 +11:00
rustc_driver
rustc_driver_impl refactor: statically guarantee that current error codes are documented 2023-02-26 20:12:36 +13:00
rustc_error_codes refactor: statically guarantee that current error codes are documented 2023-02-26 20:12:36 +13:00
rustc_error_messages Handle selecting the default locale better 2023-02-23 01:14:10 +01:00
rustc_errors Rollup merge of #108482 - Ezrashaw:force-error-docs, r=GuillaumeGomez 2023-02-26 12:05:00 +01:00
rustc_expand make "proc macro panicked" translatable 2023-02-24 23:37:10 +02:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir Rollup merge of #108484 - Nilstrieb:˂DiagnosticItem˂FromFn˃ as From˂˂LangItemFromFn˃˃˃꞉꞉from, r=cjgillot 2023-02-26 12:05:01 +01:00
rustc_hir_analysis Rollup merge of #108319 - compiler-errors:dont-project-to-specializable-rpitits, r=lcnr 2023-02-27 06:11:51 +01:00
rustc_hir_pretty Add ErrorGuaranteed to HIR ExprKind::Err 2023-02-25 19:46:36 +00:00
rustc_hir_typeck Add ErrorGuaranteed to HIR ExprKind::Err 2023-02-25 19:46:36 +00:00
rustc_incremental
rustc_index
rustc_infer Rollup merge of #108424 - megakorre:elaborator_refactor, r=compiler-errors 2023-02-26 12:04:59 +01:00
rustc_interface Rollup merge of #107675 - jsgf:link-directives, r=davidtwco 2023-02-25 11:53:09 -08:00
rustc_lexer
rustc_lint Rollup merge of #107890 - obeis:mapping-to-unit, r=cjgillot 2023-02-26 00:46:25 +01:00
rustc_lint_defs Add check for invalid \#[macro_export]\ arguments 2023-02-22 21:53:16 +00:00
rustc_llvm
rustc_log
rustc_macros Emit the enum discriminant separately for the Encodable macro 2023-02-25 01:04:56 +01:00
rustc_metadata Rollup merge of #107675 - jsgf:link-directives, r=davidtwco 2023-02-25 11:53:09 -08:00
rustc_middle Rollup merge of #108364 - Nilstrieb:validity-checks-refactor, r=compiler-errors 2023-02-27 06:11:52 +01:00
rustc_mir_build Add ErrorGuaranteed to HIR ExprKind::Err 2023-02-25 19:46:36 +00:00
rustc_mir_dataflow Auto merge of #108250 - nnethercote:rename-interner-funcs, r=compiler-errors 2023-02-25 13:55:26 +00:00
rustc_mir_transform Rollup merge of #108364 - Nilstrieb:validity-checks-refactor, r=compiler-errors 2023-02-27 06:11:52 +01:00
rustc_monomorphize Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_parse Rollup merge of #108418 - est31:parser_function_names, r=Nilstrieb 2023-02-26 12:04:59 +01:00
rustc_parse_format
rustc_passes Rollup merge of #108379 - compiler-errors:hir-error-guaranteed, r=cjgillot 2023-02-26 12:04:58 +01:00
rustc_plugin_impl
rustc_privacy Auto merge of #108324 - notriddle:notriddle/assoc-fn-method, r=compiler-errors,davidtwco,estebank,oli-obk 2023-02-23 00:19:12 +00:00
rustc_query_impl Move ensure_sufficient_stack to try_execute_query callers 2023-02-25 06:11:01 +01:00
rustc_query_system Don't inline try_execute_query 2023-02-25 06:11:02 +01:00
rustc_resolve Auto merge of #108324 - notriddle:notriddle/assoc-fn-method, r=compiler-errors,davidtwco,estebank,oli-obk 2023-02-23 00:19:12 +00:00
rustc_serialize Emit the enum discriminant separately for the Encodable macro 2023-02-25 01:04:56 +01:00
rustc_session Rollup merge of #107675 - jsgf:link-directives, r=davidtwco 2023-02-25 11:53:09 -08:00
rustc_smir
rustc_span Rollup merge of #108484 - Nilstrieb:˂DiagnosticItem˂FromFn˃ as From˂˂LangItemFromFn˃˃˃꞉꞉from, r=cjgillot 2023-02-26 12:05:01 +01:00
rustc_symbol_mangling Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_target
rustc_trait_selection Rollup merge of #108319 - compiler-errors:dont-project-to-specializable-rpitits, r=lcnr 2023-02-27 06:11:51 +01:00
rustc_traits Add mk_canonical_var_infos_from_iter. 2023-02-24 07:33:02 +11:00
rustc_transmute
rustc_ty_utils Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_type_ir