about summary refs log tree commit diff
path: root/compiler/rustc_ast
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2022-03-04 23:21:33 -0500
committerJack Huey <31162821+jackh726@users.noreply.github.com>2022-03-05 13:15:00 -0500
commit9dc05f383279765a4ab587c3972b73d93fbf3148 (patch)
tree8aa23d2735cf7316442ed3f21afbf5475250e0fa /compiler/rustc_ast
parent084c0f36efb44ccce8c523b6fdd9726aa5df6da1 (diff)
downloadrust-9dc05f383279765a4ab587c3972b73d93fbf3148.tar.gz
rust-9dc05f383279765a4ab587c3972b73d93fbf3148.zip
Add commment covering the case with no where clause
Diffstat (limited to 'compiler/rustc_ast')
-rw-r--r--compiler/rustc_ast/src/ast.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs
index ad1d4430c6b..3ba4c11e2c1 100644
--- a/compiler/rustc_ast/src/ast.rs
+++ b/compiler/rustc_ast/src/ast.rs
@@ -2677,6 +2677,8 @@ pub struct Trait {
 ///   //                 ^^^^^^^^^^^^^^ first where clause
 ///   //                                     ^^^^^^^^^^^^^^ second where clause
 /// }
+///
+/// If there is no where clause, then this is `false` with `DUMMY_SP`.
 /// ```
 #[derive(Copy, Clone, Encodable, Decodable, Debug, Default)]
 pub struct TyAliasWhereClause(pub bool, pub Span);