mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Simplify
This commit is contained in:
parent
1ef4b2cb7b
commit
a044175412
18 changed files with 91 additions and 86 deletions
|
@ -885,12 +885,9 @@ fn reference_is_exclusive(
|
|||
|
||||
/// checks if this expr requires `&mut` access, recurses on field access
|
||||
fn expr_require_exclusive_access(ctx: &AssistContext, expr: &ast::Expr) -> Option<bool> {
|
||||
match expr {
|
||||
ast::Expr::MacroCall(_) => {
|
||||
// FIXME: expand macro and check output for mutable usages of the variable?
|
||||
return None;
|
||||
}
|
||||
_ => (),
|
||||
if let ast::Expr::MacroCall(_) = expr {
|
||||
// FIXME: expand macro and check output for mutable usages of the variable?
|
||||
return None;
|
||||
}
|
||||
|
||||
let parent = expr.syntax().parent()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue