Skip to content

Commit 61a632e

Browse files
committed
fix comment about placeholders
1 parent f02672c commit 61a632e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler/rustc_next_trait_solver/src/placeholder.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ where
3232
Infcx: InferCtxtLike<Interner = I>,
3333
I: Interner,
3434
{
35-
/// Returns `Some` if we *were* able to replace bound vars. If there are any bound vars that
36-
/// use a binding level above `universe_indices.len()`, we fail.
35+
/// Returns a type with all bound vars replaced by placeholders,
36+
/// together with mappings from the new placeholders back to the original variable.
37+
///
38+
/// Panics if there are any bound vars that use a binding level above `universe_indices.len()`.
3739
pub fn replace_bound_vars<T: TypeFoldable<I>>(
3840
infcx: &'a Infcx,
3941
universe_indices: &'a mut Vec<Option<ty::UniverseIndex>>,

0 commit comments

Comments
 (0)