diff options
| author | Michael Goulet <michael@errs.io> | 2023-07-03 15:27:41 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-07-03 21:40:04 +0000 |
| commit | 0c73b41cd69c33b76ba2a833bf8bd94a95e73ccb (patch) | |
| tree | f10552ff044bed6c09e81b4ac239efe06c0b3545 /compiler/rustc_trait_selection/src/traits/auto_trait.rs | |
| parent | c6fcbaae0f11f3f7d7827f946e8ca9a44c1da3ef (diff) | |
| download | rust-0c73b41cd69c33b76ba2a833bf8bd94a95e73ccb.tar.gz rust-0c73b41cd69c33b76ba2a833bf8bd94a95e73ccb.zip | |
remove TypeWellFormedFromEnv
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/auto_trait.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/auto_trait.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/auto_trait.rs b/compiler/rustc_trait_selection/src/traits/auto_trait.rs index fb6bf7211b9..cb42281152d 100644 --- a/compiler/rustc_trait_selection/src/traits/auto_trait.rs +++ b/compiler/rustc_trait_selection/src/traits/auto_trait.rs @@ -836,9 +836,6 @@ impl<'tcx> AutoTraitFinder<'tcx> { // FIXME(generic_const_exprs): you can absolutely add this as a where clauses | ty::PredicateKind::Clause(ty::ClauseKind::ConstEvaluatable(..)) | ty::PredicateKind::Coerce(..) => {} - ty::PredicateKind::Clause(ty::ClauseKind::TypeWellFormedFromEnv(..)) => { - bug!("predicate should only exist in the environment: {bound_predicate:?}") - } ty::PredicateKind::Ambiguous => return false, }; } |
