Skip to content

Commit b7e849b

Browse files
committed
infer/mod.rs: add doc comment to RFC1214 variant
1 parent ff39ee9 commit b7e849b

File tree

1 file changed

+3
-0
lines changed
  • src/librustc/middle/infer

1 file changed

+3
-0
lines changed

src/librustc/middle/infer/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ pub struct TypeTrace<'tcx> {
189189
/// See `error_reporting.rs` for more details
190190
#[derive(Clone, Debug)]
191191
pub enum SubregionOrigin<'tcx> {
192+
// Marker to indicate a constraint that only arises due to new
193+
// provisions from RFC 1214. This will result in a warning, not an
194+
// error.
192195
RFC1214Subregion(Rc<SubregionOrigin<'tcx>>),
193196

194197
// Arose from a subtyping relation

0 commit comments

Comments
 (0)