rust/compiler
Matthew Jasper 5cc83fd4a5 Fix inline const pattern unsafety checking in THIR
THIR unsafety checking was getting a cycle of
function unsafety checking
-> building THIR for the function
-> evaluating pattern inline constants in the function
-> building MIR for the inline constant
-> checking unsafety of functions (so that THIR can be stolen)
This is fixed by not stealing THIR when generating MIR but instead when
unsafety checking.
This leaves an issue with pattern inline constants not being unsafety
checked because they are evaluated away when generating THIR.
To fix that we now represent inline constants in THIR patterns and
visit them in THIR unsafety checking.
2023-10-16 15:57:59 +00:00
..
rustc Split out the stable part of smir into its own crate to prevent accidental usage of forever unstable things 2023-09-25 14:38:27 +00:00
rustc_abi place evaluation: require the original pointer to be aligned if an access happens 2023-10-15 18:13:31 +02:00
rustc_arena rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_ast Auto merge of #116688 - compiler-errors:rustfmt-up, r=WaffleLapkin,Nilstrieb 2023-10-15 13:23:55 +00:00
rustc_ast_lowering Auto merge of #116688 - compiler-errors:rustfmt-up, r=WaffleLapkin,Nilstrieb 2023-10-15 13:23:55 +00:00
rustc_ast_passes Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_ast_pretty Rename tt_prepend_space as space_between. 2023-10-12 08:50:42 +11:00
rustc_attr Auto merge of #116688 - compiler-errors:rustfmt-up, r=WaffleLapkin,Nilstrieb 2023-10-15 13:23:55 +00:00
rustc_baked_icu_data
rustc_borrowck Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_builtin_macros Auto merge of #116688 - compiler-errors:rustfmt-up, r=WaffleLapkin,Nilstrieb 2023-10-15 13:23:55 +00:00
rustc_codegen_cranelift Fix review comments 2023-10-09 18:39:43 +00:00
rustc_codegen_gcc Use IntoDynSyncSend 2023-10-09 17:13:35 -04:00
rustc_codegen_llvm Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_codegen_ssa Auto merge of #116688 - compiler-errors:rustfmt-up, r=WaffleLapkin,Nilstrieb 2023-10-15 13:23:55 +00:00
rustc_const_eval Auto merge of #114330 - RalfJung:dagling-ptr-deref, r=oli-obk 2023-10-16 12:40:16 +00:00
rustc_data_structures Remove unused dominator iterator 2023-10-10 21:39:59 +02:00
rustc_driver
rustc_driver_impl Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_error_codes Deprecate E0706 2023-10-13 21:01:36 +00:00
rustc_error_messages Bump cfg(bootstrap) 2023-08-23 20:05:14 -04:00
rustc_errors Rollup merge of #115196 - chenyukang:yukang-fix-86094, r=estebank 2023-10-16 06:26:20 +02:00
rustc_expand Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_feature Auto merge of #115822 - compiler-errors:stabilize-rpitit, r=jackh726 2023-10-14 07:29:08 +00:00
rustc_fluent_macro rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_fs_util
rustc_graphviz rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_hir Auto merge of #115670 - Zoxc:outline-panic-macro-1, r=Mark-Simulacrum 2023-10-01 05:56:47 +00:00
rustc_hir_analysis Auto merge of #116688 - compiler-errors:rustfmt-up, r=WaffleLapkin,Nilstrieb 2023-10-15 13:23:55 +00:00
rustc_hir_pretty Fiddle with State functions. 2023-10-11 10:46:55 +11:00
rustc_hir_typeck Rollup merge of #115196 - chenyukang:yukang-fix-86094, r=estebank 2023-10-16 06:26:20 +02:00
rustc_incremental Auto merge of #115964 - bjorn3:cgu_reuse_tracker_global_state, r=cjgillot 2023-10-13 00:09:30 +00:00
rustc_index Preserve DebugInfo in DeadStoreElimination. 2023-10-06 15:46:11 +00:00
rustc_infer Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_interface Fix inline const pattern unsafety checking in THIR 2023-10-16 15:57:59 +00:00
rustc_lexer Update lexer emoji diagnostics to Unicode 15.0 2023-07-29 08:47:21 +08:00
rustc_lint Auto merge of #116688 - compiler-errors:rustfmt-up, r=WaffleLapkin,Nilstrieb 2023-10-15 13:23:55 +00:00
rustc_lint_defs Auto merge of #115822 - compiler-errors:stabilize-rpitit, r=jackh726 2023-10-14 07:29:08 +00:00
rustc_llvm rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_log use env variable to control thread ids in rustc_log 2023-10-10 09:39:47 +08:00
rustc_macros Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_metadata Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_middle Fix inline const pattern unsafety checking in THIR 2023-10-16 15:57:59 +00:00
rustc_mir_build Fix inline const pattern unsafety checking in THIR 2023-10-16 15:57:59 +00:00
rustc_mir_dataflow Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_mir_transform Auto merge of #116688 - compiler-errors:rustfmt-up, r=WaffleLapkin,Nilstrieb 2023-10-15 13:23:55 +00:00
rustc_monomorphize rustc_monomorphize: Introduce check_fn_args_move_size() 2023-10-07 10:29:37 +02:00
rustc_parse Auto merge of #116688 - compiler-errors:rustfmt-up, r=WaffleLapkin,Nilstrieb 2023-10-15 13:23:55 +00:00
rustc_parse_format rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_passes Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_plugin_impl rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_privacy Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_query_impl rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_query_system Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_resolve Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_serialize rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_session Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_smir change fn name, return loc info, local name 2023-10-13 11:44:38 +03:00
rustc_span Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_symbol_mangling rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
rustc_target Auto merge of #116688 - compiler-errors:rustfmt-up, r=WaffleLapkin,Nilstrieb 2023-10-15 13:23:55 +00:00
rustc_trait_selection Rollup merge of #115196 - chenyukang:yukang-fix-86094, r=estebank 2023-10-16 06:26:20 +02:00
rustc_traits Detect cycle errors hidden by opaques during monomorphization 2023-09-13 17:35:44 +00:00
rustc_transmute Remove the MaybeTransmutableQuery<&'l Dfa<...>, C> impl. 2023-10-06 11:25:32 +11:00
rustc_ty_utils Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_type_ir Avoid emitting the non_exhaustive error if other errors already occurred 2023-10-11 12:49:57 +00:00
stable_mir change fn name, return loc info, local name 2023-10-13 11:44:38 +03:00