rust/compiler
Matthias Krüger 8b49731211
Rollup merge of #115744 - fmease:fix-e0401, r=compiler-errors
Improve diagnostic for generic params from outer items (E0401)

Generalize the wording of E0401 to talk about *outer items* instead of *outer functions* since the current phrasing is outdated. The outer item can be a function, constant, trait, ADT or impl block (see the new UI test for the more exotic examples).

Further, don't suggest introducing generic parameters to constant items unless the feature `generic_const_items` is enabled.

Lastly, make E0401 translatable while we're at it.

Fixes #115720.
2023-09-11 17:03:32 +02:00
..
rustc
rustc_abi turns out Layout has some more things to worry about -- move ABI comparison into helper function 2023-09-08 09:14:07 +02:00
rustc_arena
rustc_ast improve AttrTokenStream 2023-09-04 20:07:28 +08:00
rustc_ast_lowering Enable incremental-relative-spans by default. 2023-09-07 20:21:13 +00:00
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_baked_icu_data
rustc_borrowck Auto merge of #115308 - chenyukang:yukang-fix-62387-iter-mut, r=davidtwco 2023-09-11 12:41:30 +00:00
rustc_builtin_macros
rustc_codegen_cranelift Auto merge of #115418 - Zoxc:freeze-source, r=oli-obk 2023-09-08 17:20:23 +00:00
rustc_codegen_gcc Deduplicate inlined function debug info, but create a new lexical scope to child subsequent scopes and variables from colliding 2023-09-01 14:27:21 -07:00
rustc_codegen_llvm Auto merge of #115685 - matthiaskrgr:rollup-t31gowy, r=matthiaskrgr 2023-09-08 22:47:40 +00:00
rustc_codegen_ssa Auto merge of #115417 - dpaoliello:fixdi, r=wesleywiser 2023-09-08 20:56:01 +00:00
rustc_const_eval Auto merge of #115372 - RalfJung:abi-assert-eq, r=davidtwco 2023-09-08 11:56:08 +00:00
rustc_data_structures Auto merge of #115388 - Zoxc:sharded-lock, r=SparrowLii 2023-09-11 01:43:29 +00:00
rustc_driver
rustc_driver_impl Add missing Debuginfo to PDB debug file on windows. 2023-09-08 00:28:40 +02:00
rustc_error_codes Generalize E0401 2023-09-10 23:06:14 +02:00
rustc_error_messages
rustc_errors Auto merge of #115418 - Zoxc:freeze-source, r=oli-obk 2023-09-08 17:20:23 +00:00
rustc_expand Enable incremental-relative-spans by default. 2023-09-07 20:21:13 +00:00
rustc_feature
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir replace doc occurrences of ItemLikeVisitor 2023-09-05 22:40:36 +02:00
rustc_hir_analysis Rollup merge of #115727 - fee1-dead-contrib:effect-fallback, r=oli-obk 2023-09-11 17:03:31 +02:00
rustc_hir_pretty
rustc_hir_typeck Rollup merge of #115727 - fee1-dead-contrib:effect-fallback, r=oli-obk 2023-09-11 17:03:31 +02:00
rustc_incremental Avoid a source_span query when encoding Spans into query results 2023-09-08 02:08:52 +02:00
rustc_index
rustc_infer Rollup merge of #115727 - fee1-dead-contrib:effect-fallback, r=oli-obk 2023-09-11 17:03:31 +02:00
rustc_interface Use FreezeLock for CStore 2023-09-09 16:02:11 +02:00
rustc_lexer
rustc_lint Rollup merge of #115739 - Alexendoo:lint-pass-check-attribute, r=oli-obk 2023-09-11 17:03:32 +02:00
rustc_lint_defs Don't emit refining_impl_trait for private items 2023-09-07 01:31:32 +00:00
rustc_llvm Rollup merge of #115358 - durin42:compress-debuginfo, r=oli-obk 2023-09-09 00:28:19 +02:00
rustc_log
rustc_macros
rustc_metadata add is_host_effect to GenericParamDefKind::Const and address review 2023-09-11 13:18:36 +00:00
rustc_middle Rollup merge of #115743 - compiler-errors:no-impls, r=davidtwco 2023-09-11 17:03:32 +02:00
rustc_mir_build Refactor how MIR represents composite debuginfo. 2023-09-05 17:20:07 +00:00
rustc_mir_dataflow Correct comment and assumption. 2023-09-07 15:45:25 +00:00
rustc_mir_transform Auto merge of #115612 - cjgillot:const-prop-int, r=oli-obk 2023-09-08 15:32:54 +00:00
rustc_monomorphize Rollup merge of #115492 - Enselic:large-box-move, r=oli-obk 2023-09-05 07:15:16 +02:00
rustc_parse Rollup merge of #115596 - nnethercote:two-small-changes, r=lqd 2023-09-06 19:31:50 +02:00
rustc_parse_format Replace data_structures dependency with index in rustc_parse_format 2023-09-05 19:11:50 +02:00
rustc_passes Disentangle Debug and Display for Ty. 2023-09-11 12:51:07 +10:00
rustc_plugin_impl
rustc_privacy Rollup merge of #115727 - fee1-dead-contrib:effect-fallback, r=oli-obk 2023-09-11 17:03:31 +02:00
rustc_query_impl
rustc_query_system Auto merge of #115388 - Zoxc:sharded-lock, r=SparrowLii 2023-09-11 01:43:29 +00:00
rustc_resolve Rollup merge of #115744 - fmease:fix-e0401, r=compiler-errors 2023-09-11 17:03:32 +02:00
rustc_serialize Use a specialized varint + bitpacking scheme for DepGraph encoding 2023-09-04 12:16:50 -04:00
rustc_session Auto merge of #115656 - cjgillot:default-relative-spans, r=davidtwco 2023-09-11 10:46:55 +00:00
rustc_smir Rollup merge of #115727 - fee1-dead-contrib:effect-fallback, r=oli-obk 2023-09-11 17:03:31 +02:00
rustc_span Auto merge of #115594 - nnethercote:span-tweaks, r=cjgillot 2023-09-09 10:56:24 +00:00
rustc_symbol_mangling
rustc_target turns out Layout has some more things to worry about -- move ABI comparison into helper function 2023-09-08 09:14:07 +02:00
rustc_trait_selection Rollup merge of #115743 - compiler-errors:no-impls, r=davidtwco 2023-09-11 17:03:32 +02:00
rustc_traits
rustc_transmute Fix error report for size overflow from transmute 2023-09-06 06:48:34 +08:00
rustc_ty_utils Disentangle Debug and Display for Ty. 2023-09-11 12:51:07 +10:00
rustc_type_ir Use newtype_index for IntVid and FloatVid. 2023-09-07 17:31:35 +10:00