Use bitflags to compress function properties

Very minor savings, only 1 MB or so
This commit is contained in:
Jonas Schievink 2021-04-03 20:58:42 +02:00
parent f7e6b186e1
commit ee4b5a34d8
11 changed files with 120 additions and 71 deletions

View file

@ -675,7 +675,7 @@ fn is_valid_candidate(
}
}
if let Some(receiver_ty) = receiver_ty {
if !data.has_self_param {
if !data.has_self_param() {
return false;
}
let transformed_receiver_ty = match transform_receiver_ty(db, m, self_ty) {