Searched refs:is_impl_trait (Results 1 – 6 of 6) sorted by relevance
105 if trait_predicate.trait_ref.self_ty().is_impl_trait() { in check_item()
2185 let is_impl_trait = bound_kind.to_string().starts_with("impl "); in construct_generic_bound_failure() localVariable2186 let sp = if has_bounds && !is_impl_trait { in construct_generic_bound_failure()2195 (sp, has_bounds, is_impl_trait) in construct_generic_bound_failure()2262 if let Some((sp, has_lifetimes, is_impl_trait)) = type_param_span { in construct_generic_bound_failure()2263 let suggestion = if is_impl_trait { in construct_generic_bound_failure()2279 if type_param_span.map_or(false, |(_, _, is_impl_trait)| is_impl_trait) { in construct_generic_bound_failure()2294 if let Some((sp, has_lifetimes, is_impl_trait)) = type_param_span { in construct_generic_bound_failure()2295 let suggestion = if is_impl_trait { in construct_generic_bound_failure()
505 |ty: Ty<'_>| &ty.to_string() != "_" && !ty.is_impl_trait(); in emit_inference_failure_err()
454 fn is_impl_trait(param: &hir::GenericParam<'_>) -> bool { in clean() function475 .filter(|param| is_impl_trait(param)) in clean()490 for p in self.params.iter().filter(|p| !is_impl_trait(p) && !is_elided_lifetime(p)) { in clean()
2019 pub fn is_impl_trait(&self) -> bool { in is_impl_trait() method
1543 if output.is_impl_trait() { in return_type_impl_trait()