Skip to content

Commit 21aaaac

Browse files
committed
remove all occurences of skolemize
1 parent cdb95b0 commit 21aaaac

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/librustc/infer/higher_ranked/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Now we compare the return types, which are covariant, and hence we have:
159159

160160
fn(&'A T) <: for<'b> fn(&'b T)?
161161

162-
Here we skolemize the bound region in the supertype to yield:
162+
Here we replace the bound region in the supertype with a placeholder to yield:
163163

164164
fn(&'A T) <: fn(&'x T)?
165165

src/librustc/infer/higher_ranked/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
602602
}))
603603
});
604604

605-
debug!("skolemize_bound_regions(binder={:?}, result={:?}, map={:?})",
605+
debug!("replace_late_bound_regions_with_placeholders(binder={:?}, result={:?}, map={:?})",
606606
binder,
607607
result,
608608
map);

src/librustc/traits/select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
11901190
}
11911191
}
11921192

1193-
// Check the cache. Note that we skolemize the trait-ref
1193+
// Check the cache. Note that we freshen the trait-ref
11941194
// separately rather than using `stack.fresh_trait_ref` --
11951195
// this is because we want the unbound variables to be
11961196
// replaced with fresh types starting from index 0.

src/librustc/ty/sty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ impl<'tcx> PolyExistentialTraitRef<'tcx> {
743743
/// Binder is a binder for higher-ranked lifetimes. It is part of the
744744
/// compiler's representation for things like `for<'a> Fn(&'a isize)`
745745
/// (which would be represented by the type `PolyTraitRef ==
746-
/// Binder<TraitRef>`). Note that when we skolemize, instantiate,
746+
/// Binder<TraitRef>`). Note that when we instantiate,
747747
/// erase, or otherwise "discharge" these bound regions, we change the
748748
/// type from `Binder<T>` to just `T` (see
749749
/// e.g. `liberate_late_bound_regions`).

0 commit comments

Comments
 (0)