]> git.lizzy.rs Git - rust.git/commitdiff
infer/mod.rs: add doc comment to RFC1214 variant
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 11 Aug 2015 13:05:50 +0000 (09:05 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 12 Aug 2015 21:58:57 +0000 (17:58 -0400)
src/librustc/middle/infer/mod.rs

index 61c166e11d28023d115bce1ce913e8ea723f7508..578b39af88cb42f7b3cc95f7669de7b14d0162b1 100644 (file)
@@ -189,6 +189,9 @@ pub struct TypeTrace<'tcx> {
 /// See `error_reporting.rs` for more details
 #[derive(Clone, Debug)]
 pub enum SubregionOrigin<'tcx> {
+    // Marker to indicate a constraint that only arises due to new
+    // provisions from RFC 1214. This will result in a warning, not an
+    // error.
     RFC1214Subregion(Rc<SubregionOrigin<'tcx>>),
 
     // Arose from a subtyping relation