mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Fix and prettify comments
This commit is contained in:
parent
251ef93ac3
commit
cc4e287bb5
1 changed files with 6 additions and 4 deletions
|
@ -202,8 +202,12 @@ impl<'a> chalk_solve::RustIrDatabase<Interner> for ChalkContext<'a> {
|
||||||
Some((trait_, alias))
|
Some((trait_, alias))
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
// AsyncBlock<T>: Future</* Self */>
|
// Making up `AsyncBlock<T>: Future<Output = T>`
|
||||||
// This is required by `fn impls_future` to check if we need to provide `.await` completion.
|
//
|
||||||
|
// |--------------------OpaqueTyDatum-------------------|
|
||||||
|
// |-------------OpaqueTyDatumBound--------------|
|
||||||
|
// for<T> <Self> [Future<Self>, Future::Output<Self> = T]
|
||||||
|
// ^1 ^0 ^0 ^0 ^1
|
||||||
let impl_bound = GenericPredicate::Implemented(TraitRef {
|
let impl_bound = GenericPredicate::Implemented(TraitRef {
|
||||||
trait_: future_trait,
|
trait_: future_trait,
|
||||||
// Self type as the first parameter.
|
// Self type as the first parameter.
|
||||||
|
@ -212,8 +216,6 @@ impl<'a> chalk_solve::RustIrDatabase<Interner> for ChalkContext<'a> {
|
||||||
index: 0,
|
index: 0,
|
||||||
})),
|
})),
|
||||||
});
|
});
|
||||||
// AsyncBlock<T>: Future</* Self, */ Output = T>;
|
|
||||||
// debruijn: ^1 ^0
|
|
||||||
let proj_bound = GenericPredicate::Projection(ProjectionPredicate {
|
let proj_bound = GenericPredicate::Projection(ProjectionPredicate {
|
||||||
// The parameter of the opaque type.
|
// The parameter of the opaque type.
|
||||||
ty: Ty::Bound(BoundVar { debruijn: DebruijnIndex::ONE, index: 0 }),
|
ty: Ty::Bound(BoundVar { debruijn: DebruijnIndex::ONE, index: 0 }),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue