rust/compiler
Esteban Küber 8eb51852a8 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 00:00:04 +00:00
..
rustc
rustc_abi Fix unsafe_op_in_unsafe_fn in compiler 2024-07-16 00:02:44 -04:00
rustc_arena
rustc_ast Fix a bunch of sites that were walking instead of visiting, making it impossible for visitor impls to look at these values 2024-07-16 15:50:36 +00:00
rustc_ast_ir
rustc_ast_lowering
rustc_ast_passes Remove a boilerplaty abstraction 2024-07-16 15:46:45 +00:00
rustc_ast_pretty
rustc_attr
rustc_baked_icu_data
rustc_borrowck Rollup merge of #120990 - chenyukang:yukang-fix-120327-dbg, r=oli-obk 2024-07-16 02:02:23 -05:00
rustc_builtin_macros
rustc_codegen_cranelift Merge commit '659243d85c7489412bd0faa1c068d904a6042941' into sync_cg_clif-2024-07-13 2024-07-13 18:39:03 +00:00
rustc_codegen_gcc Remove lang feature for type ascription 2024-07-11 20:40:38 -04:00
rustc_codegen_llvm Fix unsafe_op_in_unsafe_fn in compiler 2024-07-16 00:02:44 -04:00
rustc_codegen_ssa Fix unsafe_op_in_unsafe_fn in compiler 2024-07-16 00:02:44 -04:00
rustc_const_eval Auto merge of #127638 - adwinwhite:cache_string, r=oli-obk 2024-07-16 02:41:07 +00:00
rustc_data_structures Use uplifted rustc-stable-hash crate in rustc_data_structures 2024-07-11 16:51:16 +02:00
rustc_driver
rustc_driver_impl
rustc_error_codes
rustc_error_messages
rustc_errors
rustc_expand Rollup merge of #127558 - nnethercote:more-Attribute-cleanups, r=petrochenkov 2024-07-13 20:19:46 -07: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 find_field does not need to be a query. 2024-07-14 13:25:25 +00:00
rustc_hir_pretty
rustc_hir_typeck Auto merge of #127629 - tesuji:suggest-option-ref-unwrap_or, r=estebank 2024-07-15 23:36:22 +00:00
rustc_incremental
rustc_index
rustc_index_macros
rustc_infer Rollup merge of #127619 - compiler-errors:precise-capturing-better-sugg, r=oli-obk 2024-07-12 13:47:09 -07:00
rustc_interface Rollup merge of #126502 - cuviper:dump-mir-exclude-alloc-bytes, r=estebank 2024-07-12 13:47:05 -07:00
rustc_lexer
rustc_lint Rollup merge of #127631 - compiler-errors:yeet-fully-norm, r=lcnr 2024-07-12 13:47:09 -07: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 Fix unsafe_op_in_unsafe_fn in compiler 2024-07-16 00:02:44 -04:00
rustc_log
rustc_macros Suppress some fallout from gen in synstructure 2024-07-14 14:22:11 -04:00
rustc_metadata
rustc_middle Rollup merge of #127808 - oli-obk:tainting_visitors2, r=lcnr,nnethercote 2024-07-16 18:09:12 +02:00
rustc_mir_build Rollup merge of #127707 - Zalathar:expand-until, r=Nadrieril 2024-07-16 18:09:09 +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
rustc_next_trait_solver enable fuzzing of SearchGraph 2024-07-12 06:30:19 -04:00
rustc_parse Rollup merge of #127407 - estebank:parser-suggestions, r=oli-obk 2024-07-15 21:11:48 +02: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
rustc_privacy
rustc_query_impl
rustc_query_system enable fuzzing of SearchGraph 2024-07-12 06:30:19 -04:00
rustc_resolve Accurate use rename suggestion span 2024-07-18 00:00:04 +00:00
rustc_sanitizers
rustc_serialize
rustc_session Auto merge of #127670 - compiler-errors:no-type-length-limit, r=jackh726 2024-07-14 12:44:07 +00:00
rustc_smir Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
rustc_span Fix unsafe_op_in_unsafe_fn in compiler 2024-07-16 00:02:44 -04:00
rustc_symbol_mangling
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 the issue of invalid suggestion for a reference of iterator 2024-07-16 22:01:55 +08:00
rustc_traits
rustc_transmute
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 Remove an unnecessary impl 2024-07-16 14:15:44 +00:00
rustc_type_ir_macros
stable_mir Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00