mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
SSR: A few small refactorings
This commit is contained in:
parent
a4a504e132
commit
29e6238cb7
4 changed files with 10 additions and 6 deletions
|
@ -1179,6 +1179,7 @@ fn replace_autoref_autoderef_capture() {
|
|||
// second, we already have a reference, so it isn't. When $a is used in a context where autoref
|
||||
// doesn't apply, we need to prefix it with `&`. Finally, we have some cases where autoderef
|
||||
// needs to be applied.
|
||||
mark::check!(replace_autoref_autoderef_capture);
|
||||
let code = r#"
|
||||
struct Foo {}
|
||||
impl Foo {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue