granite-rust/compiler
Guillaume Gomez 347f7f3bf4
Rollup merge of #116805 - Nilstrieb:onunimplemented-std-core-alloc-whatever-who-cares, r=compiler-errors
Make `rustc_onunimplemented` export path agnostic

This makes it so that all the matchers that match against paths use the definition path instead of the export path. This removes all duplication around `std`/`alloc`/`core`.

This is not necessarily optimal because we now depend on internal implementation details like `core::ops::control_flow::ControlFlow`, which is not very nice and probably not acceptable for a stable `on_unimplemented`.

An alternative would be to just string-replace normalize away `alloc`/`core` to `std` as a special case, keeping the export paths but making it so that we're still fully standard library flavor agnostic.

Looking at the diff, I'm starting to think that some simple string replacement would go a long way towards fixing the problem of duplication while keeping export paths...

What do you prefer?

Also `@weiznich` for your thoughts about the stable version.

r? compiler-errors
2023-10-16 23:58:05 +02: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 Rename ACTIVE_FEATURES as UNSTABLE_FEATURES. 2023-10-16 08:17:23 +11: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 Regen baked data 2023-05-02 10:45:16 -07:00
rustc_borrowck Remove DefiningAnchor::Bubble from opaque wf check 2023-10-16 15:50:31 +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 #116550 - nnethercote:rustc-features-more, r=Nilstrieb 2023-10-16 14:34:53 +00:00
rustc_data_structures Remove unused dominator iterator 2023-10-10 21:39:59 +02:00
rustc_driver Update rustix 2023-07-03 07:20:51 +00:00
rustc_driver_impl Auto merge of #116731 - Alexendoo:hash-untracked-state, r=oli-obk 2023-10-16 16:33:42 +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 Rename ACTIVE_FEATURES as UNSTABLE_FEATURES. 2023-10-16 08:17:23 +11:00
rustc_feature Rename ACTIVE_FEATURES as UNSTABLE_FEATURES. 2023-10-16 08:17:23 +11: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 Rollup merge of #116800 - compiler-errors:rpitit-gat-outlives, r=jackh726 2023-10-16 23:58:04 +02: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 Add Config::hash_untracked_state callback 2023-10-14 15:54:26 +00:00
rustc_lexer Update lexer emoji diagnostics to Unicode 15.0 2023-07-29 08:47:21 +08:00
rustc_lint Rename ACTIVE_FEATURES as UNSTABLE_FEATURES. 2023-10-16 08:17:23 +11: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 Auto merge of #114330 - RalfJung:dagling-ptr-deref, r=oli-obk 2023-10-16 12:40:16 +00:00
rustc_mir_build Rollup merge of #116522 - bvanjoi:fix-115599, r=oli-obk 2023-10-15 21:29:07 +02:00
rustc_mir_dataflow Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
rustc_mir_transform coverage: Explain why we temporarily steal pending_dups 2023-10-16 21:05:46 +11: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 Rename ACTIVE_FEATURES as UNSTABLE_FEATURES. 2023-10-16 08:17:23 +11: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 Auto merge of #116731 - Alexendoo:hash-untracked-state, r=oli-obk 2023-10-16 16:33:42 +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 Rename ACTIVE_FEATURES as UNSTABLE_FEATURES. 2023-10-16 08:17:23 +11:00
rustc_trait_selection Rollup merge of #116805 - Nilstrieb:onunimplemented-std-core-alloc-whatever-who-cares, r=compiler-errors 2023-10-16 23:58:05 +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