]> git.lizzy.rs Git - rust.git/commitdiff
tweak comment on `TypeTest` to be more accurate
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 19 Dec 2017 09:18:15 +0000 (04:18 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Tue, 19 Dec 2017 09:18:15 +0000 (04:18 -0500)
src/librustc_mir/borrow_check/nll/region_infer/mod.rs

index 36b59d9fb7d33f7d87ce6d59564912b207dc45a4..e2a36e6863ee24647f04f713282f5238c7a73b64 100644 (file)
@@ -122,10 +122,12 @@ pub struct Constraint {
 /// checks that they meet certain extra criteria.  If not, an error
 /// can be issued.
 ///
-/// One reason for this is that these type tests always boil down to a
-/// check like `'a: 'x` where `'a` is a universally quantified region
-/// -- and therefore not one whose value is really meant to be
-/// *inferred*, precisely. Another reason is that these type tests can
+/// One reason for this is that these type tests typically boil down
+/// to a check like `'a: 'x` where `'a` is a universally quantified
+/// region -- and therefore not one whose value is really meant to be
+/// *inferred*, precisely (this is not always the case: one can have a
+/// type test like `<Foo as Trait<'?0>>::Bar: 'x`, where `'?0` is an
+/// inference variable). Another reason is that these type tests can
 /// involve *disjunction* -- that is, they can be satisfied in more
 /// than one way.
 ///