Skip to content

Commit 29dc902

Browse files
committed
remove dead code
1 parent d326738 commit 29dc902

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/librustc/infer/canonical.rs

-11
Original file line numberDiff line numberDiff line change
@@ -518,17 +518,6 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
518518
}
519519
}
520520

521-
impl<'cx, 'gcx> TyCtxt<'cx, 'gcx, 'gcx> {
522-
/// Canonicalize a value that doesn't have any inference variables
523-
/// or other things (and we know it).
524-
pub fn canonicalize_global<V>(self, value: &V) -> (V::Canonicalized, CanonicalVarValues<'gcx>)
525-
where
526-
V: Canonicalize<'gcx, 'gcx>,
527-
{
528-
Canonicalizer::canonicalize(value, None, self, CanonicalizeAllFreeRegions(false))
529-
}
530-
}
531-
532521
/// If this flag is true, then all free regions will be replaced with
533522
/// a canonical var. This is used to make queries as generic as
534523
/// possible. For example, the query `F: Foo<'static>` would be

0 commit comments

Comments
 (0)