mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Stop expanding UseTrees during ItemTree lowering
This commit is contained in:
parent
5587d0a3e3
commit
b52df91877
12 changed files with 320 additions and 188 deletions
|
@ -311,6 +311,7 @@ mod tests {
|
|||
/// * a diagnostic is produced
|
||||
/// * the first diagnostic fix trigger range touches the input cursor position
|
||||
/// * that the contents of the file containing the cursor match `after` after the diagnostic fix is applied
|
||||
#[track_caller]
|
||||
pub(crate) fn check_fix(ra_fixture_before: &str, ra_fixture_after: &str) {
|
||||
check_nth_fix(0, ra_fixture_before, ra_fixture_after);
|
||||
}
|
||||
|
@ -325,6 +326,7 @@ mod tests {
|
|||
}
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
fn check_nth_fix(nth: usize, ra_fixture_before: &str, ra_fixture_after: &str) {
|
||||
let after = trim_indent(ra_fixture_after);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue