diff options
author | Jonas Schievink <[email protected]> | 2021-04-03 19:58:42 +0100 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-04-03 19:58:42 +0100 |
commit | ee4b5a34d8aa789ebc521926123fba79eebe5981 (patch) | |
tree | 9e5444bdd56ad6725525764d9f35a20f927b2209 /crates/hir_ty/src/method_resolution.rs | |
parent | f7e6b186e1d2f3a31b8e21d0885e13f12f12d71b (diff) |
Use bitflags to compress function properties
Very minor savings, only 1 MB or so
Diffstat (limited to 'crates/hir_ty/src/method_resolution.rs')
-rw-r--r-- | crates/hir_ty/src/method_resolution.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/method_resolution.rs b/crates/hir_ty/src/method_resolution.rs index 338851fa8..c093fce20 100644 --- a/crates/hir_ty/src/method_resolution.rs +++ b/crates/hir_ty/src/method_resolution.rs | |||
@@ -675,7 +675,7 @@ fn is_valid_candidate( | |||
675 | } | 675 | } |
676 | } | 676 | } |
677 | if let Some(receiver_ty) = receiver_ty { | 677 | if let Some(receiver_ty) = receiver_ty { |
678 | if !data.has_self_param { | 678 | if !data.has_self_param() { |
679 | return false; | 679 | return false; |
680 | } | 680 | } |
681 | let transformed_receiver_ty = match transform_receiver_ty(db, m, self_ty) { | 681 | let transformed_receiver_ty = match transform_receiver_ty(db, m, self_ty) { |