mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Rename *Owner
traits to Has*
This commit is contained in:
parent
a28c5d7311
commit
b6ed91a6de
101 changed files with 393 additions and 397 deletions
|
@ -636,7 +636,7 @@ impl FunctionBody {
|
|||
let mut ancestors = self.parent()?.ancestors();
|
||||
let infer_expr_opt = |expr| sema.type_of_expr(&expr?).map(TypeInfo::adjusted);
|
||||
let mut parent_loop = None;
|
||||
let mut set_parent_loop = |loop_: &dyn ast::LoopBodyOwner| {
|
||||
let mut set_parent_loop = |loop_: &dyn ast::HasLoopBody| {
|
||||
if loop_
|
||||
.loop_body()
|
||||
.map_or(false, |it| it.syntax().text_range().contains_range(self.text_range()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue