rust/compiler
Nicholas Nethercote a733082be9 Avoid need for {D,Subd}iagnosticMessage imports.
The `fluent_messages!` macro produces uses of
`crate::{D,Subd}iagnosticMessage`, which means that every crate using
the macro must have this import:
```
use rustc_errors::{DiagnosticMessage, SubdiagnosticMessage};
```

This commit changes the macro to instead use
`rustc_errors::{D,Subd}iagnosticMessage`, which avoids the need for the
imports.
2023-11-26 08:38:00 +11:00
..
rustc Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_abi Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_arena Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
rustc_ast Add Span to TraitBoundModifier 2023-11-24 14:32:05 +00:00
rustc_ast_lowering Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_ast_passes Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_ast_pretty Add Span to TraitBoundModifier 2023-11-24 14:32:05 +00:00
rustc_attr Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_baked_icu_data Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
rustc_borrowck Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_builtin_macros Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_codegen_cranelift Auto merge of #118279 - bjorn3:sync_cg_clif-2023-11-25, r=bjorn3 2023-11-25 13:08:29 +00:00
rustc_codegen_gcc Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_codegen_llvm Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_codegen_ssa Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_const_eval Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_data_structures Enforce NonZeroUsize on thread count 2023-11-23 20:10:44 -05:00
rustc_driver Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
rustc_driver_impl Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_error_codes Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
rustc_error_messages Remove rustc_error_messages/messages.ftl. 2023-11-26 08:37:27 +11:00
rustc_errors Show number in error message even for one error 2023-11-24 19:15:52 +01:00
rustc_expand Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_feature Add an experimental feature gate for function delegation 2023-11-23 17:27:31 +03:00
rustc_fluent_macro Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_fs_util Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_graphviz Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
rustc_hir Replace no_ord_impl with orderable. 2023-11-22 18:38:17 +11:00
rustc_hir_analysis Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_hir_pretty Auto merge of #117928 - nnethercote:rustc_ast_pretty, r=fee1-dead 2023-11-22 05:09:33 +00:00
rustc_hir_typeck Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_incremental Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_index Replace no_ord_impl with orderable. 2023-11-22 18:38:17 +11:00
rustc_index_macros Document newtype_index attributes. 2023-11-22 18:38:20 +11:00
rustc_infer Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_interface Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_lexer Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_lint Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_lint_defs Remove --check-cfg checking of --cfg args 2023-11-18 12:21:58 +01:00
rustc_llvm Tighten up linkage settings for LLVM bindings 2023-11-21 13:43:11 -05:00
rustc_log rustc_log: provide a way to init logging based on the values, not names, of the env vars 2023-11-11 15:24:33 +01:00
rustc_macros Unify HashStable implementations 2023-11-21 05:49:45 +00:00
rustc_metadata Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_middle Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_mir_build Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_mir_dataflow Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_mir_transform Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_monomorphize Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_parse Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_parse_format Auto merge of #117819 - fmease:rustc_parse_format-stable-rustc, r=Nilstrieb 2023-11-15 14:55:35 +00:00
rustc_passes Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_privacy Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_query_impl Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_query_system Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_resolve Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_serialize Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
rustc_session Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_smir Reorder imports and remove re-export 2023-11-24 15:09:26 -08:00
rustc_span Add an experimental feature gate for function delegation 2023-11-23 17:27:31 +03:00
rustc_symbol_mangling Rollup merge of #118147 - Nilstrieb:no-redundant-casts, r=WaffleLapkin 2023-11-22 09:28:51 -08:00
rustc_target Auto merge of #118127 - RalfJung:unadjusted-abi, r=compiler-errors 2023-11-25 17:06:22 +00:00
rustc_trait_selection Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_traits Auto merge of #118120 - compiler-errors:closure-kind, r=lcnr 2023-11-22 21:09:01 +00:00
rustc_transmute Update itertools to 0.11. 2023-11-22 08:13:21 +11:00
rustc_ty_utils Avoid need for {D,Subd}iagnosticMessage imports. 2023-11-26 08:38:00 +11:00
rustc_type_ir Auto merge of #118120 - compiler-errors:closure-kind, r=lcnr 2023-11-22 21:09:01 +00:00
stable_mir Rollup merge of #118274 - celinval:smir-fix-pretty, r=ouz-a 2023-11-25 10:21:09 +01:00