Skip to content

Commit bd93741

Browse files
committed
remove outdated assertion
This dates from the days before we instantiated user types with inference variables.
1 parent 74ff7dc commit bd93741

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/librustc/infer/canonical/query_response.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
use infer::canonical::substitute::substitute_value;
2121
use infer::canonical::{
22-
Canonical, CanonicalVarKind, CanonicalVarValues, CanonicalizedQueryResponse, Certainty,
22+
Canonical, CanonicalVarValues, CanonicalizedQueryResponse, Certainty,
2323
OriginalQueryValues, QueryRegionConstraint, QueryResponse,
2424
};
2525
use infer::region_constraints::{Constraint, RegionConstraintData};
@@ -262,13 +262,6 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
262262
where
263263
R: Debug + TypeFoldable<'tcx>,
264264
{
265-
// In an NLL query, there should be no type variables in the
266-
// query, only region variables.
267-
debug_assert!(query_response.variables.iter().all(|v| match v.kind {
268-
CanonicalVarKind::Ty(_) => false,
269-
CanonicalVarKind::Region => true,
270-
}));
271-
272265
let result_subst =
273266
self.query_response_substitution_guess(cause, original_values, query_response);
274267

0 commit comments

Comments
 (0)