34//!
35//! Similarly generics, predicates and header are set to the "default" values.
36▶//! In case of discrepancy with callee function the `UnsupportedDelegation` error will
37//! also be emitted during HIR ty lowering.
38
· · ·
46use rustc_ast::*;
47use rustc_data_structures::fx::FxHashSet;
48▶use rustc_errors::ErrorGuaranteed;
49use rustc_hir::attrs::{AttributeKind, InlineAttr};
50use rustc_hir::def_id::DefId;
· · ·
57
58use crate::delegation::generics::{GenericsGenerationResult, GenericsGenerationResults};
59▶use crate::errors::{CycleInDelegationSignatureResolution, UnresolvedDelegationCallee};
60use crate::{
61 AllowReturnTypeNotation, GenericArgsMode, ImplTraitContext, ImplTraitPosition, LoweringContext,
· · ·
133 );
134
135▶ return self.generate_delegation_error(span, delegation);
136 };
137
· · ·
171 DelegationResults { body_id, sig, ident, generics }
172 }
173▶ Err(_) => self.generate_delegation_error(span, delegation),
174 }
175 }
+ 7 more matches in this file