mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Revise TypeInfo::ty usage
This commit is contained in:
parent
25ff7171c4
commit
8afa2722b2
18 changed files with 30 additions and 29 deletions
|
@ -555,7 +555,7 @@ fn highlight_method_call(
|
|||
if let Some(receiver_ty) =
|
||||
method_call.receiver().and_then(|it| sema.type_of_expr(&it))
|
||||
{
|
||||
if !receiver_ty.ty.is_copy(sema.db) {
|
||||
if !receiver_ty.coerced().is_copy(sema.db) {
|
||||
h |= HlMod::Consuming
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue