Address review comments

This commit is contained in:
Jonas Schievink 2020-06-26 12:04:11 +02:00
parent 8a96815d00
commit c441306427

View file

@ -281,6 +281,7 @@ pub fn iterate_method_candidates<T>(
name, name,
mode, mode,
&mut |ty, item| { &mut |ty, item| {
assert!(slot.is_none());
slot = callback(ty, item); slot = callback(ty, item);
slot.is_some() slot.is_some()
}, },
@ -288,7 +289,7 @@ pub fn iterate_method_candidates<T>(
slot slot
} }
pub fn iterate_method_candidates_impl( fn iterate_method_candidates_impl(
ty: &Canonical<Ty>, ty: &Canonical<Ty>,
db: &dyn HirDatabase, db: &dyn HirDatabase,
env: Arc<TraitEnvironment>, env: Arc<TraitEnvironment>,