Skip to content

Commit a54138b

Browse files
committed
---
yaml --- r: 122834 b: refs/heads/master c: 35175f0 h: refs/heads/master v: v3
1 parent c16b907 commit a54138b

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: aa91ef0cf814a35037bc562fa37c51549fcf2984
2+
refs/heads/master: 35175f015ff878d49e3b5562fe3a7addcef25cfc
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: aaff4e05e19b48d81e4ecb3337f288f42d06edd0
55
refs/heads/try: 2e9d9477b848cec778ca3f07ecdf0aea6ade23de

trunk/src/libsyntax/ast.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ pub struct TyParam {
190190
pub span: Span
191191
}
192192

193+
/// Represents lifetimes and type parameters attached to a declaration
194+
/// of a function, enum, trait, etc.
193195
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash)]
194196
pub struct Generics {
195197
pub lifetimes: Vec<Lifetime>,
@@ -288,7 +290,7 @@ pub enum Pat_ {
288290
PatWild,
289291
PatWildMulti,
290292
// A PatIdent may either be a new bound variable,
291-
// or a nullary enum (in which case the second field
293+
// or a nullary enum (in which case the third field
292294
// is None).
293295
// In the nullary enum case, the parser can't determine
294296
// which it is. The resolver determines this, and

trunk/src/libsyntax/ext/expand.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -841,9 +841,9 @@ fn expand_pat(p: Gc<ast::Pat>, fld: &mut MacroExpander) -> Gc<ast::Pat> {
841841
}
842842
}
843843

844-
// a tree-folder that applies every rename in its (mutable) list
845-
// to every identifier, including both bindings and varrefs
846-
// (and lots of things that will turn out to be neither)
844+
/// A tree-folder that applies every rename in its (mutable) list
845+
/// to every identifier, including both bindings and varrefs
846+
/// (and lots of things that will turn out to be neither)
847847
pub struct IdentRenamer<'a> {
848848
renames: &'a mtwt::RenameList,
849849
}

trunk/src/libsyntax/fold.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ pub fn noop_fold_pat<T: Folder>(p: Gc<Pat>, folder: &mut T) -> Gc<Pat> {
794794
PatIdent(binding_mode, ref pth1, ref sub) => {
795795
PatIdent(binding_mode,
796796
Spanned{span: folder.new_span(pth1.span),
797-
node: folder.fold_ident(pth1.node)},
797+
node: folder.fold_ident(pth1.node)},
798798
sub.map(|x| folder.fold_pat(x)))
799799
}
800800
PatLit(e) => PatLit(folder.fold_expr(e)),

0 commit comments

Comments
 (0)