rust/compiler
Matthias Krüger b52883decf
Rollup merge of #127886 - estebank:as-rename-suggestion, r=compiler-errors
Accurate `use` rename suggestion span

When suggesting to rename an import with `as`, use a smaller span to render the suggestion with a better format:

```
error[E0252]: the name `baz` is defined multiple times
  --> $DIR/issue-25396.rs:4:5
   |
LL | use foo::baz;
   |     -------- previous import of the module `baz` here
LL | use bar::baz;
   |     ^^^^^^^^ `baz` reimported here
   |
   = note: `baz` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | use bar::baz as other_baz;
   |              ++++++++++++
```
2024-07-18 08:09:01 +02:00
..
rustc The rustc crate feature is called jemalloc 2024-07-15 13:01:20 -04:00
rustc_abi Rollup merge of #127769 - compiler-errors:ed-2024-dep, r=oli-obk 2024-07-17 16:22:31 +02:00
rustc_arena
rustc_ast Rollup merge of #127806 - nnethercote:parser-improvements, r=spastorino 2024-07-17 19:53:27 -05:00
rustc_ast_ir Use dep: for crate dependencies 2024-07-15 12:40:10 -04:00
rustc_ast_lowering Delegation: support coercion for target expression 2024-07-16 18:03:15 +03:00
rustc_ast_passes Rollup merge of #126762 - compiler-errors:kw-lt, r=michaelwoerister 2024-07-16 16:15:15 -05:00
rustc_ast_pretty Rollup merge of #127092 - compiler-errors:rtn-dots-redux, r=estebank 2024-07-03 23:30:07 +02:00
rustc_attr
rustc_baked_icu_data
rustc_borrowck Rollup merge of #127810 - compiler-errors:less-tcx, r=lcnr 2024-07-18 08:09:00 +02:00
rustc_builtin_macros Rollup merge of #127308 - nnethercote:Attribute-cleanups, r=petrochenkov 2024-07-07 14:22:01 +02:00
rustc_codegen_cranelift Rollup merge of #124033 - bjorn3:ar_archive_writer_0_3_0, r=davidtwco 2024-07-16 16:15:13 -05:00
rustc_codegen_gcc Format cg_gcc with same formatting parameters 2024-07-17 20:22:07 +02:00
rustc_codegen_llvm Rollup merge of #124033 - bjorn3:ar_archive_writer_0_3_0, r=davidtwco 2024-07-16 16:15:13 -05:00
rustc_codegen_ssa Rollup merge of #127512 - eggyal:newline-terminate-print-linkargs, r=compiler-errors 2024-07-16 20:10:11 -05:00
rustc_const_eval Rollup merge of #126776 - nnethercote:rustfmt-use-pre-cleanups-2, r=cuviper 2024-07-16 20:10:10 -05:00
rustc_data_structures Use dep: for crate dependencies 2024-07-15 12:40:10 -04:00
rustc_driver
rustc_driver_impl Move codegen_and_build_linker from Queries to Linker 2024-07-01 11:00:49 +00:00
rustc_error_codes Correct description of E0502 2024-07-06 09:13:14 +03:00
rustc_error_messages
rustc_errors Rollup merge of #120248 - WaffleLapkin:bonk-ptr-object-casts, r=compiler-errors,oli-obk,lnicola 2024-07-08 16:28:15 +02:00
rustc_expand Rollup merge of #127542 - c410-f3r:concat-again, r=petrochenkov 2024-07-17 19:53:25 -05:00
rustc_feature Rollup merge of #127630 - compiler-errors:type-ascription, r=chenyukang 2024-07-14 20:24:59 +02:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Stop using the gen keyword in the compiler 2024-07-14 14:01:01 -04:00
rustc_hir_analysis Rollup merge of #127878 - estebank:assoc-item-removal, r=fmease 2024-07-18 08:09:01 +02:00
rustc_hir_pretty implement new effects desugaring 2024-06-28 10:57:35 +00:00
rustc_hir_typeck Rollup merge of #125042 - long-long-float:suggest-move-arg-outside, r=fmease 2024-07-17 16:22:26 +02:00
rustc_incremental
rustc_index Fix feature gating on rustc_index to not use implicit features 2024-07-15 12:44:24 -04:00
rustc_index_macros Remove usage of specialization from newtype_index! 2024-06-30 16:42:53 +00:00
rustc_infer Rollup merge of #127810 - compiler-errors:less-tcx, r=lcnr 2024-07-18 08:09:00 +02:00
rustc_interface Use dep: for crate dependencies 2024-07-15 12:40:10 -04:00
rustc_lexer
rustc_lint Avoid comments that describe multiple use items. 2024-07-17 08:02:46 +10:00
rustc_lint_defs Auto merge of #127097 - compiler-errors:async-closure-lint, r=oli-obk 2024-07-11 06:59:10 +00:00
rustc_llvm Rollup merge of #124033 - bjorn3:ar_archive_writer_0_3_0, r=davidtwco 2024-07-16 16:15:13 -05:00
rustc_log
rustc_macros lift_to_tcx -> lift_to_interner 2024-07-17 10:46:10 -04:00
rustc_metadata report pat no field error no recoverd struct variant 2024-07-11 00:18:47 +08:00
rustc_middle Rollup merge of #127810 - compiler-errors:less-tcx, r=lcnr 2024-07-18 08:09:00 +02:00
rustc_mir_build Rollup merge of #127472 - Zalathar:block-and-unit, r=fmease 2024-07-17 16:22:28 +02:00
rustc_mir_dataflow Stop using the gen keyword in the compiler 2024-07-14 14:01:01 -04:00
rustc_mir_transform coverage: Restrict ExpressionUsed simplification to Code mappings 2024-07-15 20:54:28 +10:00
rustc_monomorphize Auto merge of #113128 - WaffleLapkin:become_trully_unuwuable, r=oli-obk,RalfJung 2024-07-08 04:35:04 +00:00
rustc_next_trait_solver Use dep: for crate dependencies 2024-07-15 12:40:10 -04:00
rustc_parse Rollup merge of #127806 - nnethercote:parser-improvements, r=spastorino 2024-07-17 19:53:27 -05:00
rustc_parse_format
rustc_passes Report usage of lib features in ast validation 2024-07-10 16:53:41 -04:00
rustc_pattern_analysis Avoid comments that describe multiple use items. 2024-07-17 08:02:46 +10:00
rustc_privacy
rustc_query_impl
rustc_query_system Use dep: for crate dependencies 2024-07-15 12:40:10 -04:00
rustc_resolve Rollup merge of #127886 - estebank:as-rename-suggestion, r=compiler-errors 2024-07-18 08:09:01 +02:00
rustc_sanitizers Split out IntoIterator and non-Iterator constructors for AliasTy/AliasTerm/TraitRef/projection 2024-06-24 11:28:21 -04:00
rustc_serialize chore: remove duplicate words 2024-07-02 11:25:31 +08:00
rustc_session Auto merge of #127670 - compiler-errors:no-type-length-limit, r=jackh726 2024-07-14 12:44:07 +00:00
rustc_smir Avoid comments that describe multiple use items. 2024-07-17 08:02:46 +10:00
rustc_span Fix unsafe_op_in_unsafe_fn in compiler 2024-07-16 00:02:44 -04:00
rustc_symbol_mangling Fix FnMut/Fn shim for coroutine-closures that capture references 2024-06-29 17:38:02 -04:00
rustc_target Auto merge of #127265 - harmou01:dev/harmou01/target-spec-metadata, r=Nilstrieb 2024-07-15 08:37:39 +00:00
rustc_trait_selection Fix relations 2024-07-17 10:46:10 -04:00
rustc_traits Split out overflow handling into its own module 2024-07-09 09:51:56 -04:00
rustc_transmute Use dep: for crate dependencies 2024-07-15 12:40:10 -04:00
rustc_ty_utils Auto merge of #123351 - beetrees:x86-ret-snan-rust, r=nikic,workingjubilee 2024-07-12 20:36:43 +00:00
rustc_type_ir Rollup merge of #127810 - compiler-errors:less-tcx, r=lcnr 2024-07-18 08:09:00 +02:00
rustc_type_ir_macros lift_to_tcx -> lift_to_interner 2024-07-17 10:46:10 -04:00
stable_mir Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00