Skip to content

Commit 03bfb0f

Browse files
committed
tweak comment on TypeTest to be more accurate
1 parent 4f43c5b commit 03bfb0f

File tree

1 file changed

+6
-4
lines changed
  • src/librustc_mir/borrow_check/nll/region_infer

1 file changed

+6
-4
lines changed

src/librustc_mir/borrow_check/nll/region_infer/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,12 @@ pub struct Constraint {
122122
/// checks that they meet certain extra criteria. If not, an error
123123
/// can be issued.
124124
///
125-
/// One reason for this is that these type tests always boil down to a
126-
/// check like `'a: 'x` where `'a` is a universally quantified region
127-
/// -- and therefore not one whose value is really meant to be
128-
/// *inferred*, precisely. Another reason is that these type tests can
125+
/// One reason for this is that these type tests typically boil down
126+
/// to a check like `'a: 'x` where `'a` is a universally quantified
127+
/// region -- and therefore not one whose value is really meant to be
128+
/// *inferred*, precisely (this is not always the case: one can have a
129+
/// type test like `<Foo as Trait<'?0>>::Bar: 'x`, where `'?0` is an
130+
/// inference variable). Another reason is that these type tests can
129131
/// involve *disjunction* -- that is, they can be satisfied in more
130132
/// than one way.
131133
///

0 commit comments

Comments
 (0)