about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2017-12-19 04:18:15 -0500
committerNiko Matsakis <niko@alum.mit.edu>2017-12-19 04:18:15 -0500
commit03bfb0f31670364a47ddf14db068bf47e291e6ba (patch)
tree42d4625963abffc55e533785e785ecc003fc07d3
parent4f43c5b1e78115083254e6df12e0d34f7da9748b (diff)
downloadrust-03bfb0f31670364a47ddf14db068bf47e291e6ba.tar.gz
rust-03bfb0f31670364a47ddf14db068bf47e291e6ba.zip
tweak comment on `TypeTest` to be more accurate
-rw-r--r--src/librustc_mir/borrow_check/nll/region_infer/mod.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librustc_mir/borrow_check/nll/region_infer/mod.rs b/src/librustc_mir/borrow_check/nll/region_infer/mod.rs
index 36b59d9fb7d..e2a36e6863e 100644
--- a/src/librustc_mir/borrow_check/nll/region_infer/mod.rs
+++ b/src/librustc_mir/borrow_check/nll/region_infer/mod.rs
@@ -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.
 ///