Skip to content

Commit 8ab3783

Browse files
committed
---
yaml --- r: 191015 b: refs/heads/auto c: 084f3bc h: refs/heads/master i: 191013: 7d853ff 191011: 5af50b8 191007: cbbf80f v: v3
1 parent f508d91 commit 8ab3783

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: b08d5eee6a1bb3aaf7385c84b255be964caff9d1
13+
refs/heads/auto: 084f3bcfd4e378d5c2b6daccda5c963c757c1bc5
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libsyntax/ast.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,7 @@ pub enum UnOp {
678678
UnNeg
679679
}
680680

681+
/// A statement
681682
pub type Stmt = Spanned<Stmt_>;
682683

683684
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
@@ -722,6 +723,7 @@ pub enum LocalSource {
722723
pub struct Local {
723724
pub pat: P<Pat>,
724725
pub ty: Option<P<Ty>>,
726+
/// Initializer expression to set the value, if any
725727
pub init: Option<P<Expr>>,
726728
pub id: NodeId,
727729
pub span: Span,
@@ -768,6 +770,7 @@ pub enum UnsafeSource {
768770
UserProvided,
769771
}
770772

773+
/// An expression
771774
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
772775
pub struct Expr {
773776
pub id: NodeId,
@@ -981,7 +984,6 @@ pub enum KleeneOp {
981984
/// The RHS of an MBE macro is the only place `SubstNt`s are substituted.
982985
/// Nothing special happens to misnamed or misplaced `SubstNt`s.
983986
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
984-
#[doc="For macro invocations; parsing is delegated to the macro"]
985987
pub enum TokenTree {
986988
/// A single token
987989
TtToken(Span, token::Token),
@@ -1092,10 +1094,14 @@ pub enum Mac_ {
10921094

10931095
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]
10941096
pub enum StrStyle {
1097+
/// A regular string, like `"fooo"`
10951098
CookedStr,
1099+
/// A raw string, like `r##"foo"##`
1100+
/// The uint is the number of `#` symbols used
10961101
RawStr(usize)
10971102
}
10981103

1104+
/// A literal
10991105
pub type Lit = Spanned<Lit_>;
11001106

11011107
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]
@@ -1133,13 +1139,21 @@ impl LitIntType {
11331139

11341140
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
11351141
pub enum Lit_ {
1142+
/// A string literal (`"foo"`)
11361143
LitStr(InternedString, StrStyle),
1144+
/// A byte string (`b"foo"`)
11371145
LitBinary(Rc<Vec<u8>>),
1146+
/// A byte char (`b'f'`)
11381147
LitByte(u8),
1148+
/// A character literal (`'a'`)
11391149
LitChar(char),
1150+
/// An integer liteal (`1u8`)
11401151
LitInt(u64, LitIntType),
1152+
/// A float literal (`1f64` or `1E10f64`)
11411153
LitFloat(InternedString, FloatTy),
1154+
/// A float literal without a suffix (`1.0 or 1.0E10`)
11421155
LitFloatUnsuffixed(InternedString),
1156+
/// A boolean literal
11431157
LitBool(bool),
11441158
}
11451159

0 commit comments

Comments
 (0)