rust/compiler
Matthias Krüger 94e8a2448f
Rollup merge of #141474 - mejrs:diagnostic_mode, r=compiler-errors
Add `ParseMode::Diagnostic` and fix multiline spans in diagnostic attribute lints

Best viewed commit by commit.

The first commit is a test, the commits following that are small refactors to `rustc_parse_format`. Originally I wanted to do a much larger change (doing these smaller fixes first would have that made easier to review), but ended up doing something else instead.

An observable change from this is that the diagnostic attribute no longer tries to parse align/fill/width/etc parameters. For an example (see also test changes), a string like `"{Self:!}"` no longer says "missing '}'", instead it says that format parameters are not allowed. It'll now also format the string as if the user wrote just `"{Self}"`
2025-06-12 20:03:36 +02:00
..
rustc Revert "Use workspace lints for crates in compiler/ #138084" 2025-03-10 18:12:47 +08:00
rustc_abi compiler: add Deref to AbiAlign to ease transition 2025-06-08 16:41:48 -07:00
rustc_arena Introduce Arena::try_alloc_from_iter. 2025-04-19 01:13:18 +00:00
rustc_ast deduplicate the rest of AST walker functions 2025-06-09 21:59:20 +08:00
rustc_ast_ir Use -Wunused_crate_dependencies for compiler crates. 2025-03-20 08:59:43 +11:00
rustc_ast_lowering Remove all unused feature gates from the compiler 2025-06-08 14:50:42 +00:00
rustc_ast_passes Rollup merge of #141162 - mejrs:gated, r=fee1-dead 2025-06-12 20:03:35 +02:00
rustc_ast_pretty Reorder ast::ItemKind::{Struct,Enum,Union} fields. 2025-05-28 15:48:45 +10:00
rustc_attr_data_structures Delete unused variant and document AttributeKind 2025-06-06 11:43:22 +02:00
rustc_attr_parsing consistently rename (old) attribute groups 2025-06-11 18:46:57 +02:00
rustc_baked_icu_data Add unreachable_pub to RUSTC_LINT_FLAGS for compiler/ crates. 2025-03-11 13:14:21 +11:00
rustc_borrowck Auto merge of #141763 - lcnr:fixme-gamer, r=BoxyUwU 2025-06-11 11:47:05 +00:00
rustc_builtin_macros Remove all unused feature gates from the compiler 2025-06-08 14:50:42 +00:00
rustc_codegen_cranelift Remove rustc's notion of "preferred" alignment AKA __alignof 2025-06-08 16:41:46 -07:00
rustc_codegen_gcc Rollup merge of #141993 - tgross35:use-in-tree-builtins, r=bjorn3 2025-06-09 12:17:53 -05:00
rustc_codegen_llvm use #[naked] for __rust_probestack 2025-06-10 10:08:57 +02:00
rustc_codegen_ssa Rollup merge of #142352 - workingjubilee:c-int-width-is-an-integer, r=wesleywiser 2025-06-12 03:14:54 +02:00
rustc_const_eval Fix enter_trace_span!() using wrong $crate paths 2025-06-11 12:22:20 +02:00
rustc_data_structures Rollup merge of #142194 - bjorn3:less_unstable_features, r=jieyouxu 2025-06-08 17:17:58 -07:00
rustc_driver Remove recursion_limit increases. 2025-04-02 16:25:27 +11:00
rustc_driver_impl Rollup merge of #141072 - Rynibami:stabilize-const-result-flatten, r=jhpratt 2025-06-01 00:35:50 +02:00
rustc_error_codes intrinsics: use const generic to set atomic ordering 2025-06-07 21:45:58 +02:00
rustc_error_messages Fix review comments 2025-06-06 14:20:48 +00:00
rustc_errors Remove all unused feature gates from the compiler 2025-06-08 14:50:42 +00:00
rustc_expand Note the version and PR of removed features when using it 2025-06-09 17:10:58 +08:00
rustc_feature Rollup merge of #141162 - mejrs:gated, r=fee1-dead 2025-06-12 20:03:35 +02:00
rustc_fluent_macro Remove all unused feature gates from the compiler 2025-06-08 14:50:42 +00:00
rustc_fs_util Retry if creating temp fails with access denied 2025-04-25 11:28:36 +00:00
rustc_graphviz Remove #![warn(unreachable_pub)] from all compiler/ crates. 2025-03-11 13:14:21 +11:00
rustc_hashes Revert "Use workspace lints for crates in compiler/ #138084" 2025-03-10 18:12:47 +08:00
rustc_hir Remove all unused feature gates from the compiler 2025-06-08 14:50:42 +00:00
rustc_hir_analysis Auto merge of #141763 - lcnr:fixme-gamer, r=BoxyUwU 2025-06-11 11:47:05 +00:00
rustc_hir_pretty Reorder hir fn stuff. 2025-05-30 02:28:35 +10:00
rustc_hir_typeck Auto merge of #142127 - compiler-errors:nested-goals-certainty, r=lcnr 2025-06-12 11:29:20 +00:00
rustc_incremental Auto merge of #139758 - Zoxc:thread-local-graph, r=oli-obk 2025-05-07 12:39:54 +00:00
rustc_index index: add method for checking range on DenseBitSet 2025-06-04 00:47:12 +02:00
rustc_index_macros In rustc_mir_tranform, iterate over index newtypes instead of ints 2025-04-12 11:53:07 +00:00
rustc_infer Auto merge of #141763 - lcnr:fixme-gamer, r=BoxyUwU 2025-06-11 11:47:05 +00:00
rustc_interface Remove check_mod_loops query and run the checks per-body instead 2025-06-10 08:41:23 +00:00
rustc_lexer rustc_lexer: typo fix + small cleanups 2025-06-06 13:08:16 +00:00
rustc_lint Rollup merge of #141162 - mejrs:gated, r=fee1-dead 2025-06-12 20:03:35 +02:00
rustc_lint_defs add (back) unsupported_calling_conventions lint to reject more invalid calling conventions 2025-06-08 07:34:41 +02:00
rustc_llvm rustc_llvm: add Windows system libs only when cross-compiling from Windows 2025-05-31 15:47:14 +02:00
rustc_log Allow linking rustc and rustdoc against the same single tracing crate 2025-05-03 10:18:50 -07:00
rustc_macros Remove all unused feature gates from the compiler 2025-06-08 14:50:42 +00:00
rustc_metadata Remove useless and wrong std crates special casing when un-remap sysroot 2025-06-11 07:42:58 +02:00
rustc_middle Auto merge of #142358 - matthiaskrgr:rollup-fxe6m7k, r=matthiaskrgr 2025-06-11 17:51:57 +00:00
rustc_mir_build Rollup merge of #142047 - cuviper:s390x-stack, r=oli-obk 2025-06-06 00:58:45 +02:00
rustc_mir_dataflow update cfg(bootstrap) 2025-05-12 15:33:37 +02:00
rustc_mir_transform Auto merge of #141763 - lcnr:fixme-gamer, r=BoxyUwU 2025-06-11 11:47:05 +00:00
rustc_monomorphize Rollup merge of #141558 - Diggsey:db-limit-cgu-name-length, r=matthewjasper 2025-06-07 07:05:45 +02:00
rustc_next_trait_solver Auto merge of #141763 - lcnr:fixme-gamer, r=BoxyUwU 2025-06-11 11:47:05 +00:00
rustc_parse Rollup merge of #142261 - folkertdev:unstable-attr-correct-edition, r=compiler-errors 2025-06-12 03:14:52 +02:00
rustc_parse_format Add ParseMode::Diagnostic unit tests 2025-06-09 16:28:58 +02:00
rustc_passes Auto merge of #141883 - oli-obk:remove-check-mod-loops, r=nnethercote 2025-06-10 23:54:45 +00:00
rustc_pattern_analysis Use builin_index instead of hand-rolling it 2025-05-28 10:03:01 +00:00
rustc_privacy Reorder fields in hir::ItemKind variants. 2025-05-30 02:23:20 +10:00
rustc_proc_macro Do not get proc_macro from the sysroot in rustc 2025-05-27 15:49:28 +00:00
rustc_query_impl Auto merge of #140145 - Zoxc:job-server-proxy, r=SparrowLii 2025-05-01 04:11:52 +00:00
rustc_query_system Remove all unused feature gates from the compiler 2025-06-08 14:50:42 +00:00
rustc_resolve Rollup merge of #142157 - Enselic:trivial-anon-const-use-cases, r=compiler-errors 2025-06-12 03:14:51 +02:00
rustc_sanitizers Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
rustc_serialize Zero the buffer passed from write_with 2025-04-25 07:14:27 +02:00
rustc_session Rollup merge of #141162 - mejrs:gated, r=fee1-dead 2025-06-12 20:03:35 +02:00
rustc_smir Rollup merge of #141307 - b-naber:closure-body, r=celinval 2025-06-12 03:14:49 +02:00
rustc_span Rollup merge of #142194 - bjorn3:less_unstable_features, r=jieyouxu 2025-06-08 17:17:58 -07:00
rustc_symbol_mangling Rename unpack to kind 2025-05-27 11:14:45 +00:00
rustc_target compiler: Update all targets to the new c_int_width type 2025-06-11 00:42:14 -07:00
rustc_trait_selection Rollup merge of #141474 - mejrs:diagnostic_mode, r=compiler-errors 2025-06-12 20:03:36 +02:00
rustc_traits FIXME(-Znext-solver) triage 2025-06-03 14:23:56 +02:00
rustc_transmute transmutability: shift abstraction boundary 2025-06-09 14:08:12 +00:00
rustc_ty_utils Dont unwrap and re-wrap typing envs 2025-06-10 17:01:55 +00:00
rustc_type_ir Auto merge of #141763 - lcnr:fixme-gamer, r=BoxyUwU 2025-06-11 11:47:05 +00:00
rustc_type_ir_macros Split TypeFolder and FallibleTypeFolder 2025-04-15 18:30:35 +00:00
stable_mir Change rustc_driver dependency on stable_mir crate 2025-04-30 15:39:52 -07:00