diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-08-11 09:32:26 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-08-14 14:14:26 -0700 |
| commit | 604af3f6c0be6ea428a55cfcb303fa1cd1c7958d (patch) | |
| tree | 5d4c22c593c4701b829fdaad19e55ff803c84de7 /src/librustdoc/doctree.rs | |
| parent | a8c8e3f80fd0355b2bb91337c6ad0bb0a38d5485 (diff) | |
| download | rust-604af3f6c0be6ea428a55cfcb303fa1cd1c7958d.tar.gz rust-604af3f6c0be6ea428a55cfcb303fa1cd1c7958d.zip | |
librustc: Implement simple `where` clauses.
These `where` clauses are accepted everywhere generics are currently accepted and desugar during type collection to the type parameter bounds we have today. A new keyword, `where`, has been added. Therefore, this is a breaking change. Change uses of `where` to other identifiers. [breaking-change]
Diffstat (limited to 'src/librustdoc/doctree.rs')
| -rw-r--r-- | src/librustdoc/doctree.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/librustdoc/doctree.rs b/src/librustdoc/doctree.rs index a5ead46384a..da45321e7fd 100644 --- a/src/librustdoc/doctree.rs +++ b/src/librustdoc/doctree.rs @@ -93,7 +93,7 @@ pub struct Struct { pub generics: ast::Generics, pub attrs: Vec<ast::Attribute>, pub fields: Vec<ast::StructField>, - pub where: Span, + pub whence: Span, } pub struct Enum { @@ -103,7 +103,7 @@ pub struct Enum { pub generics: ast::Generics, pub attrs: Vec<ast::Attribute>, pub id: NodeId, - pub where: Span, + pub whence: Span, pub name: Ident, } @@ -114,7 +114,7 @@ pub struct Variant { pub id: ast::NodeId, pub vis: ast::Visibility, pub stab: Option<attr::Stability>, - pub where: Span, + pub whence: Span, } pub struct Function { @@ -125,7 +125,7 @@ pub struct Function { pub vis: ast::Visibility, pub stab: Option<attr::Stability>, pub fn_style: ast::FnStyle, - pub where: Span, + pub whence: Span, pub generics: ast::Generics, } @@ -135,7 +135,7 @@ pub struct Typedef { pub name: Ident, pub id: ast::NodeId, pub attrs: Vec<ast::Attribute>, - pub where: Span, + pub whence: Span, pub vis: ast::Visibility, pub stab: Option<attr::Stability>, } @@ -149,7 +149,7 @@ pub struct Static { pub vis: ast::Visibility, pub stab: Option<attr::Stability>, pub id: ast::NodeId, - pub where: Span, + pub whence: Span, } pub struct Trait { @@ -159,7 +159,7 @@ pub struct Trait { pub parents: Vec<ast::TraitRef>, pub attrs: Vec<ast::Attribute>, pub id: ast::NodeId, - pub where: Span, + pub whence: Span, pub vis: ast::Visibility, pub stab: Option<attr::Stability>, } @@ -170,7 +170,7 @@ pub struct Impl { pub for_: ast::P<ast::Ty>, pub items: Vec<ast::ImplItem>, pub attrs: Vec<ast::Attribute>, - pub where: Span, + pub whence: Span, pub vis: ast::Visibility, pub stab: Option<attr::Stability>, pub id: ast::NodeId, @@ -180,7 +180,7 @@ pub struct Macro { pub name: Ident, pub id: ast::NodeId, pub attrs: Vec<ast::Attribute>, - pub where: Span, + pub whence: Span, pub stab: Option<attr::Stability>, } |
