Home
last modified time | relevance | path

Searched refs:is_impl_trait (Results 1 – 6 of 6) sorted by relevance

/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_lint/src/
H A Dtraits.rs105 if trait_predicate.trait_ref.self_ty().is_impl_trait() { in check_item()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_infer/src/infer/error_reporting/
H A Dmod.rs2185 let is_impl_trait = bound_kind.to_string().starts_with("impl "); in construct_generic_bound_failure() localVariable
2186 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()
H A Dneed_type_info.rs505 |ty: Ty<'_>| &ty.to_string() != "_" && !ty.is_impl_trait(); in emit_inference_failure_err()
/dports/lang/rust/rustc-1.58.1-src/src/librustdoc/clean/
H A Dmod.rs454 fn is_impl_trait(param: &hir::GenericParam<'_>) -> bool { in clean() function
475 .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()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/ty/
H A Dsty.rs2019 pub fn is_impl_trait(&self) -> bool { in is_impl_trait() method
H A Dcontext.rs1543 if output.is_impl_trait() { in return_type_impl_trait()