rust/compiler/rustc_metadata/src
bors 95561b336c Auto merge of #94584 - pnkfelix:inject-use-suggestion-sites, r=ekuber
More robust fallback for `use` suggestion

Our old way to suggest where to add `use`s would first look for pre-existing `use`s in the relevant crate/module, and if there are *no* uses, it would fallback on trying to use another item as the basis for the suggestion.

But this was fragile, as illustrated in issue #87613

This PR instead identifies span of the first token after any inner attributes, and uses *that* as the fallback for the `use` suggestion.

Fix #87613
2022-03-15 03:56:33 +00:00
..
rmeta Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
creader.rs Associate multiple with a crate too. 2022-03-03 18:45:25 -05:00
dependency_format.rs Move rustc_middle::middle::cstore to rustc_session. 2021-10-03 16:08:51 +02:00
foreign_modules.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
lib.rs Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00
locator.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
native_libs.rs Clarify Layout interning. 2022-03-07 13:41:47 +11:00