Skip to content

Commit c805e81

Browse files
committed
Fix doc comments
1 parent b2b82f7 commit c805e81

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/librustc/infer/nll_relate/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
//! Here are the key differences:
1717
//!
1818
//! - This code may choose to bypass some checks (e.g. the occurs check)
19-
//! in case we know that there are no unbound type inference variables.
20-
//! This is the case for NLL, because at NLL time types are fully inferred
21-
//! up-to regions.
19+
//! in the case where we know that there are no unbound type inference
20+
//! variables. This is the case for NLL, because at NLL time types are fully
21+
//! inferred up-to regions.
2222
//! - This code uses "universes" to handle higher-ranked regions and
2323
//! not the leak-check. This is "more correct" than what rustc does
2424
//! and we are generally migrating in this direction, but NLL had to
2525
//! get there first.
2626
//!
27-
//! Also, this code assumes that there are no bound type vars at all, not even
27+
//! Also, this code assumes that there are no bound types at all, not even
2828
//! free ones. This is ok because:
2929
//! - we are not relating anything quantified over some type variable
3030
//! - we will have instantiated all the bound type vars already (the one
@@ -265,7 +265,7 @@ where
265265
}
266266

267267
/// Relate a projection type and some value type lazily. This will always
268-
/// succeed, but we are pushing an additional `ProjectionEq` goal depending
268+
/// succeed, but we push an additional `ProjectionEq` goal depending
269269
/// on the value type:
270270
/// - if the value type is any type `T` which is not a projection, we push
271271
/// `ProjectionEq(projection = T)`.

src/librustc_mir/borrow_check/nll/type_check/relate_tys.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl TypeRelatingDelegate<'tcx> for NllTypeRelatingDelegate<'_, '_, '_, 'tcx> {
118118
}
119119

120120
fn push_domain_goal(&mut self, _: DomainGoal<'tcx>) {
121-
// No-op
121+
bug!("should never be invoked with eager normalization")
122122
}
123123

124124
fn normalization() -> NormalizationStrategy {

0 commit comments

Comments
 (0)