We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f02672c commit 61a632eCopy full SHA for 61a632e
compiler/rustc_next_trait_solver/src/placeholder.rs
@@ -32,8 +32,10 @@ where
32
Infcx: InferCtxtLike<Interner = I>,
33
I: Interner,
34
{
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.
+ /// Returns a type with all bound vars replaced by placeholders,
+ /// 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()`.
39
pub fn replace_bound_vars<T: TypeFoldable<I>>(
40
infcx: &'a Infcx,
41
universe_indices: &'a mut Vec<Option<ty::UniverseIndex>>,
0 commit comments