We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 485111c commit 1f61f36Copy full SHA for 1f61f36
src/librustc_typeck/check/wfcheck.rs
@@ -482,6 +482,9 @@ fn check_associated_type_defaults(
482
/// substitution forces the trait to add a `B: Clone` bound to be accepted,
483
/// which means that an `impl` can replace any default without breaking
484
/// others.
485
+ ///
486
+ /// Note that this isn't needed for soundness: The defaults would still be
487
+ /// checked in any impl that doesn't override them.
488
struct DefaultNormalizer<'tcx> {
489
tcx: TyCtxt<'tcx>,
490
map: FxHashMap<ty::ProjectionTy<'tcx>, Ty<'tcx>>,
0 commit comments