rust/compiler/rustc_resolve/src
bors 53728ff751 Auto merge of #103185 - chenyukang:yukang/fix-span-next-point, r=davidtwco
Fix the bug of next_point in source_map

There is a bug in `next_point`, the new span won't move to next position when be called in the first time.

For this reason, our current code is working like this:
1. When we really want to move to the next position, we called two times of `next_point`
2. Some code which use `next_point` actually done the same thing with `shrink_to_hi`

This fix make sure when `next_point` is called, span will move with the width at least 1, and also work correctly in the scenario of multiple bytes.

Ref: https://github.com/rust-lang/rust/pull/103140#discussion_r997710998

r? `@davidtwco`
2022-10-20 10:40:09 +00:00
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late Fix the bug of next_point in span 2022-10-18 02:59:38 +08:00
access_levels.rs Populate effective visibilities in 'rustc_resolve' 2022-10-16 21:47:14 +03:00
build_reduced_graph.rs rustc_hir: Less error-prone methods for accessing PartialRes resolution 2022-10-11 09:04:52 +04:00
check_unused.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00
def_collector.rs Rename AssocItemKind::TyAlias to AssocItemKind::Type 2022-10-10 02:31:37 +00:00
diagnostics.rs Rollup merge of #102913 - SparrowLii:import-candidate, r=compiler-errors 2022-10-12 11:11:26 +05:30
ident.rs Shrink hir::def::Res. 2022-09-29 08:44:52 +10:00
imports.rs resolve: Shadow erroneous glob imports with erroneous single imports 2022-10-16 00:10:16 +04:00
late.rs Rollup merge of #103216 - cjgillot:issue-103210, r=jackh726 2022-10-19 14:05:54 +05:30
lib.rs more dupe word typos 2022-10-14 12:57:56 +08:00
macros.rs rustc_hir: Less error-prone methods for accessing PartialRes resolution 2022-10-11 09:04:52 +04:00