about summary refs log tree commit diff
path: root/src/librustc/ty/structural_impls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc/ty/structural_impls.rs')
-rw-r--r--src/librustc/ty/structural_impls.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/structural_impls.rs b/src/librustc/ty/structural_impls.rs
index 883f43258d8..3064e337039 100644
--- a/src/librustc/ty/structural_impls.rs
+++ b/src/librustc/ty/structural_impls.rs
@@ -432,7 +432,7 @@ impl<'tcx> TypeFoldable<'tcx> for ty::TraitObject<'tcx> {
         ty::TraitObject::new(
             self.principal().map(|p| p.fold_with(folder)),
             self.region_bound.fold_with(folder),
-            self.builtin_bounds,
+            self.auto_traits().collect(),
             self.projection_bounds.fold_with(folder),
         )
     }