about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2018-02-27 12:09:40 -0700
committerSean Griffin <sean@seantheprogrammer.com>2018-03-01 08:04:26 -0700
commita6d85332f4f16167725c12d48700fd96e7acaa2a (patch)
tree57b434e6706a37cff53135746a092579b89f082e
parente9eb1a6adc1193a623ad7495f01a4c4125e49ce6 (diff)
downloadrust-a6d85332f4f16167725c12d48700fd96e7acaa2a.tar.gz
rust-a6d85332f4f16167725c12d48700fd96e7acaa2a.zip
Fix breakage in rustdoc
-rw-r--r--src/librustdoc/clean/auto_trait.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/librustdoc/clean/auto_trait.rs b/src/librustdoc/clean/auto_trait.rs
index 3654de6fb2e..370fc9bbca2 100644
--- a/src/librustdoc/clean/auto_trait.rs
+++ b/src/librustdoc/clean/auto_trait.rs
@@ -681,12 +681,17 @@ impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx> {
             computed_preds.extend(user_computed_preds.iter().cloned());
             let normalized_preds =
                 traits::elaborate_predicates(tcx, computed_preds.clone().into_iter().collect());
-            new_env = ty::ParamEnv::new(tcx.mk_predicates(normalized_preds), param_env.reveal);
+            new_env = ty::ParamEnv::new(
+                tcx.mk_predicates(normalized_preds),
+                param_env.reveal,
+                ty::UniverseIndex::ROOT,
+            );
         }
 
         let final_user_env = ty::ParamEnv::new(
             tcx.mk_predicates(user_computed_preds.into_iter()),
             user_env.reveal,
+            ty::UniverseIndex::ROOT,
         );
         debug!(
             "evaluate_nested_obligations(ty_did={:?}, trait_did={:?}): succeeded with '{:?}' \