mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
test: fix disallow_renaming_for_non_local_definition
to follow PR changes.
This commit is contained in:
parent
6e16edb3bf
commit
6dd5dc10ef
1 changed files with 3 additions and 2 deletions
|
@ -138,7 +138,7 @@ pub(crate) fn rename(
|
||||||
return rename_to_self(&sema, local);
|
return rename_to_self(&sema, local);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
def.rename(&sema, new_name, rename_external)
|
def.rename(&sema, new_name)
|
||||||
})
|
})
|
||||||
.collect(),
|
.collect(),
|
||||||
};
|
};
|
||||||
|
@ -2695,7 +2695,8 @@ use qux as frob;
|
||||||
//- /lib.rs crate:lib new_source_root:library
|
//- /lib.rs crate:lib new_source_root:library
|
||||||
pub struct S;
|
pub struct S;
|
||||||
//- /main.rs crate:main deps:lib new_source_root:local
|
//- /main.rs crate:main deps:lib new_source_root:local
|
||||||
use lib::S$0;
|
use lib::S;
|
||||||
|
fn main() { let _: S$0; }
|
||||||
"#,
|
"#,
|
||||||
"error: Cannot rename a non-local definition",
|
"error: Cannot rename a non-local definition",
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue