syntex_syntax 0.7.0

Export of libsyntax for code generation
b0VIM 7.4ªtU���yericktErick-Tryzelaar-MBP.local~erickt/projects/rust/rust-syntex/syntex_syntax/src/parse/parser.rsutf-8
3210#"! Utp>IgJm�tX�	]�
gG^�_
aki�f5e�^l^Y�g#g�k�v\Q�P#PsU�R	Yj	c�	S&
 [y
!e�
"W9#l�$[�%RW&F�'f�(aU
)[�
*W+bh,`�-k*.T�/i�0QR1g�2a
3Vk4d�5T%6`y7R�8O+9lz:_�<bE=O�>R�?XH[�;\�"Wad3sI�{XU��M)(�
�
�
�
B

�o,��oE�
�
�
T

�	v	4	���nB���P���P��[.��wG����N����d:��sruse parse::token::{keywords, special_idents, SpecialMacroVar};use parse::token::{self, MatchNt, SubstNt, SpecialVarNt, InternedString};use parse::obsolete::{ParserObsoleteMethods, ObsoleteSyntax};use parse::lexer::{Reader, TokenAndSpan};use parse::common::{SeqSep, seq_sep_none, seq_sep_trailing_allowed};use parse::classify;use parse::attr::ParserAttr;use parse;use ext::tt::macro_parser;use diagnostic;use codemap::{self, Span, BytePos, Spanned, spanned, mk_sp};use ast_util::{self, AS_PREC, ident_to_path, operator_prec};use ast;use ast::{Visibility, WhereClause};use ast::{ViewPath, ViewPathGlob, ViewPathList, ViewPathSimple};use ast::{UnnamedField, UnsafeBlock};use ast::{TypeImplItem, TypeTraitItem};use ast::{TyRptr, TyTup, TyU32, TyVec, UnUniq};use ast::{TyParam, TyParamBound, TyParen, TyPath, TyPolyTraitRef, TyPtr};use ast::{TyFixedLengthVec, TyBareFn, TyTypeof, TyInfer};use ast::{TupleVariantKind, Ty, Ty_, TypeBinding};use ast::{TtDelimited, TtSequence, TtToken};use ast::{Delimited, SequenceRepetition, TokenTree, TraitItem, TraitRef};use ast::{SelfExplicit, SelfRegion, SelfStatic, SelfValue};use ast::{StructVariantKind, BiSub, StrStyle};use ast::{StmtExpr, StmtSemi, StmtMac, StructDef, StructField};use ast::{Return, BiShl, BiShr, Stmt, StmtDecl};use ast::{PolyTraitRef, QSelf};use ast::PatWildSingle;use ast::{PatRegion, PatStruct, PatTup, PatVec, PatWild, PatWildMulti};use ast::{Pat, PatBox, PatEnum, PatIdent, PatLit, PatQPath, PatMac, PatRange};use ast::{MethodImplItem, NamedField, UnNeg, NoReturn, UnNot};use ast::{MutTy, BiMul, Mutability};use ast::{MutImmutable, MutMutable, Mac_, MacInvocTT, MatchSource};use ast::{MacStmtWithBraces, MacStmtWithSemicolon, MacStmtWithoutBraces};use ast::{LitStr, LitInt, Local, LocalLet};use ast::{LitBool, LitChar, LitByte, LitBinary};use ast::{LifetimeDef, Lit, Lit_};use ast::{ItemExternCrate, ItemUse};use ast::{ItemMac, ItemMod, ItemStruct, ItemTrait, ItemTy, ItemDefaultImpl};use ast::{ItemEnum, ItemFn, ItemForeignMod, ItemImpl, ItemConst};use ast::{Ident, Inherited, ImplItem, Item, Item_, ItemStatic};use ast::{ForeignItem, ForeignItemStatic, ForeignItemFn, ForeignMod, FunctionRetTy};use ast::{ExprVec, ExprWhile, ExprWhileLet, ExprForLoop, Field, FnDecl};use ast::{ExprRepeat, ExprRet, ExprStruct, ExprTup, ExprUnary};use ast::{ExprMethodCall, ExprParen, ExprPath};use ast::{ExprLit, ExprLoop, ExprMac, ExprRange};use ast::{ExprField, ExprTupField, ExprClosure, ExprIf, ExprIfLet, ExprIndex};use ast::{ExprBreak, ExprCall, ExprCast};use ast::{ExprAssign, ExprAssignOp, ExprBinary, ExprBlock, ExprBox};use ast::{Expr, Expr_, ExprAddrOf, ExprMatch, ExprAgain};use ast::{UnDeref, BiDiv, EMPTY_CTXT, EnumDef, ExplicitSelf};use ast::{Decl, DeclItem, DeclLocal, DefaultBlock, DefaultReturn};use ast::{Constness, ConstImplItem, ConstTraitItem, Crate, CrateConfig};use ast::{BlockCheckMode, CaptureByRef, CaptureByValue, CaptureClause};use ast::{BiBitAnd, BiBitOr, BiBitXor, BiRem, BiLt, BiGt, Block};use ast::{Mod, BiAdd, Arg, Arm, Attribute, BindByRef, BindByValue};use ast::{Public, Unsafety};use ast::{RegionTyParamBound, TraitTyParamBound, TraitBoundModifier};use ast::BareFnTy;use abi;pub use self::PathParsingMode::*;// except according to those terms.// option. This file may not be copied, modified, or distributed// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or//// http://rust-lang.org/COPYRIGHT.// file at the top-level directory of this distribution and at// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHTad�
V"���{utK
��](�
�
�
L
>


�����a:���h^XVU}    }        }            _ =>  Err(self.fatal("expected string literal"))            }                Ok((s, style))                self.expect_no_suffix(sp, "str literal", suf);                let sp = self.last_span;            Some((s, style, suf)) => {        match try!(self.parse_optional_str()) {    pub fn parse_str(&mut self) -> PResult<(InternedString, StrStyle)> {    }        Ok(Some(ret))        try!(self.bump());        };            _ => return Ok(None)            }                (self.id_to_interned_str(s.ident()), ast::RawStr(n), suf)            token::Literal(token::StrRaw(s, n), suf) => {            }                (self.id_to_interned_str(s.ident()), ast::CookedStr, suf)            token::Literal(token::Str_(s), suf) => {        let ret = match self.token {                                                 Option<ast::Name>)>> {                                                 ast::StrStyle,                              -> PResult<Option<(InternedString,    pub fn parse_optional_str(&mut self)    }        })            exported_macros: Vec::new(),            span: mk_sp(lo, self.span.lo),            config: self.cfg.clone(),ad�[�m�����i,�
�
u
U

����W��O'�
�
k
!
 
�	�	�	e		���xwS'���zJ�������P�������{ut-������]���xw.����v>
���                       seq_sep_trailing_allowed(token::Comma),                &token::CloseDelim(token::Brace),                &token::OpenDelim(token::Brace),            let idents = try!(self.parse_unspanned_seq(            // use {foo,bar}        if self.check(&token::OpenDelim(token::Brace)) {        try!(self.eat(&token::ModSep));        // This occurs with "use $crate::..." in macros.        // Allow a leading :: because the paths are absolute either way.        let lo = self.span.lo;    fn parse_view_path(&mut self) -> PResult<P<ViewPath>> {    /// | MOD? non_global_path    /// | MOD? non_global_path MOD_SEP STAR    /// | MOD? non_global_path MOD_SEP LBRACE ident_seq RBRACE    /// | MOD? non_global_path MOD_SEP LBRACE RBRACE    /// Matches view_path : MOD? non_global_path as IDENT    }        self.parse_item_(attrs, true)        let attrs = self.parse_outer_attributes();    pub fn parse_item_nopanic(&mut self) -> PResult<Option<P<Item>>> {    }        Ok(None)        }            self.expected_item_err(&attrs);        if !attrs.is_empty() {        }            }                return Err(self.span_fatal(last_span, "unmatched visibility `pub`"));                let last_span = self.last_span;            Public => {            Inherited => {}        match visibility {        // FAILURE TO PARSE ITEM        }            return Ok(Some(item));                                    attrs);                                    visibility,                                    item_,                                    id,                                    last_span.hi,            let item = self.mk_item(lo,            let last_span = self.last_span;            let item_ = ItemMac(m);            }                }                                   a semicolon");                                   be surrounded with braces or followed by \                                  "macros that expand to items must either \                    self.span_err(last_span,                    let last_span = self.last_span;                if !try!(self.eat(&token::Semi) ){            if delim != token::Brace {                                                         self.span.hi) };                                             span: mk_sp(self.span.lo,            let m: ast::Mac = codemap::Spanned { node: m,            let m = ast::MacInvocTT(pth, tts, EMPTY_CTXT);            // single-variant-enum... :                                            |p| p.parse_token_tree()));                                            seq_sep_none(),            let tts = try!(self.parse_seq_to_end(&token::CloseDelim(delim),            let delim = try!(self.expect_open_delim());            // eat a matched-delimiter token tree:            };                token::special_idents::invalid // no special identifier            } else {                try!(self.parse_ident())            let id = if self.token.is_plain_ident() {            // and remove this.            // is optional. We should eventually unify invoc syntax            // a 'special' identifier (like what `macro_rules!` uses)            try!(self.expect(&token::Not));            let pth = try!(self.parse_path(NoTypesAllowed));            // item macro.            self.complain_if_pub_macro(visibility, last_span);            let last_span = self.last_span;            // MACRO INVOCATION ITEM                    || self.look_ahead(2, |t| *t == token::OpenDelim(token::Brace))) {                    || self.look_ahead(2, |t| *t == token::OpenDelim(token::Paren))                && (self.look_ahead(2, |t| t.is_plain_ident())ad�g����~baB)������zD><;�
�
k
P

��uR����];�
f

�	�	�	v	l	C		���6�}Q:��y��i=&����~dG"�������sX1'���u[L�����        }            }                return Ok(x.clone());            if let Some(token::Interpolated(token::$constructor(x))) = found {            };                _ => None                }                    Some(try!(($p).bump_and_get()))                token::Interpolated(token::$constructor(_)) => {            let found = match ($p).token {        {    ($p:expr, $constructor:ident) => (macro_rules! maybe_whole {/// As maybe_whole_expr, but for things other than expressions}    )        }            }                None => ()                }                    return Ok(e);                    try!($p.bump());                Some(e) => {            match found {            };                _ => None                }                    Some($p.mk_expr(span.lo, span.hi, ExprBlock(b)))                    let span = $p.span;                    };                        _ => unreachable!()                        token::Interpolated(token::NtBlock(ref b)) => (*b).clone(),                    let b = match $p.token {                    // but the clone is unfortunate.                    // FIXME: The following avoids an issue with lexical borrowck scopes,                token::Interpolated(token::NtBlock(_)) => {                }                    Some($p.mk_expr(span.lo, span.hi, ExprPath(None, pt)))                    let span = $p.span;                    };                        _ => unreachable!()                        token::Interpolated(token::NtPath(ref pt)) => (**pt).clone(),                    let pt = match $p.token {                    // but the clone is unfortunate.                    // FIXME: The following avoids an issue with lexical borrowck scopes,                token::Interpolated(token::NtPath(_)) => {                }                    Some((*e).clone())                token::Interpolated(token::NtExpr(ref e)) => {            let found = match $p.token {        {    ($p:expr) => (macro_rules! maybe_whole_expr {/// `token::Interpolated` tokens./// be. The important thing is to make sure that lookahead doesn't balk at/// macro expansion). Placement of these is not as complex as I feared it would/// dropped into the token stream, which happens while parsing the result of/// Possibly accept an `token::Interpolated` expression (a pre-parsed expression}    Modified,    Bare,pub enum BoundParsingMode {#[derive(Copy, Clone, PartialEq)]/// How to parse a bound, whether to allow bound modifiers such as `?`.}    LifetimeAndTypesWithColons,    /// the type parameters; e.g. `foo::bar::<'a>::Baz::<T>`    /// A path with a lifetime and type parameters with double colons before    LifetimeAndTypesWithoutColons,    /// before the type parameters; e.g. `foo::bar<'a>::Baz<T>`    /// A path with a lifetime and type parameters, with no double colons    NoTypesAllowed,    /// A path with no type parameters; e.g. `foo::bar::Baz`pub enum PathParsingMode {#[derive(Copy, Clone, PartialEq)]/// are parsed somewhat differently./// How to parse a path. There are four different kinds of paths, all of whichtype ItemInfo = (Ident, Item_, Option<Vec<Attribute> >);}    }        const RESTRICTION_NO_STRUCT_LITERAL = 1 << 1,        const RESTRICTION_STMT_EXPR         = 1 << 0,    flags Restrictions: u8 {bitflags! {use std::slice;use std::rc::Rc;use std::path::{Path, PathBuf};use std::mem;use std::io::prelude::*;use std::collections::HashSet;use diagnostic::FatalError;use parse::PResult;use owned_slice::OwnedSlice;use ptr::P;use print::pprust;use parse::{new_sub_parser_from_file, ParseSess};ad
�m����S
���wi_X+!�
�
�
o
U
F
�����}sH����I�
�
�
�
S


�	�	�	i	[	Q	K	I	H	G		������[ZB%
����tZ����sO��xA��]=���C���\ZY9$�����}    Operator,    Keyword(keywords::Keyword),    Token(token::Token),pub enum TokenType {#[derive(PartialEq, Eq, Clone)]}    pub expected_tokens: Vec<TokenType>,    pub root_module_name: Option<String>,    /// into modules, and sub-parsers have new values for this name.    /// name is not known. This does not change while the parser is descending    /// Name of the root module this parser originated from. If `None`, then the    pub owns_directory: bool,    /// in. This will affect how nested files are looked up.    /// Flag if this parser "owns" the directory that it is currently parsing    pub open_braces: Vec<Span>,    /// Stack of spans of open delimiters. Used for error message.    pub mod_path_stack: Vec<InternedString>,    /// Used to determine the path to externally loaded source files    pub obsolete_set: HashSet<ObsoleteSyntax>,    /// extra detail when the same error is seen twice    /// The set of seen errors about obsolete syntax. Used to suppress    pub interner: Rc<token::IdentInterner>,    pub reader: Box<Reader+'a>,    pub quote_depth: usize, // not (yet) related to the quasiquoter    pub restrictions: Restrictions,    pub tokens_consumed: usize,    pub buffer_end: isize,    pub buffer_start: isize,    pub buffer: [TokenAndSpan; 4],    pub last_token: Option<Box<token::Token>>,    /// the previous token or None (only stashed sometimes).    pub cfg: CrateConfig,    pub last_span: Span,    /// the span of the prior token:    pub span: Span,    /// the span of the current token:    pub token: token::Token,    /// the current token:    pub sess: &'a ParseSess,pub struct Parser<'a> {/* ident is handled by common.rs */}    lhs    }        lhs.extend(attrs.iter().cloned())    if let Some(ref attrs) = rhs {                -> Vec<Attribute> {fn maybe_append(mut lhs: Vec<Attribute>, rhs: Option<Vec<Attribute>>)}    )        }            }                return Ok((Vec::new(), x));            if let Some(token::Interpolated(token::$constructor(x))) = found {            };                _ => None                }                    Some(try!(($p).bump_and_get()))                token::Interpolated(token::$constructor(_)) => {            let found = match ($p).token {        {    (pair_empty $p:expr, $constructor:ident) => (    );        }            }                return Ok(Some((*x).clone()));            if let Some(token::Interpolated(token::$constructor(x))) = found {            };                _ => None                }                    Some(try!(($p).bump_and_get()))                token::Interpolated(token::$constructor(_)) => {            let found = match ($p).token {        {    (Some deref $p:expr, $constructor:ident) => (    );        }            }                return Ok((*x).clone());            if let Some(token::Interpolated(token::$constructor(x))) = found {            };                _ => None                }                    Some(try!(($p).bump_and_get()))                token::Interpolated(token::$constructor(_)) => {            let found = match ($p).token {        {    (deref $p:expr, $constructor:ident) => (    );        }            }                return Ok(x);            if let Some(token::Interpolated(token::$constructor(x))) = found {            };                _ => None                }                    Some(try!(($p).bump_and_get()))                token::Interpolated(token::$constructor(_)) => {            let found = match ($p).token {        {    (no_clone $p:expr, $constructor:ident) => (    );ad�t���a#�����~LJI3�
�
�
�
y
]
4

������ycF.����nI:�
�
�
k
C

�	�	�	�	�	�		G		�����|{O#�����ked.����^XW����j6����T'�����}=����?��                Err(self.fatal(&format!("expected `{}`, found `{}`",                let this_token_str = self.this_token_to_string();                let token_str = Parser::token_to_string(t);            } else {                self.bump()            if self.token == *t {        if self.expected_tokens.is_empty() {    pub fn expect(&mut self, t: &token::Token) -> PResult<()> {    /// the next token is not t.    /// Expect and consume the token t. Signal an error if    }        }            Ok(_) => unreachable!()            Err(e) => e,        match self.expect_one_of(&[], &[]) {    pub fn unexpected(&mut self) -> FatalError {    }                                                token_str))        self.span_fatal(last_span, &format!("unexpected token: `{}`",        let last_span = self.last_span;        let token_str = Parser::token_to_string(t);    pub fn unexpected_last(&self, t: &token::Token) -> FatalError {    }        Parser::token_to_string(&self.token)    pub fn this_token_to_string(&self) -> String {    /// Convert the current token to a string using self's reader    }        pprust::token_to_string(token)    pub fn token_to_string(token: &token::Token) -> String {    /// Convert a token to a string using self's reader    }        panictry!(self.parse_stmt_nopanic())    pub fn parse_stmt(&mut self) -> Option<P<Stmt>> {    }        panictry!(self.parse_ty_nopanic())    pub fn parse_ty(&mut self) -> P<Ty> {    }        panictry!(self.parse_arm_nopanic())    pub fn parse_arm(&mut self) -> Arm {    }        panictry!(self.parse_pat_nopanic())    pub fn parse_pat(&mut self) -> P<Pat> {    }        panictry!(self.parse_item_nopanic())    pub fn parse_item(&mut self) -> Option<P<Item>> {    }        panictry!(self.parse_expr_nopanic())    pub fn parse_expr(&mut self) -> P<Expr> {    // This is so that the quote_*!() syntax extensions    // Panicing fns (for now!)    }        }            expected_tokens: Vec::new(),            root_module_name: None,            owns_directory: true,            open_braces: Vec::new(),            mod_path_stack: Vec::new(),            obsolete_set: HashSet::new(),            quote_depth: 0,            restrictions: Restrictions::empty(),            tokens_consumed: 0,            buffer_end: 0,            buffer_start: 0,            ],                placeholder.clone(),                placeholder.clone(),                placeholder.clone(),                placeholder.clone(),            buffer: [            last_token: None,            last_span: span,            span: span,            token: tok0.tok,            cfg: cfg,            sess: sess,            interner: token::get_ident_interner(),            reader: rdr,        Parser {        };            sp: span,            tok: token::Underscore,        let placeholder = TokenAndSpan {        let span = tok0.sp;        let tok0 = rdr.real_token();    {               -> Parser<'a>               mut rdr: Box<Reader+'a>)               cfg: ast::CrateConfig,    pub fn new(sess: &'a ParseSess,impl<'a> Parser<'a> {}    t.is_plain_ident() || *t == token::Underscorefn is_plain_ident_or_underscore(t: &token::Token) -> bool {}    }        }            TokenType::Keyword(kw) => format!("`{}`", token::get_name(kw.to_name())),            TokenType::Operator => "an operator".to_string(),            TokenType::Token(ref t) => format!("`{}`", Parser::token_to_string(t)),        match *self {    fn to_string(&self) -> String {impl TokenType {ad~X���~5������W�
�
x
4
���h'���@�
�
�
�
�
y
o
E
-
�	�	�	�	�	N		��V8����C���kR�������R��>��q"���F	�����~    }        }            Ok(false)        } else {            Ok(true)            try!(self.eat(&token::CloseDelim(token::Brace)));            try!(self.eat(&token::OpenDelim(token::Brace)));                          "unit-like struct construction is written with no trailing `{ }`");            self.span_err(span,            let span = self.span;            // matched; signal non-fatal error and recover.            && self.look_ahead(1, |t| *t == token::CloseDelim(token::Brace)) {            && expected.iter().all(|t| *t != token::OpenDelim(token::Brace))        if self.token == token::OpenDelim(token::Brace)                                                     -> PResult<bool> {                                                     expected: &[token::Token])    pub fn check_for_erroneous_unit_struct_expecting(&mut self,    /// true if and only if input was consumed for recovery.    /// recover (without consuming any expected input token).  Returns    /// Check for erroneous `ident { }`; if matches, signal error and    }        }            ))                })[..]                             actual))                             expect,                    (format!("expected {}, found `{}`",                } else {                             actual))                    (format!("unexpected token: `{}`",                } else if expected.is_empty() {                             actual))                             expect,                    (format!("expected one of {}, found `{}`",                &(if expected.len() > 1 {            Err(self.fatal(            let actual = self.this_token_to_string();            let expect = tokens_to_string(&expected[..]);            expected.dedup();            expected.sort_by(|a, b| a.to_string().cmp(&b.to_string()));                .collect::<Vec<_>>();                .chain(self.expected_tokens.iter().cloned())                .chain(inedible.iter().map(|x| TokenType::Token(x.clone())))                .map(|x| TokenType::Token(x.clone()))            let mut expected = edible.iter()        } else {            Ok(())            // leave it in the input        } else if inedible.contains(&self.token) {            self.bump()        if edible.contains(&self.token) {        }            })                b                b.push_str(&*a.to_string());                }                    b.push_str(", ");                } else {                    b.push_str(" or ");                } else if tokens.len() == 2 && i == tokens.len() - 2 {                    b.push_str(", or ");                if tokens.len() > 2 && i == tokens.len() - 2 {            i.enumerate().fold(b, |mut b, (i, ref a)| {                     .map_or("".to_string(), |t| t.to_string());            let b = i.next()            // This might be a sign we need a connect method on Iterator.            let mut i = tokens.iter();        fn tokens_to_string(tokens: &[TokenType]) -> String {                         inedible: &[token::Token]) -> PResult<()>{                         edible: &[token::Token],    pub fn expect_one_of(&mut self,    /// anything.  Signal a fatal error if next token is unexpected.    /// then consume it; if inedible, then return without consuming    /// Expect next token to be edible or inedible token.  If edible,    }        }            self.expect_one_of(slice, &[])            };                slice::from_raw_parts(t, 1)            let slice = unsafe {            // FIXME: Using this because `slice::ref_slice` is unstable.        } else {            }                                   this_token_str)))                                   token_str,ad�]�u-��~W�
�
�
i


���}QKJ�u:�
�
�
�
Y
?

�	�	�	d	^	]	
	����yK0����?1��j\RLK����xrq&��zH�����f^���4!���    /// token was present, false otherwise.    /// Consume token 'tok' if it exists. Returns true if the given    }        is_present        if !is_present { self.expected_tokens.push(TokenType::Token(tok.clone())); }        let is_present = self.token == *tok;    pub fn check(&mut self, tok: &token::Token) -> bool {    /// encountered.    /// This method is will automatically add `tok` to `expected_tokens` if `tok` is not    ///    /// Check if the next token is `tok`, and return `true` if so.    }        Ok(spanned(lo, hi, node))        let hi = self.last_span.hi;        };            ast::PathListIdent { name: ident, id: ast::DUMMY_NODE_ID }            let ident = try!(self.parse_ident());        } else {            ast::PathListMod { id: ast::DUMMY_NODE_ID }        let node = if try!(self.eat_keyword(keywords::SelfValue)) {        let lo = self.span.lo;    pub fn parse_path_list_item(&mut self) -> PResult<ast::PathListItem> {    }        }            self.parse_ident()        } else {            self.expect_self_type_ident()        if self.is_self_type_ident() {    pub fn parse_ident_or_self_type(&mut self) -> PResult<ast::Ident> {    }        }            }                                    token_str)))                Err(self.fatal(&format!("expected ident, found `{}`",                let token_str = self.this_token_to_string();            _ => {            }                self.bug("ident interpolation not converted to real token");            token::Interpolated(token::NtIdent(..)) => {            }                Ok(i)                try!(self.bump());            token::Ident(i, _) => {        match self.token {        try!(self.check_reserved_keywords());        self.check_strict_keywords();    pub fn parse_ident(&mut self) -> PResult<ast::Ident> {    }        self.commit_stmt(&[edible], &[])    pub fn commit_stmt_expecting(&mut self, edible: token::Token) -> PResult<()> {    }        self.expect_one_of(edible, inedible)        }            try!(self.check_for_erroneous_unit_struct_expecting(&expected));                .collect::<Vec<_>>();                .chain(inedible.iter().cloned())                .cloned()            let expected = edible.iter()               .map_or(false, |t| t.is_ident() || t.is_path()) {               .as_ref()        if self.last_token                       inedible: &[token::Token]) -> PResult<()> {    pub fn commit_stmt(&mut self, edible: &[token::Token],    /// for recoverable input errors, discarding erroneous characters.    /// followed by some token from the set edible + inedible.  Check    /// Commit to parsing a complete statement `s`, which expects to be    }        self.commit_expr(e, &[edible], &[])    pub fn commit_expr_expecting(&mut self, e: &Expr, edible: token::Token) -> PResult<()> {    }        self.expect_one_of(edible, inedible)        }            try!(self.check_for_erroneous_unit_struct_expecting(&expected[..]));                .collect::<Vec<_>>();                .chain(inedible.iter().cloned())                .cloned()            let expected = edible.iter()            // might be unit-struct construction; check for recoverableinput error.        if let ExprPath(..) = e.node {        debug!("commit_expr {:?}", e);                       inedible: &[token::Token]) -> PResult<()> {    pub fn commit_expr(&mut self, e: &Expr, edible: &[token::Token],    /// from anticipated input errors, discarding erroneous characters.    /// followed by some token from the set edible + inedible.  Recover    /// Commit to parsing a complete expression `e` expected to bead�g��jSML����a:�
�
�
�
�
o
e
_
^
	
�����}wv9���f=,	�
�
n
5

�	�	v	l	f	e	"	��};������K��~_9
���vpo���o#������R��|<!���            token::BinOp(token::Shl) => {            token::Lt => { try!(self.bump()); Ok(true)}        match self.token {        self.expected_tokens.push(TokenType::Token(token::Lt));    fn eat_lt(&mut self) -> PResult<bool> {    /// starting token.    /// This is meant to be used when parsing generics on a path to get the    ///    /// `<` and continue. If a `<` is not seen, return false.    /// Attempt to consume a `<`. If `<<` is seen, replace it with a single    }        }            }                self.span_err(sp, &*format!("{} with a suffix is illegal", kind));                }                    self.span_bug(sp, "found empty literal suffix in Some")                if text.is_empty() {                let text = suf.as_str();            Some(suf) => {            None => {/* everything ok */}        match suffix {    pub fn expect_no_suffix(&self, sp: Span, kind: &str, suffix: Option<ast::Name>) {    }        }            _ => self.expect_one_of(&[], &[])            }                Ok(self.replace_token(token::BinOp(token::And), lo, span.hi))                let lo = span.lo + BytePos(1);                let span = self.span;            token::AndAnd => {            token::BinOp(token::And) => self.bump(),        match self.token {        self.expected_tokens.push(TokenType::Token(token::BinOp(token::And)));    fn expect_and(&mut self) -> PResult<()> {    /// `&` and continue. If an `&` is not seen, signal an error.    /// Expect and consume an `&`. If `&&` is seen, replace it with a single    }        }            Ok(())        } else {                               token_str)))            Err(self.fatal(&format!("`{}` is a reserved keyword",            let token_str = self.this_token_to_string();        if self.token.is_reserved_keyword() {    pub fn check_reserved_keywords(&mut self) -> PResult<()>{    /// Signal an error if the current token is a reserved keyword    }        }                                  token_str));                          &format!("expected identifier, found keyword `{}`",            self.span_err(span,            let span = self.span;            let token_str = self.this_token_to_string();        if self.token.is_strict_keyword() {    pub fn check_strict_keywords(&mut self) {    /// Signal an error if the given string is a strict keyword    }        }            Ok(())        } else {            self.expect_one_of(&[], &[])        if !try!(self.eat_keyword(kw) ){    pub fn expect_keyword(&mut self, kw: keywords::Keyword) -> PResult<()> {    /// Otherwise, eat it.    /// If the next token is not the given word, signal an error.    /// If the given word is not a keyword, signal an error.    }        }            Ok(false)        } else {            Ok(true)            try!(self.bump());        if self.token.is_keyword(kw) {    pub fn eat_keyword_noexpect(&mut self, kw: keywords::Keyword) -> PResult<bool> {    }        }            Ok(false)        } else {            Ok(true)            try!(self.bump());        if self.check_keyword(kw) {    pub fn eat_keyword(&mut self, kw: keywords::Keyword) -> PResult<bool> {    /// true. Otherwise, return false.    /// If the next token is the given keyword, eat it and return    }        self.token.is_keyword(kw)        self.expected_tokens.push(TokenType::Keyword(kw));    pub fn check_keyword(&mut self, kw: keywords::Keyword) -> bool {    }        Ok(is_present)        if is_present { try!(self.bump())}        let is_present = self.check(tok);    pub fn eat(&mut self, tok: &token::Token) -> PResult<bool> {ad;�^��oVH,"����uon1�
�
�
l
Q
+

��m_3
���vP!�
�
�

=
�	�	�	�	�	z	y	<	��Y$��`�vB+��bK=< ��mX(��������[C��S& ��        let (result, returned) = try!(self.parse_seq_to_before_gt_or_return(sep,    {        F: FnMut(&mut Parser) -> PResult<T>,                                        -> PResult<OwnedSlice<T>> where                                        mut f: F)                                        sep: Option<token::Token>,    pub fn parse_seq_to_before_gt<T, F>(&mut self,    /// before the '>'.    /// Parse a sequence bracketed by '<' and '>', stopping    }        return Ok((OwnedSlice::from_vec(v), false));        }            }                }                    try!(self.expect(t));                if let Some(t) = sep.as_ref() {            } else {                }                    None => return Ok((OwnedSlice::from_vec(v), true))                    Some(result) => v.push(result),                match try!(f(self)) {            if i % 2 == 0 {            }                break;                || self.token == token::BinOpEq(token::Shr) {                || self.token == token::Ge                || self.token == token::BinOp(token::Shr)            if self.check(&token::Gt)        for i in 0.. {        // parsing a type or after parsing a comma.        // commas in generic parameters, because it can stop either after        // would encounter a `>` and stop. This lets the parser handle trailing        // first parse `A`, then a comma, then `B`, then a comma. After that it        // and commas.  For example, given a string `A, B,>`, the parser would        // This loop works by alternating back and forth between parsing types        let mut v = Vec::new();    {        F: FnMut(&mut Parser) -> PResult<Option<T>>,                                                  -> PResult<(OwnedSlice<T>, bool)> where                                                  mut f: F)                                                  sep: Option<token::Token>,    pub fn parse_seq_to_before_gt_or_return<T, F>(&mut self,    }        }            }                                   this_token_str)))                                   gt_str,                Err(self.fatal(&format!("expected `{}`, found `{}`",                let this_token_str = self.this_token_to_string();                let gt_str = Parser::token_to_string(&token::Gt);            _ => {            }                Ok(self.replace_token(token::Eq, lo, span.hi))                let lo = span.lo + BytePos(1);                let span = self.span;            token::Ge => {            }                Ok(self.replace_token(token::Ge, lo, span.hi))                let lo = span.lo + BytePos(1);                let span = self.span;            token::BinOpEq(token::Shr) => {            }                Ok(self.replace_token(token::Gt, lo, span.hi))                let lo = span.lo + BytePos(1);                let span = self.span;            token::BinOp(token::Shr) => {            token::Gt => self.bump(),        match self.token {        self.expected_tokens.push(TokenType::Token(token::Gt));    pub fn expect_gt(&mut self) -> PResult<()> {    /// signal an error.    /// with a single > and continue. If a GT is not seen,    /// Expect and consume a GT. if a >> is seen, replace it    }        }            Ok(())        } else {            self.expect_one_of(&[], &[])        if !try!(self.eat_lt()) {    fn expect_lt(&mut self) -> PResult<()> {    }        }            _ => Ok(false),            }                Ok(true)                self.replace_token(token::Lt, lo, span.hi);                let lo = span.lo + BytePos(1);                let span = self.span;ad�_��ysrF
��uo4�
�
�
�
{
J
���kT0&���rY,�
�
�
d
7
1
�	�	�	�	�	p	-		��m:�����bF'�����R/%	�}d4���e'����s`ZY��y=��                                        -> PResult<Vec<T>> where                                        f: F)                                        sep: SeqSep,                                        ket: &token::Token,                                        bra: &token::Token,    pub fn parse_enum_variant_seq<T, F>(&mut self,    /// these should not be empty.    /// Parse a sequence parameter of enum variant. For consistency purposes,    }        Ok(result)        try!(self.bump());        let result = try!(self.parse_seq_to_before_end(ket, sep, f));        try!(self.expect(bra));    {        F: FnMut(&mut Parser) -> PResult<T>,                                     -> PResult<Vec<T>> where                                     f: F)                                     sep: SeqSep,                                     ket: &token::Token,                                     bra: &token::Token,    pub fn parse_unspanned_seq<T, F>(&mut self,    /// closing bracket.    /// f must consume tokens until reaching the next separator or    /// Parse a sequence, including the closing delimiter. The function    }        return Ok(v);        }            v.push(try!(f(self)));            if sep.trailing_sep_allowed && self.check(ket) { break; }            }              _ => ()              }                else { try!(self.expect(t)); }                if first { first = false; }              Some(ref t) => {            match sep.sep {        while self.token != *ket {        let mut v = vec!();        let mut first: bool = true;    {        F: FnMut(&mut Parser) -> PResult<T>,                                         -> PResult<Vec<T>> where                                         mut f: F)                                         sep: SeqSep,                                         ket: &token::Token,    pub fn parse_seq_to_before_end<T, F>(&mut self,    /// closing bracket.    /// f must consume tokens until reaching the next separator or    /// Parse a sequence, not including the closing delimiter. The function    }        Ok(val)        try!(self.bump());        let val = try!(self.parse_seq_to_before_end(ket, sep, f));    {        F: FnMut(&mut Parser) -> PResult<T>,                                  -> PResult<Vec<T>> where                                  f: F)                                  sep: SeqSep,                                  ket: &token::Token,    pub fn parse_seq_to_end<T, F>(&mut self,    /// closing bracket.    /// f must consume tokens until reaching the next separator or    /// Parse a sequence, including the closing delimiter. The function    }        return Ok((v, returned));        }            try!(self.expect_gt());        if !returned {        let (v, returned) = try!(self.parse_seq_to_before_gt_or_return(sep, f));    {        F: FnMut(&mut Parser) -> PResult<Option<T>>,                                           -> PResult<(OwnedSlice<T>, bool)> where                                           f: F)                                           sep: Option<token::Token>,    pub fn parse_seq_to_gt_or_return<T, F>(&mut self,    }        return Ok(v);        try!(self.expect_gt());        let v = try!(self.parse_seq_to_before_gt(sep, f));    {        F: FnMut(&mut Parser) -> PResult<T>,                                 -> PResult<OwnedSlice<T>> where                                 f: F)                                 sep: Option<token::Token>,    pub fn parse_seq_to_gt<T, F>(&mut self,    }        return Ok(result);        assert!(!returned);                                                    |p| Ok(Some(try!(f(p))))));adJ�a���g;�����_?�
�
�
r
5


��}^C���I�
�
{
j
Y
N

�	�	�	n	9			����:/����\VU��mWQP
���k9����\R���vJ���nh+���    }        self.sess.span_diagnostic.span_fatal(self.span, m)    pub fn fatal(&self, m: &str) -> diagnostic::FatalError {    }        f(&self.buffer[((self.buffer_start + dist - 1) & 3) as usize].tok)        }            self.buffer_end = (self.buffer_end + 1) & 3;            self.buffer[self.buffer_end as usize] = self.reader.real_token();        while self.buffer_length() < dist {        let dist = distance as isize;    {        F: FnOnce(&token::Token) -> R,    pub fn look_ahead<R, F>(&mut self, distance: usize, f: F) -> R where    }        return (4 - self.buffer_start) + self.buffer_end;        }            return self.buffer_end - self.buffer_start;        if self.buffer_start <= self.buffer_end {    pub fn buffer_length(&mut self) -> isize {    }        self.span = mk_sp(lo, hi);        self.token = next;        self.last_span = mk_sp(self.span.lo, lo);                         hi: BytePos) {                         lo: BytePos,                         next: token::Token,    pub fn replace_token(&mut self,    /// EFFECT: replace the current token and span with the given one    }        Ok(old_token)        try!(self.bump());        let old_token = mem::replace(&mut self.token, token::Underscore);    pub fn bump_and_get(&mut self) -> PResult<token::Token> {    /// Advance the parser by one token and return the bumped token.    }        self.check_unknown_macro_variable()        // check after each token        self.expected_tokens.clear();        self.tokens_consumed += 1;        self.token = next.tok;        self.span = next.sp;        };            mem::replace(&mut self.buffer[buffer_start], placeholder)            };                sp: self.span,                tok: token::Underscore,            let placeholder = TokenAndSpan {            self.buffer_start = next_index as isize;            let next_index = (buffer_start + 1) & 3;            let buffer_start = self.buffer_start as usize;            // Avoid token copies with `replace`.        } else {            self.reader.real_token()        let next = if self.buffer_start == self.buffer_end {        };            None        } else {            Some(Box::new(self.token.clone()))                          self.token == token::Comma {                          self.token.is_path() ||        self.last_token = if self.token.is_ident() ||        // Stash token for error recovery (sometimes; clone is not necessarily cheap).        self.last_span = self.span;    pub fn bump(&mut self) -> PResult<()> {    /// Advance the parser by one token    }        Ok(spanned(lo, hi, result))        try!(self.bump());        let hi = self.span.hi;        let result = try!(self.parse_seq_to_before_end(ket, sep, f));        try!(self.expect(bra));        let lo = self.span.lo;    {        F: FnMut(&mut Parser) -> PResult<T>,                           -> PResult<Spanned<Vec<T>>> where                           f: F)                           sep: SeqSep,                           ket: &token::Token,                           bra: &token::Token,    pub fn parse_seq<T, F>(&mut self,    // spanned list in the AST.    // NB: Do not use this function unless you actually plan to place the    }        Ok(result)        }            "nullary enum variants are written with no trailing `( )`");            self.span_err(last_span,            let last_span = self.last_span;        if result.is_empty() {        let result = try!(self.parse_unspanned_seq(bra, ket, sep, f));    {        F: FnMut(&mut Parser) -> PResult<T>,ad�i��z�����PJ�
�
�
b
\
'
�����c)#����WQ�
�
�
�
{
z
2



�	�	y	M		�����a4*$#���onZY<;'&��������=<���|B��W���wZ���tjdc-����    }        Ok(TyPath(None, try!(self.parse_path(LifetimeAndTypesWithoutColons))))    pub fn parse_ty_path(&mut self) -> PResult<Ty_> {    }        }            Ok(ast::TyPolyTraitRef(all_bounds))                .collect();                .chain(other_bounds.into_vec().into_iter())                Some(TraitTyParamBound(poly_trait_ref, TraitBoundModifier::None)).into_iter()            let all_bounds =            };                OwnedSlice::empty()            } else {                try!(self.parse_ty_param_bounds(BoundParsingMode::Bare))            let other_bounds = if try!(self.eat(&token::BinOp(token::Plus)) ){                                                     span: mk_sp(lo, hi)};                                                     trait_ref: trait_ref,            let poly_trait_ref = ast::PolyTraitRef { bound_lifetimes: lifetime_defs,            let trait_ref = try!(self.parse_trait_ref());            let hi = self.span.hi;        } else {            self.parse_ty_bare_fn(lifetime_defs)        if self.token_is_bare_fn_keyword() {        // examine next token to decide to do        let lifetime_defs = try!(self.parse_late_bound_lifetime_defs());        let lo = self.span.lo;        // parse <'lt>        */        - for <'lt> path::foo(a, b)        - for <'lt> [unsafe] [extern "ABI"] fn (S) -> T        Eventually:        - for <'lt> |S| -> T        Deprecated:        The `for` has already been consumed.        Parses whatever can come after a `for` keyword in a type.        /*    pub fn parse_for_in_type(&mut self) -> PResult<Ty_> {    }        }            _ => self.bug("not a lifetime"),            token::Lifetime(ref ident) => *ident,        match self.token {    pub fn get_lifetime(&mut self) -> ast::Ident {    }            self.check_keyword(keywords::Extern)            self.check_keyword(keywords::Unsafe) ||        self.check_keyword(keywords::Fn) ||    pub fn token_is_bare_fn_keyword(&mut self) -> bool {    /// type?    /// Is the current token one of the keywords that signals a bare function    }        token::get_ident(id)    pub fn id_to_interned_str(&mut self, id: Ident) -> InternedString {    }        self.sess.span_diagnostic.handler().abort_if_errors();    pub fn abort_if_errors(&self) {    }        self.sess.span_diagnostic.span_bug(sp, m)    pub fn span_bug(&self, sp: Span, m: &str) -> ! {    }        self.sess.span_diagnostic.span_err(sp, m)    pub fn span_err(&self, sp: Span, m: &str) {    }        self.sess.span_diagnostic.span_warn(sp, m)    pub fn span_warn(&self, sp: Span, m: &str) {    }        self.sess.span_diagnostic.span_warn(self.span, m)    pub fn warn(&self, m: &str) {    }        self.sess.span_diagnostic.span_bug(self.span, m)    pub fn bug(&self, m: &str) -> ! {    }        self.sess.span_diagnostic.fileline_help(sp, m)    pub fn fileline_help(&self, sp: Span, m: &str) {    }        self.sess.span_diagnostic.span_suggestion(sp, m, n)    pub fn span_suggestion(&self, sp: Span, m: &str, n: String) {    }        self.sess.span_diagnostic.span_help(sp, m)    pub fn span_help(&self, sp: Span, m: &str) {    }        self.sess.span_diagnostic.span_note(sp, m)    pub fn span_note(&self, sp: Span, m: &str) {    }        diagnostic::FatalError        self.fileline_help(sp, help);        self.span_err(sp, m);    pub fn span_fatal_help(&self, sp: Span, m: &str, help: &str) -> diagnostic::FatalError {    }        self.sess.span_diagnostic.span_fatal(sp, m)    pub fn span_fatal(&self, sp: Span, m: &str) -> diagnostic::FatalError {ad�f��wvD��oD&�
�
V
E
/
$
#
��z\@$����|eXRQ�
�
�
m
*
�	�	�	�	�	z	D	
		����eT9/.����v@�����U3���^&�h:��l=��t-���                    try!(p.expect(&token::Semi));                } else {                    Some(expr)                    try!(p.commit_expr_expecting(&expr, token::Semi));                    let expr = try!(p.parse_expr_nopanic());                    try!(p.bump());                let default = if p.check(&token::Eq) {                let ty = try!(p.parse_ty_sum());                try!(p.expect(&token::Colon));                let ident = try!(p.parse_ident());                try!(p.expect_keyword(keywords::Const));            } else if p.is_const_item() {                (ident, TypeTraitItem(bounds, default))                try!(p.expect(&token::Semi));                let TyParam {ident, bounds, default, ..} = try!(p.parse_ty_param());            let (name, node) = if try!(p.eat_keyword(keywords::Type)) {            let lo = p.span.lo;            let mut attrs = p.parse_outer_attributes();            maybe_whole!(no_clone p, NtTraitItem);            |p| -> PResult<P<TraitItem>> {            seq_sep_none(),            &token::CloseDelim(token::Brace),            &token::OpenDelim(token::Brace),        self.parse_unspanned_seq(    pub fn parse_trait_items(&mut self) -> PResult<Vec<P<TraitItem>>> {    /// Parse the items in a trait declaration    }        }            return Ok(Unsafety::Normal);        } else {            return Ok(Unsafety::Unsafe);        if try!(self.eat_keyword(keywords::Unsafe)) {    pub fn parse_unsafety(&mut self) -> PResult<Unsafety> {    }        Ok(())        self.obsolete(span, ObsoleteSyntax::ClosureKind);        let span = mk_sp(lo, self.span.hi);        }            return Ok(());        } else {            /* nothing */        {            try!(self.eat(&token::Colon))        } else if            try!(self.bump());            try!(self.bump());        {            self.look_ahead(1, |t| *t == token::Colon)            self.token == token::BinOp(token::And) &&        } else if            try!(self.bump());            try!(self.bump());            try!(self.bump());        {            self.look_ahead(2, |t| *t == token::Colon)            self.look_ahead(1, |t| t.is_keyword(keywords::Mut)) &&            self.check(&token::BinOp(token::And)) &&        if         let lo = self.span.lo;    pub fn parse_obsolete_closure_kind(&mut self) -> PResult<()> {    /// Parses an obsolete closure kind (`&:`, `&mut:`, or `:`).    }        })))            decl: decl            lifetimes: lifetime_defs,            unsafety: unsafety,            abi: abi,        Ok(TyBareFn(P(BareFnTy {        });            variadic: variadic            output: ret_ty,            inputs: inputs,        let decl = P(FnDecl {        let ret_ty = try!(self.parse_ret_ty());        let (inputs, variadic) = try!(self.parse_fn_args(false, true));        try!(self.expect_keyword(keywords::Fn));        };            abi::Rust        } else {            try!(self.parse_opt_abi()).unwrap_or(abi::C)        let abi = if try!(self.eat_keyword(keywords::Extern) ){        let unsafety = try!(self.parse_unsafety());        */        Function Style           |              ABI           |               |     Lifetimes           |               |         |  Argument types           |               |         |    |   Return type           |               |         |    |     |         ^~~~^           ^~~~^     ^~~~^ ^~^    ^        [unsafe] [extern "ABI"] fn <'lt> (S) -> T        /*    pub fn parse_ty_bare_fn(&mut self, lifetime_defs: Vec<ast::LifetimeDef>) -> PResult<Ty_> {    /// parse a TyBareFn type:ad�e����87��y1�
�
�
�
�
>

���|^,���X?+�
�
y
:
�	�	�	�	�	n		����qpS+�������[(�����W����H:)�����R3����RQ���i*�����        let sp = mk_sp(lo, self.last_span.hi);        }                          must be specified");                          "at least one type parameter bound \            self.span_err(last_span,            let last_span = self.last_span;        if bounds.is_empty() {        // and hence both L and R side are required.        // In type grammar, `+` is treated like a binary operator,        let bounds = try!(self.parse_ty_param_bounds(BoundParsingMode::Bare));        }            return Ok(lhs);        if !try!(self.eat(&token::BinOp(token::Plus)) ){        let lhs = try!(self.parse_ty_nopanic());        let lo = self.span.lo;    pub fn parse_ty_sum(&mut self) -> PResult<P<Ty>> {    /// Parse a type in a context where `T1+T2` is allowed.    }        }            Ok(DefaultReturn(mk_sp(pos, pos)))            let pos = self.span.lo;        } else {            }                Ok(Return(try!(self.parse_ty_nopanic())))            } else {                Ok(NoReturn(self.span))            if try!(self.eat(&token::Not) ){        if try!(self.eat(&token::RArrow) ){    pub fn parse_ret_ty(&mut self) -> PResult<FunctionRetTy> {    /// Parse optional return type [ -> TY ] in function decl    }        Ok(MutTy { ty: t, mutbl: mutbl })        let t = try!(self.parse_ty_nopanic());        let mutbl = try!(self.parse_mutability());    pub fn parse_mt(&mut self) -> PResult<MutTy> {    /// Parse a possibly mutable type    }        })            }))                span: mk_sp(lo, p.last_span.hi),                node: node,                attrs: attrs,                ident: name,                id: ast::DUMMY_NODE_ID,            Ok(P(TraitItem {            };                (ident, ast::MethodTraitItem(sig, body))                };                  }                                       token_str)[..]))                      return Err(p.fatal(&format!("expected `;` or `{{`, found `{}`",                      let token_str = p.this_token_to_string();                  _ => {                  }                    Some(body)                    attrs.extend(inner_attrs.iter().cloned());                        try!(p.parse_inner_attrs_and_block());                    let (inner_attrs, body) =                    debug!("parse_trait_methods(): parsing provided method");                  token::OpenDelim(token::Brace) => {                  }                    None                    debug!("parse_trait_methods(): parsing required method");                    try!(p.bump());                  token::Semi => {                let body = match p.token {                };                    explicit_self: explicit_self,                    abi: abi,                    generics: generics,                    decl: d,                    constness: constness,                    unsafety: unsafety,                let sig = ast::MethodSig {                generics.where_clause = try!(p.parse_where_clause());                }));                    p.parse_arg_general(false)                    // definition...                    // argument names to be left off if there is a                    // This is somewhat dubious; We don't want to allow                let (explicit_self, d) = try!(p.parse_fn_decl_with_self(|p|{                let mut generics = try!(p.parse_generics());                let ident = try!(p.parse_ident());                let (constness, unsafety, abi) = try!(p.parse_fn_front_matter());            } else {                (ident, ConstTraitItem(ty, default))                };                    NoneadG�^����r7�����a!�
�
}
I

����p^PO���yk0�
�
y
c
!
�	�	�	�	J	(	����Q!��vK���j��`H ����f;���wcR����_!��    pub fn parse_borrowed_pointee(&mut self) -> PResult<Ty_> {    }        Ok(P(Ty {id: ast::DUMMY_NODE_ID, node: t, span: sp}))        let sp = mk_sp(lo, self.last_span.hi);        };            return Err(self.fatal(&msg[..]));            let msg = format!("expected type, found `{}`", this_token_str);            let this_token_str = self.this_token_to_string();        } else {            TyInfer            // TYPE TO BE INFERRED        } else if try!(self.eat(&token::Underscore) ){            try!(self.parse_ty_path())            // NAMED TYPE                  self.token.is_path() {                  self.token.is_ident() ||        } else if self.check(&token::ModSep) ||            TyPath(Some(qself), path)                 try!(self.parse_qualified_path(NoTypesAllowed));            let (qself, path) =        } else if try!(self.eat_lt()) {            TyTypeof(e)            try!(self.expect(&token::CloseDelim(token::Paren)));            let e = try!(self.parse_expr_nopanic());            try!(self.expect(&token::OpenDelim(token::Paren)));            // In order to not be ambiguous, the type must be surrounded by parens.            // TYPEOF        } else if try!(self.eat_keyword_noexpect(keywords::Typeof)) {            try!(self.parse_ty_bare_fn(Vec::new()))            // BARE FUNCTION        } else if self.token_is_bare_fn_keyword() {            try!(self.parse_for_in_type())        } else if self.check_keyword(keywords::For) {            try!(self.parse_borrowed_pointee())            try!(self.expect_and());            // BORROWED POINTER                  self.token == token::AndAnd {        } else if self.check(&token::BinOp(token::And)) ||            t            try!(self.expect(&token::CloseDelim(token::Bracket)));            };                Some(suffix) => TyFixedLengthVec(t, suffix)                None => TyVec(t),            let t = match try!(self.maybe_parse_fixed_length_of_vec()) {            // where `e` is a const expression            // Parse the `; e` in `[ i32; e ]`            let t = try!(self.parse_ty_sum());            try!(self.expect(&token::OpenDelim(token::Bracket)));            // VECTOR        } else if self.check(&token::OpenDelim(token::Bracket)) {            TyPtr(try!(self.parse_ptr()))            try!(self.bump());            // STAR POINTER (bare pointer?)        } else if self.check(&token::BinOp(token::Star)) {            }                TyTup(ts)            } else {                TyParen(ts.into_iter().nth(0).unwrap())            if ts.len() == 1 && !last_comma {            try!(self.expect(&token::CloseDelim(token::Paren)));            }                }                    break;                    last_comma = false;                } else {                    try!(self.bump());                    last_comma = true;                if self.check(&token::Comma) {                ts.push(try!(self.parse_ty_sum()));            while self.token != token::CloseDelim(token::Paren) {            let mut last_comma = false;            let mut ts = vec![];            // of type t            // (t,) is the type of a tuple with only one field,            // (t) is a parenthesized ty            try!(self.bump());        let t = if self.check(&token::OpenDelim(token::Paren)) {        let lo = self.span.lo;        maybe_whole!(no_clone self, NtTy);    pub fn parse_ty_nopanic(&mut self) -> PResult<P<Ty>> {    /// Parse a type.    }        Ok(P(Ty {id: ast::DUMMY_NODE_ID, node: sum, span: sp}))        let sum = ast::TyObjectSum(lhs, bounds);ad�l�utL���R9(�
�
D

������\4	�����PO6�
�
h
!



�	�	j	*	����_O>��bWV+*������_:43���V0���}raN8
��e/	�����m2��                    ExprLit(ref lit) => { Ok(lit.node.clone()) }                match v.node {            token::Interpolated(token::NtExpr(ref v)) => {        match *tok {    pub fn lit_from_token(&self, tok: &token::Token) -> PResult<Lit_> {    /// Matches token_lit = LIT_INTEGER | ...    }        }            Ok(None)        } else {            Ok(Some(try!(self.parse_expr_nopanic())))            try!(self.bump());        if self.check(&token::Semi) {    pub fn maybe_parse_fixed_length_of_vec(&mut self) -> PResult<Option<P<ast::Expr>>> {    }        })            id: ast::DUMMY_NODE_ID            pat: pat,            ty: t,        Ok(Arg {        };            })                span: mk_sp(self.span.lo, self.span.hi),                node: TyInfer,                id: ast::DUMMY_NODE_ID,            P(Ty {        } else {            try!(self.parse_ty_sum())        let t = if try!(self.eat(&token::Colon) ){        let pat = try!(self.parse_pat_nopanic());    pub fn parse_fn_block_arg(&mut self) -> PResult<Arg> {    /// Parse an argument in a lambda header e.g. |arg, arg|    }        self.parse_arg_general(true)    pub fn parse_arg(&mut self) -> PResult<Arg> {    /// Parse a single function argument    }        })            id: ast::DUMMY_NODE_ID,            pat: pat,            ty: t,        Ok(Arg {        let t = try!(self.parse_ty_sum());        };                                   special_idents::invalid)                                   self.last_span,            ast_util::ident_to_pat(ast::DUMMY_NODE_ID,            debug!("parse_arg_general ident_to_pat");        } else {            pat            try!(self.expect(&token::Colon));            let pat = try!(self.parse_pat_nopanic());                   require_name);            debug!("parse_arg_general parse_pat (require_name:{})",        let pat = if require_name || self.is_named_argument() {    pub fn parse_arg_general(&mut self, require_name: bool) -> PResult<Arg> {    /// identifier names.    /// This version of parse arg doesn't necessarily require    }        }                && self.look_ahead(offset + 1, |t| *t == token::Colon)            self.look_ahead(offset, |t| is_plain_ident_or_underscore(t))        } else {                && self.look_ahead(1, |t| *t == token::Colon)            is_plain_ident_or_underscore(&self.token)        if offset == 0 {        debug!("parser is_named_argument offset:{}", offset);        };            _ => 0            _ if self.token.is_keyword(keywords::Mut) => 1,            token::AndAnd => 1,            token::BinOp(token::And) => 1,        let offset = match self.token {    pub fn is_named_argument(&mut self) -> bool {    }        Ok(MutTy { ty: t, mutbl: mutbl })        let t = try!(self.parse_ty_nopanic());        };            MutImmutable                           known as `*const T`");                           likely use `*mut T`, but otherwise `*T` is now \                          "bare raw pointers are no longer allowed, you should \            self.span_err(span,            let span = self.last_span;        } else {            MutImmutable        } else if try!(self.eat_keyword(keywords::Const) ){            MutMutable        let mutbl = if try!(self.eat_keyword(keywords::Mut) ){    pub fn parse_ptr(&mut self) -> PResult<MutTy> {    }        return Ok(TyRptr(opt_lifetime, mt));        let mt = try!(self.parse_mt());        let opt_lifetime = try!(self.parse_opt_lifetime());        // look for `&'lt` or `&'foo ` and interpret `foo` as the region name:adA�Y���r:���H�
�
x
#
��zQ�s1�
�
y
H
2

�	�	k	>	(		��i
����G54�����`A����N�����@����b'&��vePF@?���    // Assumes that the leading `<` has been parsed already.    // QUALIFIED PATH `<TYPE [as TRAIT_REF]>::IDENT[::<PARAMS>]`    }        }            Ok(expr)        } else {            Ok(self.mk_expr(minus_lo, minus_hi, unary))            let unary = self.mk_unary(UnNeg, expr);            let minus_hi = self.span.hi;        if minus_present {        let expr = self.mk_expr(lo, hi, ExprLit(literal));        let hi = self.span.hi;        let literal = P(try!(self.parse_lit()));        let lo = self.span.lo;        let minus_present = try!(self.eat(&token::BinOp(token::Minus)));        let minus_lo = self.span.lo;    pub fn parse_literal_maybe_minus(&mut self) -> PResult<P<Expr>> {    /// matches '-' lit | lit    }        Ok(codemap::Spanned { node: lit, span: mk_sp(lo, self.last_span.hi) })        };            lit            let lit = try!(self.lit_from_token(&token));            let token = try!(self.bump_and_get());        } else {            LitBool(false)        } else if try!(self.eat_keyword(keywords::False) ){            LitBool(true)        let lit = if try!(self.eat_keyword(keywords::True) ){        let lo = self.span.lo;    pub fn parse_lit(&mut self) -> PResult<Lit> {    /// Matches lit = true | false | token_lit    }        }            _ => { return Err(self.unexpected_last(tok)); }            }                Ok(out)                }                    self.expect_no_suffix(sp, &*format!("{} literal", lit.short_name()), suf)                    let sp = self.last_span;                if suffix_illegal {                };                         LitBinary(Rc::new(i.as_str().as_bytes().iter().cloned().collect()))),                        (true,                    token::BinaryRaw(i, _) =>                        (true, LitBinary(parse::binary_lit(i.as_str()))),                    token::Binary(i) =>                    }                            ast::RawStr(n)))                            token::intern_and_get_ident(&parse::raw_str_lit(s.as_str())),                         LitStr(                        (true,                    token::StrRaw(s, n) => {                    }                                ast::CookedStr))                         LitStr(token::intern_and_get_ident(&parse::str_lit(s.as_str())),                        (true,                    token::Str_(s) => {                    }                                                 self.last_span))                                                  &self.sess.span_diagnostic,                                                 suf.as_ref().map(|s| s.as_str()),                        (false, parse::float_lit(s.as_str(),                    token::Float(s) => {                    }                                                   self.last_span))                                                   &self.sess.span_diagnostic,                                                   suf.as_ref().map(|s| s.as_str()),                        (false, parse::integer_lit(s.as_str(),                    token::Integer(s) => {                    // internally.                    // float literals, so all the handling is done                    // there are some valid suffixes for integer and                    token::Char(i) => (true, LitChar(parse::char_lit(i.as_str()).0)),                    token::Byte(i) => (true, LitByte(parse::byte_lit(i.as_str()).0)),                let (suffix_illegal, out) = match lit {            token::Literal(lit, suf) => {            }                }                    _ => { return Err(self.unexpected_last(tok)); }ad�g�}J	���~_>0%$�
�
�
�
�
e
d
@

���ZL,������WM#"�
g


�	�	q			�����i10��c?���YK+�������bK3�������u���srJ��c9��                    bindings: OwnedSlice::from_vec(bindings),                    types: OwnedSlice::from_vec(types),                    lifetimes: lifetimes,                ast::AngleBracketedParameters(ast::AngleBracketedParameterData {                let (lifetimes, types, bindings) = try!(self.parse_generic_values_after_lt());            let parameters = if try!(self.eat_lt() ){            // Parse types, optionally.            let identifier = try!(self.parse_ident_or_self_type());            // First, parse an identifier.        loop {        let mut segments = Vec::new();    pub fn parse_path_segments_without_colons(&mut self) -> PResult<Vec<ast::PathSegment>> {    /// - `a::b<T,U>::c(V)`    /// - `a::b<T,U>::c(V) -> W`    /// - `a::b<T,U>::c<V,W>`    /// Examples:    }        })            segments: segments,            global: is_global,            span: span,        Ok(ast::Path {        // Assemble the result.        let span = mk_sp(lo, self.last_span.hi);        // Assemble the span.        };            }                try!(self.parse_path_segments_without_types())            NoTypesAllowed => {            }                try!(self.parse_path_segments_with_colons())            LifetimeAndTypesWithColons => {            }                try!(self.parse_path_segments_without_colons())            LifetimeAndTypesWithoutColons => {        let segments = match mode {        // A bound set is a set of type parameter bounds.        // identifier followed by an optional lifetime and a set of types.        // Parse any number of segments and bound sets. A segment is an        let is_global = try!(self.eat(&token::ModSep));        let lo = self.span.lo;        }            return Ok(*path);        if let Some(token::Interpolated(token::NtPath(path))) = found {        };            _ => None,            token::Interpolated(token::NtPath(_)) => Some(try!(self.bump_and_get())),        let found = match self.token {        // Check for a whole path...    pub fn parse_path(&mut self, mode: PathParsingMode) -> PResult<ast::Path> {    /// groups.    /// bounds are permitted and whether `::` must precede type parameter    /// mode. The `mode` parameter determines whether lifetimes, types, and/or    /// Parses a path and optional type parameter bounds, depending on the    }        Ok((qself, path))        path.span.hi = self.last_span.hi;        }            path.span.lo = self.last_span.lo;        if path.segments.len() == 1 {        path.segments.extend(segments);        };            }                try!(self.parse_path_segments_without_types())            NoTypesAllowed => {            }                try!(self.parse_path_segments_with_colons())            LifetimeAndTypesWithColons => {            }                try!(self.parse_path_segments_without_colons())            LifetimeAndTypesWithoutColons => {        let segments = match mode {        try!(self.expect(&token::ModSep));        try!(self.expect(&token::Gt));        };            position: path.segments.len()            ty: self_type,        let qself = QSelf {        };            }                segments: vec![]                global: false,                span: self.span,            ast::Path {        } else {            try!(self.parse_path(LifetimeAndTypesWithoutColons))        let mut path = if try!(self.eat_keyword(keywords::As)) {        let self_type = try!(self.parse_ty_sum());                                -> PResult<(QSelf, ast::Path)> {    pub fn parse_qualified_path(&mut self, mode: PathParsingMode)ad"�g��yx?	���\$�
�
�
�
�
b
9

������]���pK=3-,�
�
~
o
D

�	�	�	o	C		�����q8��|��oWCB����q>
����xrqp^J����IH���~}O������    }        }            }                return Ok(segments);            if !try!(self.eat(&token::ModSep) ){            // If we do not see a `::`, stop.            });                parameters: ast::PathParameters::none()                identifier: identifier,            segments.push(ast::PathSegment {            // Assemble and push the result.            let identifier = try!(self.parse_ident_or_self_type());            // First, parse an identifier.        loop {        let mut segments = Vec::new();    pub fn parse_path_segments_without_types(&mut self) -> PResult<Vec<ast::PathSegment>> {    /// - `a::b::c`    /// Examples:    }        }            }                });                    parameters: ast::PathParameters::none(),                    identifier: identifier,                segments.push(ast::PathSegment {                // Consumed `a::`, go look for `b`            } else {                }                    return Ok(segments);                if !try!(self.eat(&token::ModSep) ){                // Consumed `a::b::<T,U>`, check for `::` before proceeding                });                    }),                        bindings: OwnedSlice::from_vec(bindings),                        types: OwnedSlice::from_vec(types),                        lifetimes: lifetimes,                    parameters: ast::AngleBracketedParameters(ast::AngleBracketedParameterData {                    identifier: identifier,                segments.push(ast::PathSegment {                let (lifetimes, types, bindings) = try!(self.parse_generic_values_after_lt());                // Consumed `a::b::<`, go look for types            if try!(self.eat_lt() ){            // Check for a type segment.            }                return Ok(segments);                });                    parameters: ast::PathParameters::none()                    identifier: identifier,                segments.push(ast::PathSegment {            if !try!(self.eat(&token::ModSep) ){            // If we do not see a `::`, stop.            let identifier = try!(self.parse_ident_or_self_type());            // First, parse an identifier.        loop {        let mut segments = Vec::new();    pub fn parse_path_segments_with_colons(&mut self) -> PResult<Vec<ast::PathSegment>> {    /// - `a::b::<T,U>::c`    /// Examples:    }        }            }                return Ok(segments);            if !try!(self.eat(&token::ModSep) ){            // Continue only if we see a `::`                                             parameters: parameters });            segments.push(ast::PathSegment { identifier: identifier,            // Assemble and push the result.            };                ast::PathParameters::none()            } else {                })                    output: output_ty,                    inputs: inputs,                    span: mk_sp(lo, hi),                ast::ParenthesizedParameters(ast::ParenthesizedParameterData {                let hi = self.last_span.hi;                };                    None                } else {                    Some(try!(self.parse_ty_nopanic()))                let output_ty = if try!(self.eat(&token::RArrow) ){                    |p| p.parse_ty_sum()));                    seq_sep_trailing_allowed(token::Comma),                    &token::CloseDelim(token::Paren),                let inputs = try!(self.parse_seq_to_end(                let lo = self.last_span.lo;            } else if try!(self.eat(&token::OpenDelim(token::Paren)) ){                })ad4�k��yT��������?$�
�
�
a
A
 

�����~����|]5�
�
�
G
&
�	�	�	]	K	J	3		�����h(�F������E��7����pH
������|\NM.$��uZI,"��    /// Parse ident COLON expr    }        }            Ok(MutImmutable)        } else {            Ok(MutMutable)        if try!(self.eat_keyword(keywords::Mut) ){    pub fn parse_mutability(&mut self) -> PResult<Mutability> {    /// Parse mutability declaration (mut/const/imm)    }        }            try!(self.bump());            }                return Ok(res);            if self.token != sep {            }                }                    return Ok(res);                _ => {                }                    res.push(try!(self.parse_lifetime()));                token::Lifetime(_) => {            match self.token {        loop {        let mut res = Vec::new();    pub fn parse_lifetimes(&mut self, sep: token::Token) -> PResult<Vec<ast::Lifetime>> {    /// like `<'a, 'b, T>`.    /// either a comma or `>`.  Used when parsing type parameter lists, where we expect something    /// Parses zero or more comma separated lifetimes. Expects each lifetime to be followed by    ///    /// one too, but putting that in there messes up the grammar....    /// matches lifetimes = ( lifetime ) | ( lifetime , lifetimes ) actually, it matches the empty    }        }            }                }                    return Err(self.fatal(&msg[..]));                                      this_token_str);                                      name, found `{}`",                    let msg = format!("expected `,` or `>` after lifetime \                    let this_token_str = self.this_token_to_string();                _ => {                token::BinOp(token::Shr) => { return Ok(res); }                token::Gt => { return Ok(res); }                token::Comma => { try!(self.bump());}            match self.token {            }                }                    return Ok(res);                _ => {                }                                                bounds: bounds });                    res.push(ast::LifetimeDef { lifetime: lifetime,                        };                            Vec::new()                        } else {                            try!(self.parse_lifetimes(token::BinOp(token::Plus)))                        if try!(self.eat(&token::Colon) ){                    let bounds =                    let lifetime = try!(self.parse_lifetime());                token::Lifetime(_) => {            match self.token {        loop {        let mut res = Vec::new();    pub fn parse_lifetime_defs(&mut self) -> PResult<Vec<ast::LifetimeDef>> {    /// lifetime [':' lifetimes]`    /// Parses `lifetime_defs = [ lifetime_defs { ',' lifetime_defs } ]` where `lifetime_def  =    }        }            }                return Err(self.fatal(&format!("expected a lifetime name")));            _ => {            }                });                    name: i.name                    span: span,                    id: ast::DUMMY_NODE_ID,                return Ok(ast::Lifetime {                try!(self.bump());                let span = self.span;            token::Lifetime(i) => {        match self.token {    pub fn parse_lifetime(&mut self) -> PResult<ast::Lifetime> {    /// Matches lifetime = LIFETIME    /// Parses a single lifetime    }        }            }                Ok(None)            _ => {            }                Ok(Some(try!(self.parse_lifetime())))            token::Lifetime(..) => {        match self.token {    pub fn parse_opt_lifetime(&mut self) -> PResult<Option<ast::Lifetime>> {    /// parses 0 or 1 lifetimead	v���]3����{ut"�
�
�
�
�
�
S
5
/
.
����V<65���mD>=�
�
�
�
�
�
X
4



�	�	�	�	1			
	��jdcA����f������a!	�������zy5����te(���S21����x]-
	                try!(self.bump());            token::OpenDelim(token::Paren) => {        match self.token {        // Note: when adding new syntax here, don't forget to adjust Token::can_begin_expr().        let ex: Expr_;        let mut hi = self.span.hi;        let lo = self.span.lo;        maybe_whole_expr!(self);    pub fn parse_bottom_expr(&mut self) -> PResult<P<Expr>> {    /// macros, return, etc.    /// parse things like parenthesized exprs,    /// At the bottom (top?) of the precedence hierarchy,    }        }            _ => Err(self.fatal("expected open delimiter")),            },                Ok(delim)                try!(self.bump());            token::OpenDelim(delim) => {        match self.token {        self.expected_tokens.push(TokenType::Token(token::Gt));    fn expect_open_delim(&mut self) -> PResult<token::DelimToken> {    }        })            span: *span,            node: ExprLit(lv_lit),            id: ast::DUMMY_NODE_ID,        P(Expr {        });            span: *span            node: LitInt(i as u64, ast::UnsignedIntLit(TyU32)),        let lv_lit = P(codemap::Spanned {        let span = &self.span;    pub fn mk_lit_u32(&mut self, i: u32) -> P<Expr> {    }        })            span: mk_sp(lo, hi),            node: ExprMac(codemap::Spanned {node: m, span: mk_sp(lo, hi)}, delim),            id: ast::DUMMY_NODE_ID,        P(Expr {                       delim: token::DelimToken) -> P<Expr> {                       m: Mac_,                       hi: BytePos,                       lo: BytePos,    pub fn mk_mac_expr(&mut self,    }        ExprAssignOp(binop, lhs, rhs)                        lhs: P<Expr>, rhs: P<Expr>) -> ast::Expr_ {    pub fn mk_assign_op(&mut self, binop: ast::BinOp,    }        ExprTupField(expr, idx)    pub fn mk_tup_field(&mut self, expr: P<Expr>, idx: codemap::Spanned<usize>) -> ast::Expr_ {    }        ExprField(expr, ident)    pub fn mk_field(&mut self, expr: P<Expr>, ident: ast::SpannedIdent) -> ast::Expr_ {    }        ExprRange(start, end)                    -> ast::Expr_ {                    end: Option<P<Expr>>)                    start: Option<P<Expr>>,    pub fn mk_range(&mut self,    }        ExprIndex(expr, idx)    pub fn mk_index(&mut self, expr: P<Expr>, idx: P<Expr>) -> ast::Expr_ {    }        ExprMethodCall(ident, tps, args)                      -> ast::Expr_ {                      args: Vec<P<Expr>>)                      tps: Vec<P<Ty>>,                      ident: ast::SpannedIdent,    fn mk_method_call(&mut self,    }        ExprCall(f, args)    pub fn mk_call(&mut self, f: P<Expr>, args: Vec<P<Expr>>) -> ast::Expr_ {    }        ExprBinary(binop, lhs, rhs)    pub fn mk_binary(&mut self, binop: ast::BinOp, lhs: P<Expr>, rhs: P<Expr>) -> ast::Expr_ {    }        ExprUnary(unop, expr)    pub fn mk_unary(&mut self, unop: ast::UnOp, expr: P<Expr>) -> ast::Expr_ {    }        })            span: mk_sp(lo, hi),            node: node,            id: ast::DUMMY_NODE_ID,        P(Expr {    pub fn mk_expr(&mut self, lo: BytePos, hi: BytePos, node: Expr_) -> P<Expr> {    }        })            expr: e,            span: mk_sp(lo, e.span.hi),            ident: spanned(lo, hi, i),        Ok(ast::Field {        let e = try!(self.parse_expr_nopanic());        try!(self.expect(&token::Colon));        let hi = self.last_span.hi;        let i = try!(self.parse_ident());        let lo = self.span.lo;    pub fn parse_field(&mut self) -> PResult<Field> {ad&�Q��wG�}$�
�
�
�
y
I
*


���y!���}=.�
�
�

T

�	�	�	[	0		����`;���_-��~/��|Q��B��tW#���tL>+���                        try!(self.parse_qualified_path(LifetimeAndTypesWithColons));                    let (qself, path) =                if try!(self.eat_lt()){            _ => {            }                hi = self.last_span.hi;                }                    }                        ex = ExprVec(vec!(first_expr));                        try!(self.expect(&token::CloseDelim(token::Bracket)));                        // Vector with one element.                    } else {                        ex = ExprVec(exprs);                        exprs.extend(remaining_exprs.into_iter());                        let mut exprs = vec!(first_expr);                                ));                            |p| Ok(try!(p.parse_expr_nopanic()))                            seq_sep_trailing_allowed(token::Comma),                            &token::CloseDelim(token::Bracket),                        let remaining_exprs = try!(self.parse_seq_to_end(                        try!(self.bump());                        // Vector with two or more elements.                    } else if self.check(&token::Comma) {                        ex = ExprRepeat(first_expr, count);                        try!(self.expect(&token::CloseDelim(token::Bracket)));                        let count = try!(self.parse_expr_nopanic());                        try!(self.bump());                        // Repeating vector syntax: [ 0; 512 ]                    if self.check(&token::Semi) {                    let first_expr = try!(self.parse_expr_nopanic());                    // Nonempty vector.                } else {                    ex = ExprVec(Vec::new());                    try!(self.bump());                    // Empty vector.                if self.check(&token::CloseDelim(token::Bracket)) {                try!(self.bump());            token::OpenDelim(token::Bracket) => {            }                hi = self.last_span.hi;                ex = ExprPath(None, path);                let path = ast_util::ident_to_path(mk_sp(lo, hi), id);                try!(self.bump());                         }, token::Plain) => {                            ctxt: _                            name: token::SELF_KEYWORD_NAME,            token::Ident(id @ ast::Ident {            },                return self.parse_lambda_expr(lo, CaptureByRef);                let lo = self.span.lo;            token::BinOp(token::Or) |  token::OrOr => {            },                return self.parse_block_expr(lo, DefaultBlock);            token::OpenDelim(token::Brace) => {            },                }                    Ok(self.mk_expr(lo, hi, ExprTup(es)))                } else {                    Ok(self.mk_expr(lo, hi, ExprParen(es.into_iter().nth(0).unwrap())))                return if es.len() == 1 && !trailing_comma {                hi = self.last_span.hi;                try!(self.bump());                }                    }                        break;                        trailing_comma = false;                    } else {                        try!(self.bump());                        trailing_comma = true;                    if self.check(&token::Comma) {                                     &[token::Comma, token::CloseDelim(token::Paren)]));                    try!(self.commit_expr(&**es.last().unwrap(), &[],                    es.push(try!(self.parse_expr_nopanic()));                while self.token != token::CloseDelim(token::Paren) {                let mut trailing_comma = false;                let mut es = vec![];                // (e,) is a tuple with only one field, e                // (e) is parenthesized ead2�P��u9	��vE3�
�
�
s
;
)
���f%���H2�
�
�
9
'
�	�	�	b	7	���cF���T ���I7���Z2���`8��gJ��v7�����                        try!(self.parse_path(LifetimeAndTypesWithColons));                    let pth =                        !self.check_keyword(keywords::False) {                        !self.check_keyword(keywords::True) &&                        self.token.is_ident() &&                } else if self.check(&token::ModSep) ||                    hi = self.span.hi;                    }                        ex = ExprBreak(None);                    } else {                        ex = ExprBreak(Some(lifetime));                        try!(self.bump());                        let lifetime = self.get_lifetime();                    if self.token.is_lifetime() {                    // BREAK expression                } else if try!(self.eat_keyword(keywords::Break) ){                    }                        ex = ExprRet(None);                    } else {                        ex = ExprRet(Some(e));                        hi = e.span.hi;                        let e = try!(self.parse_expr_nopanic());                    if self.token.can_begin_expr() {                    // RETURN expression                if try!(self.eat_keyword(keywords::Return) ){                }                        UnsafeBlock(ast::UserProvided));                        lo,                    return self.parse_block_expr(                if try!(self.eat_keyword(keywords::Unsafe) ){                }                    return self.parse_match_expr();                if try!(self.eat_keyword(keywords::Match) ){                }                    return Ok(self.mk_expr(lo, hi, ex));                    let hi = self.span.hi;                    };                        ExprAgain(None)                    } else {                        ExprAgain(Some(lifetime))                        try!(self.bump());                        let lifetime = self.get_lifetime();                    let ex = if self.token.is_lifetime() {                    let lo = self.span.lo;                if try!(self.eat_keyword(keywords::Continue) ){                }                    return self.parse_loop_expr(None);                if try!(self.eat_keyword(keywords::Loop) ){                }                    return Err(self.fatal("expected `while`, `for`, or `loop` after a label"))                    }                        return self.parse_loop_expr(Some(lifetime))                    if try!(self.eat_keyword(keywords::Loop) ){                    }                        return self.parse_for_expr(Some(lifetime))                    if try!(self.eat_keyword(keywords::For) ){                    }                        return self.parse_while_expr(Some(lifetime))                    if try!(self.eat_keyword(keywords::While) ){                    try!(self.expect(&token::Colon));                    try!(self.bump());                    let lifetime = self.get_lifetime();                if self.token.is_lifetime() {                }                    return self.parse_while_expr(None);                if try!(self.eat_keyword(keywords::While) ){                }                    return self.parse_for_expr(None);                if try!(self.eat_keyword(keywords::For) ){                }                    return self.parse_if_expr();                if try!(self.eat_keyword(keywords::If)) {                }                    return self.parse_lambda_expr(lo, CaptureByValue);                    let lo = self.last_span.lo;                if try!(self.eat_keyword(keywords::Move) ){                }                    return Ok(self.mk_expr(lo, hi, ExprPath(Some(qself), path)));                    hi = path.span.hi;aduP�}F��a5�
�
�
�
Z

��n!��dI �
�
�
Q
P
�	�	h	=			�~<����A�j����G����oA(���r`RHG��m1����ut    /// parse a.b or a(13) or a[4] or just a    }        return Ok(self.mk_expr(blk.span.lo, blk.span.hi, ExprBlock(blk)));        let blk = try!(self.parse_block_tail(lo, blk_mode));        try!(self.expect(&token::OpenDelim(token::Brace)));                            -> PResult<P<Expr>> {    pub fn parse_block_expr(&mut self, lo: BytePos, blk_mode: BlockCheckMode)    /// Parse a block or unsafe block    }        return Ok(self.mk_expr(lo, hi, ex));        }            }                }                    ex = ExprLit(P(lit));                    hi = lit.span.hi;                    let lit = try!(self.parse_lit());                    // other literal expression                } else {                    ex = ExprPath(None, pth);                    hi = pth.span.hi;                    }                        }                            return Ok(self.mk_expr(lo, hi, ex));                            ex = ExprStruct(pth, fields, base);                            try!(self.expect(&token::CloseDelim(token::Brace)));                            hi = self.span.hi;                            }                                              syntax");                                              functional structure update \                                              have at least one field or use \                                              "structure literal must either \                                self.span_err(last_span,                                let last_span = self.last_span;                            if fields.is_empty() && base.is_none() {                            }                                                 &[token::CloseDelim(token::Brace)]));                                                 &[token::Comma],                                try!(self.commit_expr(&*fields.last().unwrap().expr,                                fields.push(try!(self.parse_field()));                                }                                    break;                                    base = Some(try!(self.parse_expr_nopanic()));                                if try!(self.eat(&token::DotDot) ){                            while self.token != token::CloseDelim(token::Brace) {                            let mut base = None;                            let mut fields = Vec::new();                            try!(self.bump());                            // It's a struct literal.                        if !prohibited {                        );                            RESTRICTION_NO_STRUCT_LITERAL                        let prohibited = self.restrictions.contains(                        // from parsing struct literals here.                        // This is a struct literal, unless we're prohibited                    if self.check(&token::OpenDelim(token::Brace)) {                    }                                                   delim));                                                   MacInvocTT(pth, tts, EMPTY_CTXT),                                                   hi,                        return Ok(self.mk_mac_expr(lo,                        let hi = self.last_span.hi;                            |p| p.parse_token_tree()));                            seq_sep_none(),                            &token::CloseDelim(delim),                        let tts = try!(self.parse_seq_to_end(                        let delim = try!(self.expect_open_delim());                        try!(self.bump());                        // MACRO INVOCATION expression                    if self.check(&token::Not) {                    // `!`, as an operator, is prefix, so we know this isn't thatad
}U��a[Z�����kH�
�
�
N

���ji;���[4�
�
o
-
�	�	�	L	K		��cI*���5����W���po4����qp.��k.��Y?)��}|                    let last_span = self.last_span;                    try!(self.bump());                  token::Literal(token::Float(n), _suf) => {                  }                    }                        }                            self.span_err(last_span, "invalid tuple or tuple struct index");                            let last_span = self.last_span;                        None => {                        }                            e = self.mk_expr(lo, hi, field);                            let field = self.mk_tup_field(e, id);                            let id = spanned(dot, hi, n);                        Some(n) => {                    match index {                    let index = n.as_str().parse::<usize>().ok();                    try!(self.bump());                    hi = self.span.hi;                    let dot = self.last_span.hi;                    self.expect_no_suffix(sp, "tuple index", suf);                    // A tuple index may not have a suffix                    let sp = self.span;                  token::Literal(token::Integer(n), suf) => {                  }                    }                        }                            e = self.mk_expr(lo, hi, field);                            let field = self.mk_field(e, id);                            let id = spanned(dot, hi, i);                            }                                               have type parameters");                                              "field expressions may not \                                self.span_err(last_span,                                let last_span = self.last_span;                            if !tys.is_empty() {                        _ => {                        }                            e = self.mk_expr(lo, hi, nd);                            let nd = self.mk_method_call(id, tys, es);                            let id = spanned(dot, hi, i);                            es.insert(0, e);                            hi = self.last_span.hi;                            ));                                |p| Ok(try!(p.parse_expr_nopanic()))                                seq_sep_trailing_allowed(token::Comma),                                &token::CloseDelim(token::Paren),                                &token::OpenDelim(token::Paren),                            let mut es = try!(self.parse_unspanned_seq(                        token::OpenDelim(token::Paren) => {                    match self.token {                    // expr.f() method call                    }                        self.span_err(last_span, "type bindings are only permitted on trait paths");                        let last_span = self.last_span;                    if !bindings.is_empty() {                    };                        (Vec::new(), Vec::new(), Vec::new())                    } else {                        try!(self.parse_generic_values_after_lt())                        try!(self.expect_lt());                    let (_, tys, bindings) = if try!(self.eat(&token::ModSep) ){                    try!(self.bump());                    hi = self.span.hi;                    let dot = self.last_span.hi;                  token::Ident(i, _) => {                match self.token {            if try!(self.eat(&token::Dot) ){            // expr.f        loop {        let mut hi;        let lo = e.span.lo;        let mut e = e0;    pub fn parse_dot_or_call_expr_with(&mut self, e0: P<Expr>) -> PResult<P<Expr>> {    }        self.parse_dot_or_call_expr_with(b)        let b = try!(self.parse_bottom_expr());    pub fn parse_dot_or_call_expr(&mut self) -> PResult<P<Expr>> {adiR��U��oT�
�
<
&
������vA"��h2�
�
�
�
�
R
$


�	�	v	S		��i9)	������bB����9��mU�<��W+��Q8�ih                    let name = try!(self.parse_ident());                    let namep = match self.token { token::Ident(_, p) => p, _ => token::Plain };                    sp = mk_sp(sp.lo, self.span.hi);                } else {                    return Ok(TtToken(sp, SpecialVarNt(SpecialMacroVar::CrateMacroVar)));                    try!(self.bump());                } else if self.token.is_keyword_allow_following_colon(keywords::Crate) {                                      })));                                          num_captures: name_num                                          op: repeat,                                          separator: sep,                                          tts: seq,                                      Rc::new(SequenceRepetition {                    return Ok(TtSequence(mk_sp(sp.lo, seq_span.hi),                    let name_num = macro_parser::count_names(&seq);                    let (sep, repeat) = try!(self.parse_sep_and_kleene_op());                    ));                        |p| p.parse_token_tree()                        seq_sep_none(),                        &token::CloseDelim(token::Paren),                        &token::OpenDelim(token::Paren),                    let Spanned { node: seq, span: seq_span } = try!(self.parse_seq(                if self.token == token::OpenDelim(token::Paren) {                try!(self.bump());            token::Dollar => {        let (name, namep) = match self.token {        let mut sp = self.span;    fn parse_unquoted(&mut self) -> PResult<TokenTree> {    // Parse unquoted tokens after a `$` in a token tree    }        return Ok(e);        }            }              _ => return Ok(e)              }                e = self.mk_expr(lo, hi, index)                let index = self.mk_index(e, ix);                try!(self.commit_expr_expecting(&*ix, token::CloseDelim(token::Bracket)));                hi = self.span.hi;                let ix = try!(self.parse_expr_nopanic());                try!(self.bump());              token::OpenDelim(token::Bracket) => {              // Could be either an index expression or a slicing expression.              // expr[...]              }                e = self.mk_expr(lo, hi, nd);                let nd = self.mk_call(e, es);                hi = self.last_span.hi;                ));                    |p| Ok(try!(p.parse_expr_nopanic()))                    seq_sep_trailing_allowed(token::Comma),                    &token::CloseDelim(token::Paren),                    &token::OpenDelim(token::Paren),                let es = try!(self.parse_unspanned_seq(              token::OpenDelim(token::Paren) => {              // expr(...)            match self.token {            if self.expr_is_complete(&*e) { break; }            }                continue;                }                  _ => return Err(self.unexpected())                  }                    self.abort_if_errors();                    }                                    &float.fract().to_string()[1..]));                                    float.trunc() as usize,                            &format!("try parenthesizing the first index; e.g., `(foo.{}){}`",                        self.fileline_help(last_span,                        };                            None => continue,                            Some(f) => f,                        let float = match fstr.parse::<f64>().ok() {                    if fstr.chars().all(|x| "0123456789.".contains(x)) {                                  &format!("unexpected token: `{}`", n.as_str()));                    self.span_err(last_span,                    let fstr = n.as_str();ad$�Y����nPB"��+�
�
�
*
���qga`���]�
�
�
�
�
�
s

�	�	m	D			��~kM?43����uI�����L��\L$#��g&��wM��[*���                    };                        Some(&sp) => p.span_note(sp, "unclosed delimiter"),                        None => {}                    match p.open_braces.last() {                    // gotten to them yet.                    // previous unclosed delimiters could actually be closed! The parser just hasn't                    // This is a conservative error: only report the last unclosed delimiter. The                token::CloseDelim(_) => {            match p.token {            maybe_whole!(deref p, NtTT);        fn parse_non_delim_tt_tok(p: &mut Parser) -> PResult<TokenTree> {        // reaching this point.        // it were, parse_seq_to_before_end would have prevented        // not an EOF, and not the desired right-delimiter (if        // invariants: the current token is not a left-delimiter,        // this is the fall-through for the 'match' below.        maybe_whole!(deref self, NtTT);        // yet.        // whether something will be a nonterminal or a seq        // and token::SubstNt's; it's too early to know yet        // parses token trees but also identifies TtSequence's        // FIXME #6994: currently, this is too eager. It    pub fn parse_token_tree(&mut self) -> PResult<TokenTree> {    /// parse a single token tree from the input.    }        }            None => return Err(self.fatal("expected `*` or `+`"))            Some(zerok) => Ok((Some(separator), zerok)),        match try!(parse_kleene_op(self)) {        let separator = try!(self.bump_and_get());        }            None => {}            Some(kleene_op) => return Ok((None, kleene_op)),        match try!(parse_kleene_op(self)) {        };            }                _ => Ok(None)                },                    Ok(Some(ast::OneOrMore))                    try!(parser.bump());                token::BinOp(token::Plus) => {                },                    Ok(Some(ast::ZeroOrMore))                    try!(parser.bump());                token::BinOp(token::Star) => {            match parser.token {        fn parse_kleene_op(parser: &mut Parser) -> PResult<Option<ast::KleeneOp>> {    pub fn parse_sep_and_kleene_op(&mut self) -> PResult<(Option<token::Token>, ast::KleeneOp)> {    /// repetition token (+ or *).    /// Parse an optional separator followed by a Kleene-style    }        Ok(())        }            }                _ => {}                                       token::get_ident(name)))),                    return Err(self.fatal(&format!("unknown macro variable `{}`",                token::SubstNt(name, _) =>            match self.token {        if self.quote_depth == 0 {    pub fn check_unknown_macro_variable(&mut self) -> PResult<()> {    }        }            Ok(TtToken(sp, SubstNt(name, namep)))        } else {            Ok(TtToken(sp, MatchNt(name, nt_kind, namep, kindp)))            let nt_kind = try!(self.parse_ident());            let kindp = match self.token { token::Ident(_, p) => p, _ => token::Plain };            sp = mk_sp(sp.lo, self.span.hi);            try!(self.bump());                                                                !t.is_reserved_keyword()) {                                                                !t.is_strict_keyword() &&        if self.token == token::Colon && self.look_ahead(1, |t| t.is_ident() &&        // continue by trying to parse the `:ident` after `$name`        };            _ => unreachable!()            }                (name, namep)                try!(self.bump());            token::SubstNt(name, namep) => {            }                }                    (name, namep)ad�c�vE2��vdM
�
�
�
�
�
�
o
F
���d���ih;	�
�
�
{
>

�	�	�	�	{	O	,	���ts:�����QGA@���^)	���vu���|`6*���g[2����S.���            let e = try!(self.parse_prefix_expr());            let m = try!(self.parse_mutability());            try!(self.expect_and());          token::BinOp(token::And) | token::AndAnd => {          }            ex = self.mk_unary(UnDeref, e);            hi = e.span.hi;            let e = try!(self.parse_prefix_expr());            try!(self.bump());          token::BinOp(token::Star) => {          }            ex = self.mk_unary(UnNeg, e);            hi = e.span.hi;            let e = try!(self.parse_prefix_expr());            try!(self.bump());          token::BinOp(token::Minus) => {          }            ex = self.mk_unary(UnNot, e);            hi = e.span.hi;            let e = try!(self.parse_prefix_expr());            try!(self.bump());          token::Not => {        match self.token {        let ex;        // Note: when adding new unary operators, don't forget to adjust Token::can_begin_expr()        let hi;        let lo = self.span.lo;    pub fn parse_prefix_expr(&mut self) -> PResult<P<Expr>> {    /// Parse a prefix-operator expr    }        Ok(tts)        }            tts.push(try!(self.parse_token_tree()));        while self.token != token::Eof {        let mut tts = Vec::new();    pub fn parse_all_token_trees(&mut self) -> PResult<Vec<TokenTree>> {    // up to EOF.    // parse a stream of tokens into a list of TokenTree's,    }        }            _ => parse_non_delim_tt_tok(self),            },                })))                    close_span: close_span,                    tts: tts,                    open_span: open_span,                    delim: delim,                Ok(TtDelimited(span, Rc::new(Delimited {                let span = Span { hi: close_span.hi, ..pre_span };                // Expand to cover the entire delimited token tree                self.open_braces.pop().unwrap();                try!(self.bump());                let close_span = self.span;                // Parse the close delimiter.                ));                    |p| p.parse_token_tree()                    seq_sep_none(),                    &token::CloseDelim(delim),                let tts = try!(self.parse_seq_to_before_end(                // Parse the token trees within the delimiters                try!(self.bump());                let open_span = self.span;                self.open_braces.push(self.span);                // Parse the open delimiter.                let pre_span = self.span;                // The span for beginning of the delimited section            token::OpenDelim(delim) => {            },                return Err(self.fatal("this file contains an un-closed delimiter "));                // if we give it one                // There shouldn't really be a span, but it's easier for the test runner                }                    self.span_help(*sp, "did you mean to close this delimiter?");                for sp in &open_braces {                let open_braces = self.open_braces.clone();            token::Eof => {        match self.token {        }            }                }                    Ok(TtToken(p.span, try!(p.bump_and_get())))                _ => {                }                    p.parse_unquoted()                token::Dollar | token::SubstNt(..) if p.quote_depth > 0 => {                /* we ought to allow different depths of unquotation */                },                                    token_str)))                    Err(p.fatal(&format!("incorrect close delimiter: `{}`",                    let token_str = p.this_token_to_string();ad|S����_)�����z9�
y
0
��l��X�
�
Y
)

�	�	]	$				��^���}I?��rC=<��]\$#����`
���D���9���|{                    Ok(lhs)                } else {                    self.parse_more_binops(bin, min_prec)                    let bin = self.mk_expr(lhs_span.lo, rhs_span.hi, binary);                    let binary = self.mk_binary(codemap::respan(cur_op_span, cur_op), lhs, rhs);                    let rhs_span = rhs.span;                    let lhs_span = lhs.span;                    let rhs = try!(self.parse_more_binops(expr, cur_prec + 1));                    let expr = try!(self.parse_prefix_expr());                    try!(self.bump());                if cur_prec >= min_prec {                let cur_prec = operator_prec(cur_op);                }                    self.check_no_chained_comparison(&*lhs, cur_op)                if ast_util::is_comparison_binop(cur_op) {            Some(cur_op) => {        match cur_opt {        let cur_opt = self.token.to_binop();        let cur_op_span = self.span;        self.expected_tokens.push(TokenType::Operator);        if self.expr_is_complete(&*lhs) { return Ok(lhs); }    pub fn parse_more_binops(&mut self, lhs: P<Expr>, min_prec: usize) -> PResult<P<Expr>> {    /// Parse an expression of binops of at least min_prec precedence    }        self.parse_more_binops(prefix_expr, 0)        let prefix_expr = try!(self.parse_prefix_expr());    pub fn parse_binops(&mut self) -> PResult<P<Expr>> {    /// Parse an expression of binops    }        return Ok(self.mk_expr(lo, hi, ex));        }          _ => return self.parse_dot_or_call_expr()          }            ex = self.mk_unary(UnUniq, subexpression);            // instead.            // desugaring, should be `ExprBox(None, subexpression)`            // FIXME (pnkfelix): After working out kinks with box            hi = subexpression.span.hi;            let subexpression = try!(self.parse_prefix_expr());            // Otherwise, we use the unique pointer default.            }                }                    return Ok(self.mk_expr(lo, hi, ex));                    ex = ExprBox(Some(place), subexpression);                    hi = subexpression.span.hi;                    let subexpression = try!(self.parse_prefix_expr());                    }                        self.abort_if_errors();                                             "box()".to_string());                                             "try using `box()` instead:",                        self.span_suggestion(box_span,                        let box_span = mk_sp(lo, box_hi);                                              this_token_to_string));                                      &format!("expected expression, found `{}`",                        self.span_err(span,                        let this_token_to_string = self.this_token_to_string();                        let span = self.span;                    if !self.token.can_begin_expr() {                    // Give a suggestion to use `box()` when a parenthesised expression is used                    try!(self.expect(&token::CloseDelim(token::Paren)));                    let place = try!(self.parse_expr_nopanic());                if !try!(self.eat(&token::CloseDelim(token::Paren)) ){                // Support `box() EXPR` as the default.            if try!(self.eat(&token::OpenDelim(token::Paren)) ){            // Check for a place: `box(PLACE) EXPR`.            try!(self.bump());            let box_hi = self.span.hi;            let lo = self.span.lo;            }                return self.parse_dot_or_call_expr();            if !self.check_keyword(keywords::Box) {          token::Ident(_, _) => {          }            ex = ExprAddrOf(m, e);            hi = e.span.hi;ad�[���p3���I0�
�
�
�
�
S

��q!���>�
q
_
Q
=
3
-
,

�	�	^	C	&	��_1��rXC.�����R%	�iH-��cW5���Z/��}P%�����              let span = lhs.span;              let rhs_span = rhs.span;              };                  token::Shr =>     BiShr                  token::Shl =>     BiShl,                  token::Or =>      BiBitOr,                  token::And =>     BiBitAnd,                  token::Caret =>   BiBitXor,                  token::Percent => BiRem,                  token::Slash =>   BiDiv,                  token::Star =>    BiMul,                  token::Minus =>   BiSub,                  token::Plus =>    BiAdd,              let aop = match op {              let rhs = try!(self.parse_expr_res(restrictions));              try!(self.bump());          token::BinOpEq(op) => {          }              Ok(self.mk_expr(lhs.span.lo, rhs.span.hi, ExprAssign(lhs, rhs)))              let rhs = try!(self.parse_expr_res(restrictions));              try!(self.bump());          token::Eq => {        match self.token {        let op_span = self.span;        let restrictions = self.restrictions & RESTRICTION_NO_STRUCT_LITERAL;    pub fn parse_assign_expr_with(&mut self, lhs: P<Expr>) -> PResult<P<Expr>> {    }        }          }            self.parse_assign_expr_with(lhs)            let lhs = try!(self.parse_binops());          _ => {          }            Ok(self.mk_expr(lo, hi, ex))            let ex = self.mk_range(None, opt_end);            let hi = self.span.hi;            };                None            } else {                Some(end)                let end = try!(self.parse_binops());            let opt_end = if self.is_at_start_of_range_notation_rhs() {            try!(self.bump());            let lo = self.span.lo;            // with the postfix-form 'expr..'            // (much lower than other prefix expressions) to be consistent            // This has the same precedence as assignment expressions            // prefix-form of range notation '..expr'          token::DotDot => {        match self.token {    pub fn parse_assign_expr(&mut self) -> PResult<P<Expr>> {    /// parsing an arbitrary expression.    /// actually, this seems to be the main entry point for    /// Parse an assignment expression....    }        }            _ => {}            }                }                        "use `::<...>` instead of `<...>` if you meant to specify type arguments");                    self.fileline_help(op_span,                if op.node == BiLt && outer_op == BiGt {                    "chained comparison operators require parentheses");                self.span_err(op_span,                let op_span = mk_sp(op.span.lo, self.span.hi);                // respan to include both operators            ExprBinary(op, _, _) if ast_util::is_comparison_binop(op.node) => {        match lhs.node {        debug_assert!(ast_util::is_comparison_binop(outer_op));    fn check_no_chained_comparison(&mut self, lhs: &Expr, outer_op: ast::BinOp_) {    /// have same precedence and are left-associative    /// We only need to check lhs, not rhs, because all comparison ops    /// Produce an error if comparison operators are chained (RFC #558).    }        }            }                }                    Ok(lhs)                } else {                    self.parse_more_binops(_as, min_prec)                                           ExprCast(lhs, rhs));                                           rhs.span.hi,                    let _as = self.mk_expr(lhs.span.lo,                    let rhs = try!(self.parse_ty_nopanic());                if AS_PREC >= min_prec && try!(self.eat_keyword_noexpect(keywords::As) ){            None => {            }                }ad5�e�fZ����^D/
�
�
�
V
J
I
8
"




��M����zpji!�
�
�
�
]

�	�	�	a	*			�����_!���r%���YH(����l;5��u<����c8����kB4)(���            body.span.hi,            lo,        Ok(self.mk_expr(        };            }                try!(self.parse_block())                // block to appear (RFC 968).                // If an explicit return type is given, require a            _ => {            }                })                    rules: DefaultBlock,                    expr: Some(body_expr),                    span: body_expr.span,                    stmts: vec![],                    id: ast::DUMMY_NODE_ID,                P(ast::Block {                let body_expr = try!(self.parse_expr_nopanic());                // expr and wrap it up in a dummy block:                // If no explicit return type is given, parse any            DefaultReturn(_) => {        let body = match decl.output {        let decl = try!(self.parse_fn_block_decl());    {                             -> PResult<P<Expr>>    pub fn parse_lambda_expr(&mut self, lo: BytePos, capture_clause: CaptureClause)    // `|args| expr`    }        Ok(self.mk_expr(lo, hi, ExprIfLet(pat, expr, thn, els)))        };            (thn.span.hi, None)        } else {            (expr.span.hi, Some(expr))            let expr = try!(self.parse_else_expr());        let (hi, els) = if try!(self.eat_keyword(keywords::Else) ){        let thn = try!(self.parse_block());        let expr = try!(self.parse_expr_res(RESTRICTION_NO_STRUCT_LITERAL));        try!(self.expect(&token::Eq));        let pat = try!(self.parse_pat_nopanic());        try!(self.expect_keyword(keywords::Let));        let lo = self.last_span.lo;    pub fn parse_if_let_expr(&mut self) -> PResult<P<Expr>> {    /// Parse an 'if let' expression ('if' token already eaten)    }        Ok(self.mk_expr(lo, hi, ExprIf(cond, thn, els)))        }            els = Some(elexpr);            hi = elexpr.span.hi;            let elexpr = try!(self.parse_else_expr());        if try!(self.eat_keyword(keywords::Else) ){        let mut hi = thn.span.hi;        let mut els: Option<P<Expr>> = None;        let thn = try!(self.parse_block());        let cond = try!(self.parse_expr_res(RESTRICTION_NO_STRUCT_LITERAL));        let lo = self.last_span.lo;        }            return self.parse_if_let_expr();        if self.check_keyword(keywords::Let) {    pub fn parse_if_expr(&mut self) -> PResult<P<Expr>> {    /// Parse an 'if' or 'if let' expression ('if' token already eaten)    }        }            false        } else {            true            }                return !self.restrictions.contains(RESTRICTION_NO_STRUCT_LITERAL);            if self.token == token::OpenDelim(token::Brace) {            // parse `for i in 1.. { }` as infinite loop, not as `for i in (1..{})`.        if self.token.can_begin_expr() {    fn is_at_start_of_range_notation_rhs(&self) -> bool {    }        }          }              Ok(lhs)          _ => {          }            return Ok(self.mk_expr(lo, hi, range));            let range = self.mk_range(Some(lhs), opt_end);            let hi = self.span.hi;            let lo = lhs.span.lo;            };                None            } else {                Some(end)                let end = try!(self.parse_binops());            let opt_end = if self.is_at_start_of_range_notation_rhs() {            try!(self.bump());          token::DotDot => {          // A range expression, either `expr..expr` or `expr..`.          }              Ok(self.mk_expr(span.lo, rhs_span.hi, assign_op))              let assign_op = self.mk_assign_op(codemap::respan(op_span, aop), lhs, rhs);ad\�W����U,�����F�
�
�
�
T
#
��~.('�{I�
�
h
I
�	�	�	�	R	.	���V)
���U1����iE��i+����SML����h6���~b.����        if require_comma {            && self.token != token::CloseDelim(token::Brace);            !classify::expr_is_simple_block(&*expr)        let require_comma =        let expr = try!(self.parse_expr_res(RESTRICTION_STMT_EXPR));        try!(self.expect(&token::FatArrow));        }            guard = Some(try!(self.parse_expr_nopanic()));        if try!(self.eat_keyword(keywords::If) ){        let mut guard = None;        let pats = try!(self.parse_pats());        let attrs = self.parse_outer_attributes();        maybe_whole!(no_clone self, NtArm);    pub fn parse_arm_nopanic(&mut self) -> PResult<Arm> {    }        return Ok(self.mk_expr(lo, hi, ExprMatch(discriminant, arms, MatchSource::Normal)));        try!(self.bump());        let hi = self.span.hi;        }            arms.push(try!(self.parse_arm_nopanic()));        while self.token != token::CloseDelim(token::Brace) {        let mut arms: Vec<Arm> = Vec::new();        try!(self.commit_expr_expecting(&*discriminant, token::OpenDelim(token::Brace)));        let discriminant = try!(self.parse_expr_res(RESTRICTION_NO_STRUCT_LITERAL));        let lo = self.last_span.lo;    fn parse_match_expr(&mut self) -> PResult<P<Expr>> {    }        Ok(self.mk_expr(lo, hi, ExprLoop(body, opt_ident)))        let hi = body.span.hi;        let body = try!(self.parse_block());        let lo = self.last_span.lo;    pub fn parse_loop_expr(&mut self, opt_ident: Option<ast::Ident>) -> PResult<P<Expr>> {    }        return Ok(self.mk_expr(lo, hi, ExprWhileLet(pat, expr, body, opt_ident)));        let hi = body.span.hi;        let body = try!(self.parse_block());        let expr = try!(self.parse_expr_res(RESTRICTION_NO_STRUCT_LITERAL));        try!(self.expect(&token::Eq));        let pat = try!(self.parse_pat_nopanic());        try!(self.expect_keyword(keywords::Let));        let lo = self.last_span.lo;    pub fn parse_while_let_expr(&mut self, opt_ident: Option<ast::Ident>) -> PResult<P<Expr>> {    /// Parse a 'while let' expression ('while' token already eaten)    }        return Ok(self.mk_expr(lo, hi, ExprWhile(cond, body, opt_ident)));        let hi = body.span.hi;        let body = try!(self.parse_block());        let cond = try!(self.parse_expr_res(RESTRICTION_NO_STRUCT_LITERAL));        let lo = self.last_span.lo;        }            return self.parse_while_let_expr(opt_ident);        if self.token.is_keyword(keywords::Let) {    pub fn parse_while_expr(&mut self, opt_ident: Option<ast::Ident>) -> PResult<P<Expr>> {    /// Parse a 'while' or 'while let' expression ('while' token already eaten)    }        Ok(self.mk_expr(lo, hi, ExprForLoop(pat, expr, loop_block, opt_ident)))        let hi = self.last_span.hi;        let loop_block = try!(self.parse_block());        let expr = try!(self.parse_expr_res(RESTRICTION_NO_STRUCT_LITERAL));        try!(self.expect_keyword(keywords::In));        let pat = try!(self.parse_pat_nopanic());        let lo = self.last_span.lo;        // Parse: `for <src_pat> in <src_expr> <src_loop_block>`    pub fn parse_for_expr(&mut self, opt_ident: Option<ast::Ident>) -> PResult<P<Expr>> {    /// Parse a 'for' .. 'in' expression ('for' token already eaten)    }        }            return Ok(self.mk_expr(blk.span.lo, blk.span.hi, ExprBlock(blk)));            let blk = try!(self.parse_block());        } else {            return self.parse_if_expr();        if try!(self.eat_keyword(keywords::If) ){    pub fn parse_else_expr(&mut self) -> PResult<P<Expr>> {    }            ExprClosure(capture_clause, decl, body)))ad�l��cYXB(������q>87�
�
�
h
8


���sO0�������a>/�
�
�
}
w
v
1

�	�	M		��}oL�����wR4����uVA��p^PO1���X&���oA+����xU/	��            } else if before_slice {                before_slice = false;                slice = Some(subpat);                try!(self.bump());            if before_slice && self.check(&token::DotDot) {            let subpat = try!(self.parse_pat_nopanic());            }                }                    continue                    }                        before_slice = false;                        }));                            span: self.span,                            node: PatWild(PatWildMulti),                            id: ast::DUMMY_NODE_ID,                        slice = Some(P(ast::Pat {                            self.check(&token::CloseDelim(token::Bracket)) {                    if self.check(&token::Comma) ||                    try!(self.bump());                if self.check(&token::DotDot) {            if before_slice {            }                }                    break                        && (before_slice || !after.is_empty()) {                if self.token == token::CloseDelim(token::Bracket)                try!(self.expect(&token::Comma));            } else {                first = false;            if first {        while self.token != token::CloseDelim(token::Bracket) {        let mut before_slice = true;        let mut first = true;        let mut after = Vec::new();        let mut slice = None;        let mut before = Vec::new();    ) -> PResult<(Vec<P<Pat>>, Option<P<Pat>>, Vec<P<Pat>>)> {        &mut self,    fn parse_pat_vec_elements(    }        Ok(fields)        }            }                try!(self.expect(&token::Comma));            if fields.len() == 1 {            }                }                    fields.push(try!(self.parse_pat_nopanic()));                      !self.check(&token::CloseDelim(token::Paren)) {                while try!(self.eat(&token::Comma)) &&            if self.look_ahead(1, |t| *t != token::CloseDelim(token::Paren)) {            fields.push(try!(self.parse_pat_nopanic()));        if !self.check(&token::CloseDelim(token::Paren)) {        let mut fields = vec![];    fn parse_pat_tuple_elements(&mut self) -> PResult<Vec<P<Pat>>> {    }        };            else { return Ok(pats); }            if self.check(&token::BinOp(token::Or)) { try!(self.bump());}            pats.push(try!(self.parse_pat_nopanic()));        loop {        let mut pats = Vec::new();    fn parse_pats(&mut self) -> PResult<Vec<P<Pat>>> {    /// Parse patterns, separated by '|' s    }        }            Ok(None)        } else {            Ok(Some(try!(self.parse_expr_nopanic())))            try!(self.bump());        if self.check(&token::Eq) {    fn parse_initializer(&mut self) -> PResult<Option<P<Expr>>> {    /// Parse the RHS of a local variable declaration (e.g. '= 14;')    }        return Ok(e);        self.restrictions = old;        let e = try!(self.parse_assign_expr());        self.restrictions = r;        let old = self.restrictions;    pub fn parse_expr_res(&mut self, r: Restrictions) -> PResult<P<Expr>> {    /// Parse an expression, subject to the given restrictions    }        self.parse_expr_res(Restrictions::empty())    pub fn parse_expr_nopanic(&mut self) -> PResult<P<Expr>> {    /// Parse an expression    }        })            body: expr,            guard: guard,            pats: pats,            attrs: attrs,        Ok(ast::Arm {        }            try!(self.eat(&token::Comma));        } else {            try!(self.commit_expr(&*expr, &[token::Comma], &[token::CloseDelim(token::Brace)]));ad�[������f`_-���n0�
�
�
�
?
1
0


����f%���nWIH�
�
J

�	�	�	i	T		��K���k0��s`	��r>*)���S<#����y&�wmKED���            let (qself, path) = if try!(self.eat_lt()) {            let lo = self.span.lo;        if self.is_path_start() {    fn parse_pat_range_end(&mut self) -> PResult<P<Expr>> {    }        return Ok((fields, etc));        }                                                                 is_shorthand: is_shorthand }});                                                                 pat: subpat,                                           node: ast::FieldPat { ident: fieldname,            fields.push(codemap::Spanned { span: mk_sp(lo, hi),            };                (subpat, fieldname, true)                };                    fieldpat                } else {                    })                        span: mk_sp(lo, hi),                        node: PatBox(fieldpat),                        id: ast::DUMMY_NODE_ID,                    P(ast::Pat{                let subpat = if is_box {                });                    span: mk_sp(boxed_span_lo, hi),                    node: PatIdent(bind_type, fieldpath, None),                    id: ast::DUMMY_NODE_ID,                let fieldpat = P(ast::Pat{                let fieldpath = codemap::Spanned{span:self.last_span, node:fieldname};                };                    (false, false) => BindByValue(MutImmutable),                    (false, true) => BindByValue(MutMutable),                    (true, false) => BindByRef(MutImmutable),                    (true, true) => BindByRef(MutMutable),                let bind_type = match (is_ref, is_mut) {                hi = self.last_span.hi;                let fieldname = try!(self.parse_ident());                let is_mut = try!(self.eat_keyword(keywords::Mut));                let is_ref = try!(self.eat_keyword(keywords::Ref));                let boxed_span_lo = self.span.lo;                let is_box = try!(self.eat_keyword(keywords::Box));                // Parsing a pattern of the form "(box) (ref) (mut) fieldname"            } else {                (pat, fieldname, false)                hi = pat.span.hi;                let pat = try!(self.parse_pat_nopanic());                try!(self.bump());                let fieldname = try!(self.parse_ident());                // Parsing a pattern of the form "fieldname: pat"            let (subpat, fieldname, is_shorthand) = if self.look_ahead(1, |t| t == &token::Colon) {            // Check if a colon exists one ahead. This means we're parsing a fieldname.            }                break;                etc = true;                }                                       token_str)))                    return Err(self.fatal(&format!("expected `{}`, found `{}`", "}",                    let token_str = self.this_token_to_string();                if self.token != token::CloseDelim(token::Brace) {                try!(self.bump());            if self.check(&token::DotDot) {            let hi;            let lo = self.span.lo;            }                if self.check(&token::CloseDelim(token::Brace)) { break }                // accept trailing commas                try!(self.expect(&token::Comma));            } else {                first = false;            if first {        while self.token != token::CloseDelim(token::Brace) {        let mut first = true;        let mut etc = false;        let mut fields = Vec::new();    fn parse_pat_fields(&mut self) -> PResult<(Vec<codemap::Spanned<ast::FieldPat>> , bool)> {    /// Parse the fields of a struct-like pattern    }        Ok((before, slice, after))        }            }                after.push(subpat);            } else {                before.push(subpat);adhR��mI4���J9�
�
�
�
W
�����vuVE*	����e@�
�

s
E

�	�	m	K	?		��m*����pG��D��d>�x8��d��U��h                        let delim = try!(self.expect_open_delim());                        try!(self.bump());                        let path = ident_to_path(ident_span, ident);                        let ident_span = self.last_span;                        let ident = try!(self.parse_ident());                        // Parse macro invocation                    if self.look_ahead(1, |t| *t == token::Not) {                    // Plain idents have some extra abilities here compared to general paths                        *t != token::ModSep) {                        // Contrary to its definition, a plain ident can be followed by :: in macros                        *t != token::OpenDelim(token::Paren) &&                        *t != token::OpenDelim(token::Brace) &&                if self.token.is_plain_ident() && self.look_ahead(1, |t| *t != token::DotDotDot &&                // Parse pattern starting with a path            } else if self.is_path_start() {                pat = PatBox(subpat);                let subpat = try!(self.parse_pat_nopanic());                // Parse box pat            } else if try!(self.eat_keyword(keywords::Box)) {                pat = try!(self.parse_pat_ident(BindByRef(mutbl)));                let mutbl = try!(self.parse_mutability());                // Parse ref ident @ pat / ref mut ident @ pat            } else if try!(self.eat_keyword(keywords::Ref)) {                pat = try!(self.parse_pat_ident(BindByValue(MutMutable)));                // Parse mut ident @ pat            if try!(self.eat_keyword(keywords::Mut)) {            // At this point, token != _, &, &&, (, [          _ => {          }            pat = PatVec(before, slice, after);            try!(self.expect(&token::CloseDelim(token::Bracket)));            let (before, slice, after) = try!(self.parse_pat_vec_elements());            try!(self.bump());            // Parse [pat,pat,...] as vector pattern          token::OpenDelim(token::Bracket) => {          }            pat = PatTup(fields);            try!(self.expect(&token::CloseDelim(token::Paren)));            let fields = try!(self.parse_pat_tuple_elements());            try!(self.bump());            // Parse (pat,pat,pat,...) as tuple pattern          token::OpenDelim(token::Paren) => {          }            pat = PatRegion(subpat, mutbl);            let subpat = try!(self.parse_pat_nopanic());            let mutbl = try!(self.parse_mutability());            try!(self.expect_and());            // Parse &pat / &mut pat          token::BinOp(token::And) | token::AndAnd => {          }            pat = PatWild(PatWildSingle);            try!(self.bump());            // Parse _          token::Underscore => {        match self.token {        let pat;        let lo = self.span.lo;        maybe_whole!(self, NtPat);    pub fn parse_pat_nopanic(&mut self) -> PResult<P<Pat>> {    /// Parse a pattern.    }            && !self.token.is_keyword(keywords::True) && !self.token.is_keyword(keywords::False)            || self.token.is_ident() || self.token.is_path())        (self.token == token::Lt || self.token == token::ModSep    fn is_path_start(&self) -> bool {    }        }            self.parse_literal_maybe_minus()        } else {            Ok(self.mk_expr(lo, hi, ExprPath(qself, path)))            let hi = self.last_span.hi;            };                (None, try!(self.parse_path(LifetimeAndTypesWithColons)))                // Parse an unqualified path            } else {                (Some(qself), path)                    try!(self.parse_qualified_path(NoTypesAllowed));                let (qself, path) =                // Parse a qualified pathad5iF�\��x&�
�
{
b
!
��vJ-���h<�
�
e
!
�	�	�	m	;		��k<��_G
��~,���W��d-�~8��nT<���ia                             _ => {                      }                        pat = PatQPath(qself.unwrap(), path);                        // Parse qualified path                      _ if qself.is_some() => {                      }                        }                            pat = PatEnum(path, Some(args));                                    |p| p.parse_pat_nopanic()));                                    seq_sep_trailing_allowed(token::Comma),                                    &token::CloseDelim(token::Paren),                                    &token::OpenDelim(token::Paren),                            let args = try!(self.parse_enum_variant_seq(                        } else {                            pat = PatEnum(path, None);                            try!(self.expect(&token::CloseDelim(token::Paren)));                            try!(self.bump());                            try!(self.bump());                            // This is a "top constructor only" pat                        if self.look_ahead(1, |t| *t == token::DotDot) {                        // Parse tuple struct or enum pattern                        }                            self.abort_if_errors();                                          "unexpected `(` after qualified path");                            self.span_err(span,                            let span = self.span;                        if qself.is_some() {                      token::OpenDelim(token::Paren) => {                      }                        pat = PatStruct(path, fields, etc);                        try!(self.bump());                        let (fields, etc) = try!(self.parse_pat_fields());                        try!(self.bump());                       // Parse struct pattern                        }                            self.abort_if_errors();                                          "unexpected `{` after qualified path");                            self.span_err(span,                            let span = self.span;                         if qself.is_some() {                      token::OpenDelim(token::Brace) => {                      }                        pat = PatRange(begin, end);                        let end = try!(self.parse_pat_range_end());                        try!(self.bump());                        let begin = self.mk_expr(lo, hi, ExprPath(qself, path));                        let hi = self.last_span.hi;                        // Parse range                      token::DotDotDot => {                    match self.token {                    };                        (None, try!(self.parse_path(LifetimeAndTypesWithColons)))                        // Parse an unqualified path                    } else {                        (Some(qself), path)                            try!(self.parse_qualified_path(NoTypesAllowed));                        let (qself, path) =                        // Parse a qualified path                    let (qself, path) = if try!(self.eat_lt()) {                } else {                    }                        pat = try!(self.parse_pat_ident(BindByValue(MutImmutable)));                        // they are dealt with later in resolve                        // This can give false positives and parse nullary enums,                        // Parse ident @ pat                    } else {                        pat = PatMac(codemap::Spanned {node: mac, span: self.span});                        let mac = MacInvocTT(path, tts, EMPTY_CTXT);                                seq_sep_none(), |p| p.parse_token_tree()));                        let tts = try!(self.parse_seq_to_end(&token::CloseDelim(delim),ad�f��iWB��x8�
�
�
�
�
�
�
k
S
/

������B ���n7
�
�

W

�	�	�	�	�	�	F	-	��X!���x<21����}KJ/���{gQ9������gH����4���~T(���            kind: NamedField(name, pr),        Ok(spanned(lo, self.last_span.hi, ast::StructField_ {        let ty = try!(self.parse_ty_sum());        try!(self.expect(&token::Colon));        let name = try!(self.parse_ident());        }            return Err(self.fatal("expected ident"));        if !self.token.is_plain_ident() {        let lo = self.span.lo;                         attrs: Vec<Attribute> ) -> PResult<StructField> {    fn parse_name_and_ty(&mut self, pr: Visibility,    /// Parse a structure field    }        Ok(P(spanned(lo, self.last_span.hi, DeclLocal(local))))        let local = try!(self.parse_local());        let lo = self.span.lo;    fn parse_let(&mut self) -> PResult<P<Decl>> {    /// Parse a "let" stmt    }        }))            source: LocalLet,            span: mk_sp(lo, self.last_span.hi),            id: ast::DUMMY_NODE_ID,            init: init,            pat: pat,            ty: ty,        Ok(P(ast::Local {        let init = try!(self.parse_initializer());        }            ty = Some(try!(self.parse_ty_sum()));        if try!(self.eat(&token::Colon) ){        let mut ty = None;        let pat = try!(self.parse_pat_nopanic());        let lo = self.span.lo;    fn parse_local(&mut self) -> PResult<P<Local>> {    /// Parse a local variable declaration    }        Ok(PatIdent(binding_mode, name, sub))        }                "expected identifier, found enum pattern"))                last_span,            return Err(self.span_fatal(            let last_span = self.last_span;        if self.token == token::OpenDelim(token::Paren) {        // will direct us over to parse_enum_variant()        // binding mode then we do not end up here, because the lookahead        // leads to a parse error.  Note that if there is no explicit        // we end up here with ( as the current token.  This shortly        //   ref Some(i)        // just to be friendly, if they write something like        };            None        } else {            Some(try!(self.parse_pat_nopanic()))        let sub = if try!(self.eat(&token::At) ){        let name = codemap::Spanned{span: last_span, node: ident};        let last_span = self.last_span;        let ident = try!(self.parse_ident());        }                            &format!("expected identifier, found `{}`", tok_str)))            return Err(self.span_fatal(span,            let tok_str = self.this_token_to_string();            let span = self.span;        if !self.token.is_plain_ident() {                       -> PResult<ast::Pat_> {                       binding_mode: ast::BindingMode)    fn parse_pat_ident(&mut self,    /// error message when parsing mistakes like ref foo(a,b)    /// used by the copy foo and ref foo patterns to give a good    /// Parse ident or ident @ pat    }        }))            span: mk_sp(lo, hi),            node: pat,            id: ast::DUMMY_NODE_ID,        Ok(P(ast::Pat {        let hi = self.last_span.hi;        }          }            }                }                    pat = PatLit(begin);                } else {                    pat = PatRange(begin, end);                    let end = try!(self.parse_pat_range_end());                if try!(self.eat(&token::DotDotDot)) {                let begin = try!(self.parse_literal_maybe_minus());                // Try to parse everything else as literal with optional minus            } else {                }                    }                      }                        pat = PatEnum(path, Some(vec![]));                        // Parse nullary enumad#�a������e.�tf3('�
�
�
�
|
P
J
I

���Y6
������g8�
�
a
5
�	�	�	�	�	W		����'����d=���e
����X����yxC����ml9����m?��                                          MacInvocTT(pth, tts, EMPTY_CTXT))),                                          hi,                        StmtMac(P(spanned(lo,                spanned(lo, hi,            if id.name == token::special_idents::invalid.name {            };                MacStmtWithoutBraces            } else {                MacStmtWithBraces            let style = if delim == token::Brace {            let hi = self.last_span.hi;            ));                |p| p.parse_token_tree()                seq_sep_none(),                &token::CloseDelim(delim),                &token::OpenDelim(delim),            let tts = try!(self.parse_unspanned_seq(            };                },                                       tok_str)))                                       ident_str,                    return Err(self.fatal(&format!("expected {}`(` or `{{`, found `{}`",                    let tok_str = self.this_token_to_string();                    };                        ""                    } else {                        "identifier, "                    let ident_str = if id.name == token::special_idents::invalid.name {                    // above.                    // we only expect an ident if we didn't parse one                _ => {                token::OpenDelim(delim) => delim,            let delim = match self.token {            // consuming more tokens).            // again after the `if`, because of `parse_ident`            // check that we're pointing at delimiters (need to check            };                _ => try!(self.parse_ident()),                token::OpenDelim(_) => token::special_idents::invalid, // no special identifier            let id = match self.token {            try!(self.bump());            let pth = try!(self.parse_path(NoTypesAllowed));            // idents, we'd need to look ahead past the whole path here...            // Potential trouble: if we allow macros with paths instead of            check_expected_item(self, &attrs);            // it's a macro invocation:            && self.look_ahead(1, |t| *t == token::Not) {            && !self.token.is_any_keyword()        } else if self.token.is_ident()            spanned(lo, decl.span.hi, StmtDecl(decl, ast::DUMMY_NODE_ID))            let decl = try!(self.parse_let());            try!(self.expect_keyword(keywords::Let));            check_expected_item(self, &attrs);        Ok(Some(if self.check_keyword(keywords::Let) {        let lo = self.span.lo;        let attrs = self.parse_outer_attributes();        }            }                p.expected_item_err(attrs);            if !attrs.is_empty() {            // If we have attributes then we should have an item        fn check_expected_item(p: &mut Parser, attrs: &[Attribute]) {        maybe_whole!(Some deref self, NtStmt);    fn parse_stmt_(&mut self) -> PResult<Option<Stmt>> {    }        Ok(try!(self.parse_stmt_()).map(P))    pub fn parse_stmt_nopanic(&mut self) -> PResult<Option<P<Stmt>>> {    /// Parse a statement. may include decl.    }        self.span_err(self.last_span, message);        };            _ => "expected item after attributes",            }                "expected item after doc comment"            Some(&Attribute { node: ast::Attribute_ { is_sugared_doc: true, .. }, .. }) => {        let message = match attrs.last() {    fn expected_item_err(&self, attrs: &[Attribute]) {    /// Emit an expected item after attributes error.    }        }))            attrs: attrs,            ty: ty,            id: ast::DUMMY_NODE_ID,ad�[��{h6��f�
�
w
e
;

��Q����pH�
�
�
C

�	�	�	�	^	5			��N<."��k3-,����rq3��c����U%$��e_^ ��x[Z����            } else {                s            let Spanned {node, span} = if let Some(s) = try!(self.parse_stmt_()) {        while !try!(self.eat(&token::CloseDelim(token::Brace))) {        let mut expr = None;        let mut stmts = vec![];    fn parse_block_tail(&mut self, lo: BytePos, s: BlockCheckMode) -> PResult<P<Block>> {    /// Precondition: already parsed the '{'.    /// Parse the rest of a block expression or function body    }         try!(self.parse_block_tail(lo, DefaultBlock))))        Ok((self.parse_inner_attributes(),        try!(self.expect(&token::OpenDelim(token::Brace)));        let lo = self.span.lo;        maybe_whole!(pair_empty self, NtBlock);    fn parse_inner_attrs_and_block(&mut self) -> PResult<(Vec<Attribute>, P<Block>)> {    /// Parse a block. Inner attrs are allowed.    }        self.parse_block_tail(lo, DefaultBlock)        }                                 "place this code inside a block"));                                 &format!("expected `{{`, found `{}`", tok),            return Err(self.span_fatal_help(sp,            let tok = self.this_token_to_string();            let sp = self.span;        if !try!(self.eat(&token::OpenDelim(token::Brace)) ){        let lo = self.span.lo;        maybe_whole!(no_clone self, NtBlock);    pub fn parse_block(&mut self) -> PResult<P<Block>> {    /// Parse a block. No inner attrs are allowed.    }            !classify::expr_requires_semi_to_be_stmt(e)        self.restrictions.contains(RESTRICTION_STMT_EXPR) &&    fn expr_is_complete(&mut self, e: &Expr) -> bool {    /// Is this expression a successfully-parsed statement?    }        }))            }                }                    spanned(lo, e.span.hi, StmtExpr(e, ast::DUMMY_NODE_ID))                    let e = try!(self.parse_expr_res(RESTRICTION_STMT_EXPR));                    // Remainder are line-expr stmts.                    }                        return Ok(None);                    if self.token == token::CloseDelim(token::Brace) {                    }                        return Ok(None);                        try!(self.bump());                    if self.token == token::Semi {                    // Do not attempt to parse an expression if we're done here.                None => {                }                    spanned(lo, hi, StmtDecl(decl, ast::DUMMY_NODE_ID))                    let decl = P(spanned(lo, hi, DeclItem(i)));                    let hi = i.span.hi;                Some(i) => {            match try!(self.parse_item_(attrs, false)) {        } else {            }                    ast::DUMMY_NODE_ID))                            Inherited, Vec::new(/*no attrs*/))))),                            ItemMac(spanned(lo, hi, MacInvocTT(pth, tts, EMPTY_CTXT))),                            lo, hi, id /*id is good here*/,                        self.mk_item(                    P(spanned(lo, hi, DeclItem(                spanned(lo, hi, StmtDecl(                }                    }                                       followed by a semicolon");                                       either be surrounded with braces or \                                      "macros that expand to items must \                        self.span_err(last_span,                        let last_span = self.last_span;                    if !try!(self.eat(&token::Semi) ){                if style != MacStmtWithBraces {                // Require a semicolon or braces.                //                // if it has a special ident, it's definitely an item            } else {                                  style))ad�W����p���=�
�
p
,

���e'��E�
�
k
H
"
�	�	�	�	�	`	'		��\���q-��p���j1����j@��utI%�������|d@*��������            e:            e: P<Expr>,            &mut self,    fn handle_expression_like_statement(    }        }))            span: mk_sp(lo, self.last_span.hi),            rules: s,            id: ast::DUMMY_NODE_ID,            expr: expr,            stmts: stmts,        Ok(P(ast::Block {        }            }                }                    }));                        span: mk_sp(span.lo, hi)                        node: node,                    stmts.push(P(Spanned {                    }                        hi = self.last_span.hi;                        try!(self.commit_stmt_expecting(token::Semi));                    if classify::stmt_ends_with_semi(&node) {                    let mut hi = span.hi;                _ => { // all other kinds of statements:                }                    }                        }                            }));                                span: span                                node: StmtMac(m, style),                            stmts.push(P(Spanned {                        _ => {                        }                                                         token::Brace));                                                         m.and_then(|x| x.node),                                                         span.hi,                            expr = Some(self.mk_mac_expr(span.lo,                            // a `;`, it must be an expr                            // if a block ends in `m!(arg)` without                        token::CloseDelim(token::Brace) => {                        }                            try!(self.bump());                            }));                                span: mk_sp(span.lo, self.span.hi),                                node: StmtMac(m, MacStmtWithSemicolon),                            stmts.push(P(Spanned {                        token::Semi => {                    match self.token {                    // statement macro; might be an expr                StmtMac(m, style) => {                }                    }                        }                                &mut expr));                                &mut stmts,                                span,                                e,                            try!(self.handle_expression_like_statement(                            let e = try!(self.parse_assign_expr_with(e));                            let e = try!(self.parse_more_binops(e, 0));                            let e = try!(self.parse_dot_or_call_expr_with(e));                                                     token::Brace);                                                     mac.and_then(|m| m.node),                                                     span.hi,                            let e = self.mk_mac_expr(span.lo,                        _ => {                        }                            try!(self.bump());                            }));                                span: mk_sp(span.lo, self.span.hi),                                node: StmtMac(mac, MacStmtWithSemicolon),                            stmts.push(P(Spanned {                        token::Semi => {                    match self.token {                    // expr depending on whether a semicolon follows                    // statement macro without braces; might be an                StmtMac(mac, MacStmtWithoutBraces) => {                }                    try!(self.handle_expression_like_statement(e, span, &mut stmts, &mut expr));                StmtExpr(e, _) => {            match node {            };                continue;                // Found only `;` or `}`.ad�b��~V��YON3�
�
�
{
P
=

����C0	�����sml6�
�
Q
K

�	�	�	�	�	�	�	C		��{93��xI#��x5���p^(��g1��eK.����k]\�������    }        return Ok(OwnedSlice::from_vec(result));        }            }                break;            if !try!(self.eat(&token::BinOp(token::Plus)) ){            }                _ => break,                }                    result.push(TraitTyParamBound(poly_trait_ref, modifier))                    };                        TraitBoundModifier::None                    } else {                        }                            TraitBoundModifier::None                                          "unexpected `?`");                            self.span_err(question_span,                        } else {                            TraitBoundModifier::Maybe                        if mode == BoundParsingMode::Modified {                    let modifier = if ate_question {                    let poly_trait_ref = try!(self.parse_poly_trait_ref());                token::ModSep | token::Ident(..) => {                }                    try!(self.bump());                    }));                        name: lifetime.name                        span: self.span,                        id: ast::DUMMY_NODE_ID,                    result.push(RegionTyParamBound(ast::Lifetime {                    }                                      "`?` may only modify trait bounds, not lifetime bounds");                        self.span_err(question_span,                    if ate_question {                token::Lifetime(lifetime) => {            match self.token {            let ate_question = try!(self.eat(&token::Question));            let question_span = self.span;        loop {        let mut result = vec!();    {                             -> PResult<OwnedSlice<TyParamBound>>                             mode: BoundParsingMode)    fn parse_ty_param_bounds(&mut self,    // and     bound     = 'region | trait_ref    // and     polybound = ( 'for' '<' 'region '>' )? bound    // where   boundseq  = ( polybound + boundseq ) | polybound    // matches bounds    = ( boundseq )?    }        }            self.parse_ty_param_bounds(mode)        } else {            Ok(OwnedSlice::empty())        if !try!(self.eat(&token::Colon) ){    {                                        -> PResult<OwnedSlice<TyParamBound>>                                        mode: BoundParsingMode)    fn parse_colon_then_ty_param_bounds(&mut self,    // otherwise returns empty list.    // Parses a sequence of bounds if a `:` is found,    }        Ok(())        }            }                }));                    span: span                    node: StmtExpr(e, ast::DUMMY_NODE_ID),                stmts.push(P(Spanned {            _ => {            token::CloseDelim(token::Brace) => *last_block_expr = Some(e),            }                }));                    span: span_with_semi,                    node: StmtSemi(e, ast::DUMMY_NODE_ID),                stmts.push(P(Spanned {                };                    expn_id: span.expn_id,                    hi: self.last_span.hi,                    lo: span.lo,                let span_with_semi = Span {                try!(self.bump());            token::Semi => {        match self.token {        }                             &[token::Semi, token::CloseDelim(token::Brace)]));            try!(self.commit_stmt(&[],            // Just check for errors and recover; do not eat semicolon yet.        if classify::expr_requires_semi_to_be_stmt(&*e) {        // expression without semicolon            last_block_expr: &mut Option<P<Expr>>) -> PResult<()> {            stmts: &mut Vec<P<Stmt>>,            span: Span,adC�`��g98����\K:/.�
�
�
�
�
~
x
w
,
���c"��utL
�
�
e
,
�	�	�	y	O	�����sM!�����lb\[�oK	��o8�����Y����lW?0/��g,+����        // First parse types.        }            self.abort_if_errors()            self.span_note(mk_sp(span_lo, span_hi), &msg);                              'a, Type?");                              or did you mean the comma-separated arguments \            let msg = format!("did you mean a single argument type &'a Type, \            };                span_hi            } else {                self.span.hi            let span_hi = if self.parse_ty_nopanic().is_ok() {            let span_hi = self.span.hi;            self.span_err(self.span, &msg);                              self.this_token_to_string());                              name, found `{}`",            let msg = format!("expected `,` or `>` after lifetime \        if missing_comma {                                                 |x| &**x != &token::Comma);                                .as_ref().map_or(true,                            self.last_token                            !self.token.is_like_gt() &&        let missing_comma = !lifetimes.is_empty() &&        let lifetimes = try!(self.parse_lifetimes(token::Comma));        let span_lo = self.span.lo;                                                            Vec<P<TypeBinding>>)> {                                                            Vec<P<Ty>>,    fn parse_generic_values_after_lt(&mut self) -> PResult<(Vec<ast::Lifetime>,    }        }            Ok(ast_util::empty_generics())        } else {            })                }                    predicates: Vec::new(),                    id: ast::DUMMY_NODE_ID,                where_clause: WhereClause {                ty_params: ty_params,                lifetimes: lifetime_defs,            Ok(ast::Generics {            }));                Ok(ty_param)                }                               "type parameters with a default must be trailing");                    p.span_err(last_span,                    let last_span = p.last_span;                } else if seen_default {                    seen_default = true;                if ty_param.default.is_some() {                let ty_param = try!(p.parse_ty_param());                try!(p.forbid_lifetime());            let ty_params = try!(self.parse_seq_to_gt(Some(token::Comma), |p| {            let mut seen_default = false;            let lifetime_defs = try!(self.parse_lifetime_defs());        if try!(self.eat(&token::Lt) ){        maybe_whole!(self, NtGenerics);    pub fn parse_generics(&mut self) -> PResult<ast::Generics> {    /// where   typaramseq = ( typaram ) | ( typaram , typaramseq )    ///                  | ( < lifetimes , typaramseq ( , )? > )    /// matches generics = ( ) | ( < > ) | ( < typaramseq ( , )? > ) | ( < lifetimes ( , )? > )    ///    /// `parse_where_clause()`.    /// clauses are not parsed here, and must be added later via    /// Parse a set of optional generic type parameter declarations. Where    }        })            span: span,            default: default,            bounds: bounds,            id: ast::DUMMY_NODE_ID,            ident: ident,        Ok(TyParam {        };            None        } else {            Some(try!(self.parse_ty_sum()))            try!(self.bump());        let default = if self.check(&token::Eq) {        let bounds = try!(self.parse_colon_then_ty_param_bounds(BoundParsingMode::Modified));        let ident = try!(self.parse_ident());        let span = self.span;    fn parse_ty_param(&mut self) -> PResult<TyParam> {    /// Matches typaram = IDENT (`?` unbound)? optbounds ( EQ ty )?ad�k���^$������\E�
�
�
�
�
o
D
 
���o7%���b@$�
�
�
�
�
�
\
6

�	{	q	b	\	[				���UT'����xnmC4�����h=���cb2�xP�����{zc��T$���                    } else {                        lifetime_defs                        try!(self.expect_gt());                        let lifetime_defs = try!(self.parse_lifetime_defs());                        try!(self.expect(&token::Lt));                        // Higher ranked constraint.                    let bound_lifetimes = if try!(self.eat_keyword(keywords::For) ){                _ => {                }                    parsed_something = true;                    ));                        }                            bounds: bounds                            lifetime: bounded_lifetime,                            span: span,                        ast::WhereRegionPredicate {                    where_clause.predicates.push(ast::WherePredicate::RegionPredicate(                    let span = mk_sp(lo, hi);                    let hi = self.last_span.hi;                        try!(self.parse_lifetimes(token::BinOp(token::Plus)));                    let bounds =                    try!(self.eat(&token::Colon));                        try!(self.parse_lifetime());                    let bounded_lifetime =                token::Lifetime(..) => {                }                    break                token::OpenDelim(token::Brace) => {            match self.token {            let lo = self.span.lo;        loop {        let mut parsed_something = false;        }            return Ok(where_clause);        if !try!(self.eat_keyword(keywords::Where)) {        };            predicates: Vec::new(),            id: ast::DUMMY_NODE_ID,        let mut where_clause = WhereClause {        maybe_whole!(self, NtWhereClause);    pub fn parse_where_clause(&mut self) -> PResult<ast::WhereClause> {    /// ```    /// where T : Trait<U, V> + 'b, 'a : 'b    /// ```    ///    /// Parses an optional `where` clause and places it in `generics`.    }        Ok(())        }                                        prior to type parameters"))            return Err(self.span_fatal(span, "lifetime parameters must be declared \            let span = self.span;        if self.token.is_lifetime() {    fn forbid_lifetime(&mut self) -> PResult<()> {    }        Ok((lifetimes, types.into_vec(), bindings.into_vec()))        ));            }                }));                    span: span,                    ty: ty,                    ident: ident,                return Ok(P(TypeBinding{id: ast::DUMMY_NODE_ID,                let span = mk_sp(lo, hi);                let hi = p.span.hi;                let ty = try!(p.parse_ty_nopanic());                }                    p.span_warn(span, "whoops, no =?");                    let span = p.span;                if !found_eq {                let found_eq = try!(p.eat(&token::Eq));                let ident = try!(p.parse_ident());                let lo = p.span.lo;                try!(p.forbid_lifetime());            |p| {            Some(token::Comma),        let bindings = try!(self.parse_seq_to_gt(        // Then parse type bindings.        }            return Ok((lifetimes, types.into_vec(), Vec::new()));        if !returned {        // If we found the `>`, don't continue.        ));            }                }                    Ok(Some(try!(p.parse_ty_sum())))                } else {                    Ok(None)                if p.look_ahead(1, |t| t == &token::Eq) {                try!(p.forbid_lifetime());            |p| {            Some(token::Comma),        let (types, returned) = try!(self.parse_seq_to_gt_or_return(adG�T�����M����X(�
�
m
l

��a%����g$�
�
�
-
�	�	}	R	2	���S���F0������d?�������Y$���Q��z.��[=���                            return Err(p.span_fatal(span,                            let span = p.span;                        } else {                            }                                    "`...` must be last in argument list for variadic function"))                                return Err(p.span_fatal(span,                                let span = p.span;                            if p.token != token::CloseDelim(token::Paren) {                        if allow_variadic {                        try!(p.bump());                    if p.token == token::DotDotDot {                |p| {                seq_sep_trailing_allowed(token::Comma),                &token::CloseDelim(token::Paren),                &token::OpenDelim(token::Paren),            try!(self.parse_unspanned_seq(        let mut args: Vec<Option<Arg>> =        let sp = self.span;                     -> PResult<(Vec<Arg> , bool)> {    fn parse_fn_args(&mut self, named_args: bool, allow_variadic: bool)    }        Ok(where_clause)        }                           in it");                          "a `where` clause must have at least one predicate \            self.span_err(last_span,            let last_span = self.last_span;        if !parsed_something {        }            }                break            if !try!(self.eat(&token::Comma) ){            };                }                    }                              "unexpected token in `where` clause");                        self.span_err(last_span,                        let last_span = self.last_span;                    } else {                                     in where clauses (#20041)");                                     "equality constraints are not yet supported \                        self.span_err(span,                        // // FIXME(#18433)                        // parsed_something = true;                        // }));                        //         ty: ty,                        //         path: panic!("NYI"), //bounded_ty,                        //         span: span,                        //         id: ast::DUMMY_NODE_ID,                        //     ast::WherePredicate::EqPredicate(ast::WhereEqPredicate {                        // where_clause.predicates.push(                        let span = mk_sp(lo, hi);                        let hi = self.last_span.hi;                        // let ty = try!(self.parse_ty_nopanic());                    } else if try!(self.eat(&token::Eq) ){                        parsed_something = true;                        }));                                    bounds: bounds,                                    bounded_ty: bounded_ty,                                    bound_lifetimes: bound_lifetimes,                                    span: span,                                ast::WhereBoundPredicate {                        where_clause.predicates.push(ast::WherePredicate::BoundPredicate(                        }                                           at least one bound in it");                                          "each predicate in a `where` clause must have \                            self.span_err(span,                        if bounds.is_empty() {                        let span = mk_sp(lo, hi);                        let hi = self.last_span.hi;                        let bounds = try!(self.parse_ty_param_bounds(BoundParsingMode::Bare));                    if try!(self.eat(&token::Colon) ){                    let bounded_ty = try!(self.parse_ty_nopanic());                    };                        vec![]ad&�i��fI�����~e3�
�
�
�
�
�
�
"


�����e���|bF'�
�
|
g
]
W
V

�	�	�	k	\	I		���vpo@%�����fK�����U������^1���\
���~]8)���|)��            } else if this.look_ahead(1, |t| t.is_mutability()) &&                Ok(SelfRegion(None, MutImmutable, try!(this.expect_self_ident())))                try!(this.bump());            if this.look_ahead(1, |t| t.is_keyword(keywords::SelfValue)) {            // We already know that the current token is `&`.            //            //     fn(&'lt mut self)            //     fn(&'lt self)            //     fn(&mut self)            //     fn(&mut self)            //            // The following things are possible to see here:                                              -> PResult<ast::ExplicitSelf_> {        fn maybe_parse_borrowed_explicit_self(this: &mut Parser)    {        F: FnMut(&mut Parser) -> PResult<Arg>,                                  parse_arg_fn: F) -> PResult<(ExplicitSelf, P<FnDecl>)> where    fn parse_fn_decl_with_self<F>(&mut self,    /// that may have a self type.    /// Parse the argument list and result type of a function    }        }            }                                   token_str)))                Err(self.fatal(&format!("expected `Self`, found `{}`",                let token_str = self.this_token_to_string();            _ => {            },                Ok(id)                try!(self.bump());            token::Ident(id, token::Plain) if id.name == special_idents::type_self.name => {        match self.token {    fn expect_self_type_ident(&mut self) -> PResult<ast::Ident> {    }        }          _ => false          token::Ident(id, token::Plain) => id.name == special_idents::type_self.name,        match self.token {    fn is_self_type_ident(&mut self) -> bool {    }        }            }                                   token_str)))                return Err(self.fatal(&format!("expected `self`, found `{}`",                let token_str = self.this_token_to_string();            _ => {            },                Ok(id)                try!(self.bump());            token::Ident(id, token::Plain) if id.name == special_idents::self_.name => {        match self.token {    fn expect_self_ident(&mut self) -> PResult<ast::Ident> {    }        }          _ => false          token::Ident(id, token::Plain) => id.name == special_idents::self_.name,        match self.token {    fn is_self_ident(&mut self) -> bool {    }        }))            variadic: variadic            output: ret_ty,            inputs: args,        Ok(P(FnDecl {        let ret_ty = try!(self.parse_ret_ty());        let (args, variadic) = try!(self.parse_fn_args(true, allow_variadic));    pub fn parse_fn_decl(&mut self, allow_variadic: bool) -> PResult<P<FnDecl>> {    /// Parse the argument list and result type of a function declaration    }        Ok((args, variadic))        let args = args.into_iter().map(|x| x.unwrap()).collect();        }                          "variadic function must be declared with at least one named argument");            self.span_err(sp,        if variadic && args.is_empty() {        };            None => false            }                false                args.push(x);                // Need to put back that last arg            Some(x) => {            Some(None) => true,        let variadic = match args.pop() {            ));                }                    }                        Ok(Some(try!(p.parse_arg_general(named_args))))                    } else {                        Ok(None)                        }                                         "only foreign functions are allowed to be variadic"))adzQ��K��gD�
j
'
��v6������RQ�
�
�
j
i
>

�	�	f	3			��S0����oE���[*����9��{M7��k&%��3�����zy            }                }                    SelfStatic                } else {                    }                        SelfValue(self_ident)                    } else {                        SelfExplicit(try!(self.parse_ty_sum()), self_ident)                    if try!(self.eat(&token::Colon) ){                    // `self: TYPE`.                    // Determine whether this is the fully explicit form,                    let self_ident = try!(self.expect_self_ident());                    mutbl_self = try!(self.parse_mutability());                        self.look_ahead(1, |t| t.is_keyword(keywords::SelfValue)) {                } else if self.token.is_mutability() &&                    }                        SelfValue(self_ident)                    } else {                        SelfExplicit(try!(self.parse_ty_sum()), self_ident)                    if try!(self.eat(&token::Colon) ){                    // TYPE`.                    // Determine whether this is the fully explicit form, `self:                    let self_ident = try!(self.expect_self_ident());                if self.is_self_ident() {            token::Ident(..) => {            }                SelfValue(special_idents::self_)                // error case, making bogus self ident:                }                    try!(self.bump());                    self.span_err(span, "cannot pass self by unsafe pointer");                    let span = self.span;                if self.is_self_ident() {                };                    MutImmutable                } else {                    try!(self.parse_mutability())                let _mutability = if self.token.is_mutability() {                try!(self.bump());                // emitting cryptic "unexpected token" errors.                // Possibly "*self" or "*mut self" -- not supported. Try to avoid            token::BinOp(token::Star) => {            }                eself                self_ident_hi = self.last_span.hi;                self_ident_lo = self.last_span.lo;                let eself = try!(maybe_parse_borrowed_explicit_self(self));            token::BinOp(token::And) => {        let explicit_self = match self.token {        let mut mutbl_self = MutImmutable;        let mut self_ident_hi = self.span.hi;        let mut self_ident_lo = self.span.lo;        let lo = self.span.lo;        // backwards compatible.        // A bit of complexity and lookahead is needed here in order to be        try!(self.expect(&token::OpenDelim(token::Paren)));        }            }                Ok(SelfStatic)            } else {                Ok(SelfRegion(Some(lifetime), mutability, try!(this.expect_self_ident())))                let mutability = try!(this.parse_mutability());                let lifetime = try!(this.parse_lifetime());                try!(this.bump());                      this.look_ahead(3, |t| t.is_keyword(keywords::SelfValue)) {                      this.look_ahead(2, |t| t.is_mutability()) &&            } else if this.look_ahead(1, |t| t.is_lifetime()) &&                Ok(SelfRegion(Some(lifetime), MutImmutable, try!(this.expect_self_ident())))                let lifetime = try!(this.parse_lifetime());                try!(this.bump());                      this.look_ahead(2, |t| t.is_keyword(keywords::SelfValue)) {            } else if this.look_ahead(1, |t| t.is_lifetime()) &&                Ok(SelfRegion(None, mutability, try!(this.expect_self_ident())))                let mutability = try!(this.parse_mutability());                try!(this.bump());                      this.look_ahead(2, |t| t.is_keyword(keywords::SelfValue)) {ad�g�����>���hI'�
o
5

��{]K���\�
�
�
�
�
�
k
N

�	r	d	'	�����YX98������LFE���oZ��w;�����wv`;����a6����q>-����            node: node,            id: ast::DUMMY_NODE_ID,            attrs: attrs,            ident: ident,        P(Item {               attrs: Vec<Attribute>) -> P<Item> {               node: Item_, vis: Visibility,    fn mk_item(&mut self, lo: BytePos, hi: BytePos, ident: Ident,    }        Ok((id, generics))        let generics = try!(self.parse_generics());        let id = try!(self.parse_ident());    fn parse_fn_header(&mut self) -> PResult<(Ident, ast::Generics)> {    /// Parse the name and optional generic types of a function header.    }        }))            variadic: false            output: output,            inputs: inputs_captures,        Ok(P(FnDecl {        let output = try!(self.parse_ret_ty());        };            }                args                try!(self.bump());                ));                    |p| p.parse_fn_block_arg()                    seq_sep_trailing_allowed(token::Comma),                    &token::BinOp(token::Or),                let args = try!(self.parse_seq_to_before_end(                try!(self.parse_obsolete_closure_kind());                try!(self.expect(&token::BinOp(token::Or)));            } else {                Vec::new()            if try!(self.eat(&token::OrOr) ){        let inputs_captures = {    fn parse_fn_block_decl(&mut self) -> PResult<P<FnDecl>> {    // parse the |arg, arg| header on a lambda    }        Ok((spanned(lo, hi, explicit_self), fn_decl))        });            variadic: false            output: ret_ty,            inputs: fn_inputs,        let fn_decl = P(FnDecl {        let ret_ty = try!(self.parse_ret_ty());        let hi = self.span.hi;        try!(self.expect(&token::CloseDelim(token::Paren)));        };            SelfExplicit(_,id) => parse_remaining_arguments!(id),            SelfRegion(_,_,id) => parse_remaining_arguments!(id),            SelfValue(id) => parse_remaining_arguments!(id),            }                                                  sep, parse_arg_fn))                try!(self.parse_seq_to_before_end(&token::CloseDelim(token::Paren),                let sep = seq_sep_trailing_allowed(token::Comma);            SelfStatic =>  {        let fn_inputs = match explicit_self {        }            }            }                }                                       token_str)))                    return Err(self.fatal(&format!("expected `,` or `)`, found `{}`",                    let token_str = self.this_token_to_string();                _ => {                }                    vec!(Arg::new_self(explicit_self_sp, mutbl_self, $self_id))                token::CloseDelim(token::Paren) => {                }                    fn_inputs                    fn_inputs.insert(0, Arg::new_self(explicit_self_sp, mutbl_self, $self_id));                    ));                        parse_arg_fn                        sep,                        &token::CloseDelim(token::Paren),                    let mut fn_inputs = try!(self.parse_seq_to_before_end(                    let sep = seq_sep_trailing_allowed(token::Comma);                    try!(self.bump());                token::Comma => {            match self.token {            // If we parsed a self type, expect a comma before the argument list.            {            ($self_id:ident) =>        macro_rules! parse_remaining_arguments {        // writing this as a closure        // shared fall-through for the three cases below. borrowing prevents simply        let explicit_self_sp = mk_sp(self_ident_lo, self_ident_hi);        };            _ => SelfStatic,ad�a������c:��}I�
]
W
V

��c]\������5�
�
|
k
3
�	�	�	�	t	C	8		����}LK��}L!���t<���I��zG.#"
����mVJDC���|$�������    }        }            Inherited => (),            }                                      the invocation");                self.fileline_help(span, "try adjusting the macro to put `pub` inside \                self.span_err(span, "can't qualify macro invocation with `pub`");            Public => {        match visa {    fn complain_if_pub_macro(&mut self, visa: Visibility, span: Span) {    }        }))            node: node            attrs: attrs,            vis: vis,            ident: name,            span: mk_sp(lo, self.last_span.hi),            id: ast::DUMMY_NODE_ID,        Ok(P(ImplItem {        };            (name, node)            attrs.extend(inner_attrs.into_iter());            let (name, inner_attrs, node) = try!(self.parse_impl_method(vis));        } else {            (name, ConstImplItem(typ, expr))            try!(self.commit_expr_expecting(&expr, token::Semi));            let expr = try!(self.parse_expr_nopanic());            try!(self.expect(&token::Eq));            let typ = try!(self.parse_ty_sum());            try!(self.expect(&token::Colon));            let name = try!(self.parse_ident());            try!(self.expect_keyword(keywords::Const));        } else if self.is_const_item() {            (name, TypeImplItem(typ))            try!(self.expect(&token::Semi));            let typ = try!(self.parse_ty_sum());            try!(self.expect(&token::Eq));            let name = try!(self.parse_ident());        let (name, node) = if try!(self.eat_keyword(keywords::Type)) {        let vis = try!(self.parse_visibility());        let lo = self.span.lo;        let mut attrs = self.parse_outer_attributes();        maybe_whole!(no_clone self, NtImplItem);    pub fn parse_impl_item(&mut self) -> PResult<P<ImplItem>> {    /// Parse an impl item.    }        Ok((constness, unsafety, abi))        try!(self.expect_keyword(keywords::Fn));        };            (Constness::NotConst, unsafety, abi)            };                abi::Rust            } else {                try!(self.parse_opt_abi()).unwrap_or(abi::C)            let abi = if try!(self.eat_keyword(keywords::Extern)) {            let unsafety = try!(self.parse_unsafety());        } else {            (Constness::Const, Unsafety::Normal, abi::Rust)        let (constness, unsafety, abi) = if is_const_fn {        let is_const_fn = try!(self.eat_keyword(keywords::Const));    pub fn parse_fn_front_matter(&mut self) -> PResult<(ast::Constness, ast::Unsafety, abi::Abi)> {    /// - etc    /// - `extern fn`    /// - `unsafe fn`    /// - `const fn`    ///    /// and including the `fn` keyword:    /// parses all the "front matter" for a `fn` declaration, up to    }            !self.look_ahead(1, |t| t.is_keyword(keywords::Fn))        self.token.is_keyword(keywords::Const) &&    pub fn is_const_item(&mut self) -> bool {    /// true if we are looking at `const ID`, false for things like `const fn` etc    }        Ok((ident, ItemFn(decl, unsafety, constness, abi, generics, body), Some(inner_attrs)))        let (inner_attrs, body) = try!(self.parse_inner_attrs_and_block());        generics.where_clause = try!(self.parse_where_clause());        let decl = try!(self.parse_fn_decl(false));        let (ident, mut generics) = try!(self.parse_fn_header());                     -> PResult<ItemInfo> {                     abi: abi::Abi)                     constness: Constness,                     unsafety: Unsafety,    fn parse_item_fn(&mut self,    /// Parse an item-position function declaration.    }        })            span: mk_sp(lo, hi)            vis: vis,ad3�V��9���E�
�
�
�
p
o
2


��N��S	�
�
e
W
	
�	�	u	9	���m���mI#�����qpB���SR�����T5����QP���h0������        // Parse the trait.        };            ast::ImplPolarity::Positive        } else {            ast::ImplPolarity::Negative        let polarity = if try!(self.eat(&token::Not) ){        let neg_span = self.span;        let could_be_trait = self.token != token::OpenDelim(token::Paren);        // allow this to be parsed as a trait.        // Special case: if the next identifier that follows is '(', don't        let mut generics = try!(self.parse_generics());        // First, parse type parameters if necessary.        let impl_span = self.span;    fn parse_item_impl(&mut self, unsafety: ast::Unsafety) -> PResult<ItemInfo> {    ///    impl Send for .. {}    ///    impl<T> ToString for &'static T { ... }    ///    impl<T> Foo { ... }    /// Parses items implementations variants    }        Ok((ident, ItemTrait(unsafety, tps, bounds, meths), None))        let meths = try!(self.parse_trait_items());        tps.where_clause = try!(self.parse_where_clause());        let bounds = try!(self.parse_colon_then_ty_param_bounds(BoundParsingMode::Bare));        // Parse supertrait bounds.        let mut tps = try!(self.parse_generics());        let ident = try!(self.parse_ident());    fn parse_item_trait(&mut self, unsafety: Unsafety) -> PResult<ItemInfo> {    /// Parse trait Foo { ... }    }        }             }, body)))                decl: decl                constness: constness,                unsafety: unsafety,                explicit_self: explicit_self,                abi: abi,                generics: generics,            Ok((ident, inner_attrs, MethodImplItem(ast::MethodSig {            let (inner_attrs, body) = try!(self.parse_inner_attrs_and_block());            generics.where_clause = try!(self.parse_where_clause());                }));                    p.parse_arg()            let (explicit_self, decl) = try!(self.parse_fn_decl_with_self(|p| {            let mut generics = try!(self.parse_generics());            let ident = try!(self.parse_ident());            let (constness, unsafety, abi) = try!(self.parse_fn_front_matter());        } else {            Ok((token::special_idents::invalid, vec![], ast::MacImplItem(m)))            }                try!(self.expect(&token::Semi))            if delim != token::Brace {                                                            self.span.hi) };                                                span: mk_sp(self.span.lo,            let m: ast::Mac = codemap::Spanned { node: m_,            let m_ = ast::MacInvocTT(pth, tts, EMPTY_CTXT);                                            |p| p.parse_token_tree()));                                            seq_sep_none(),            let tts = try!(self.parse_seq_to_end(&token::CloseDelim(delim),            let delim = try!(self.expect_open_delim());            // eat a matched-delimiter token tree:            try!(self.expect(&token::Not));            let pth = try!(self.parse_path(NoTypesAllowed));            self.complain_if_pub_macro(vis, last_span);            let last_span = self.last_span;            // method macro.                || self.look_ahead(2, |t| *t == token::OpenDelim(token::Brace))) {            && (self.look_ahead(2, |t| *t == token::OpenDelim(token::Paren))            && self.look_ahead(1, |t| *t == token::Not)        if !self.token.is_any_keyword()        // code copied from parse_macro_use_or_failure... abstraction!                         -> PResult<(Ident, Vec<ast::Attribute>, ast::ImplItem_)> {    fn parse_impl_method(&mut self, vis: Visibility)    /// Parse a method or a macro invocation in a trait impl.ad,�d���S���wP9'�
�
�
�
�
n
=

�gT<.��f �
�
R

�	�	�	�	V	U		���n/! ��qga`A��}rlk��vR4#�����o&%��ujdcB���p@����        }            self.span_err(ty.span, "`virtual` structs have been removed from the language");            let ty = try!(self.parse_ty_sum());        if try!(self.eat(&token::Colon) ){        let mut generics = try!(self.parse_generics());        let class_name = try!(self.parse_ident());    fn parse_item_struct(&mut self) -> PResult<ItemInfo> {    /// Parse struct Foo { ... }    }        })            span: mk_sp(lo, self.last_span.hi),            trait_ref: try!(self.parse_trait_ref()),            bound_lifetimes: lifetime_defs,        Ok(ast::PolyTraitRef {        let lifetime_defs = try!(self.parse_late_bound_lifetime_defs());        let lo = self.span.lo;    fn parse_poly_trait_ref(&mut self) -> PResult<PolyTraitRef> {    /// Parse for<'l> a::B<String,i32>    }        }            Ok(Vec::new())        } else {            Ok(lifetime_defs)            try!(self.expect_gt());            let lifetime_defs = try!(self.parse_lifetime_defs());            try!(self.expect(&token::Lt));        if try!(self.eat_keyword(keywords::For) ){    fn parse_late_bound_lifetime_defs(&mut self) -> PResult<Vec<ast::LifetimeDef>> {    }        })            ref_id: ast::DUMMY_NODE_ID,            path: try!(self.parse_path(LifetimeAndTypesWithoutColons)),        Ok(ast::TraitRef {    fn parse_trait_ref(&mut self) -> PResult<TraitRef> {    /// Parse a::B<String,i32>    }        }             Some(attrs)))             ItemImpl(unsafety, polarity, generics, opt_trait, ty, impl_items),            Ok((ast_util::impl_pretty_name(&opt_trait, Some(&*ty)),            }                impl_items.push(try!(self.parse_impl_item()));            while !try!(self.eat(&token::CloseDelim(token::Brace))) {            let mut impl_items = vec![];            let attrs = self.parse_inner_attributes();            try!(self.expect(&token::OpenDelim(token::Brace)));            generics.where_clause = try!(self.parse_where_clause());            }                ty = try!(self.parse_ty_sum());            if opt_trait.is_some() {        } else {             ItemDefaultImpl(unsafety, opt_trait.unwrap()), None))            Ok((ast_util::impl_pretty_name(&opt_trait, None),            try!(self.expect(&token::CloseDelim(token::Brace)));            try!(self.expect(&token::OpenDelim(token::Brace)));            }                                          allowed to have generics");                self.span_err(impl_span, "default trait implementations are not \            if generics.is_parameterized() {        if try!(self.eat(&token::DotDot) ){        };            None            }                _ => {}                },                    self.span_err(neg_span, "inherent implementation can't be negated");                    // `impl !MyType {}`, which is not allowed.                    // This is a negated type implementation                ast::ImplPolarity::Negative => {            match polarity {        } else {            }                }                    None                    self.span_err(ty.span, "not a trait");                _ => {                }                    })                        ref_id: ty.id,                        path: (*path).clone(),                    Some(TraitRef {                TyPath(None, ref path) => {            match ty.node {            // New-style trait. Reinterpret the type as a trait.        let opt_trait = if could_be_trait && try!(self.eat_keyword(keywords::For) ){        // Parse traits, if necessary.        let mut ty = try!(self.parse_ty_sum());ad�T�\*���P�
�
�
q
p
$
��f/��T#�
�
�
:

�	�	p	A	6	5		�������\��\��] ���S�������^��V���m1	���                        kind: UnnamedField(try!(p.parse_visibility())),                    let struct_field_ = ast::StructField_ {                    let lo = p.span.lo;                    let attrs = p.parse_outer_attributes();                |p| {                seq_sep_trailing_allowed(token::Comma),                &token::CloseDelim(token::Paren),                &token::OpenDelim(token::Paren),            let fields = try!(self.parse_unspanned_seq(        if self.check(&token::OpenDelim(token::Paren)) {        // This is the case where we find `struct Foo<T>(T) where T: Copy;`                                   -> PResult<Vec<StructField>> {                                   generics: &mut ast::Generics)                                   class_name: &ast::Ident,    pub fn parse_tuple_struct_body(&mut self,    }        Ok(fields)        }                                token_str)));                                name, found `{}`", "{",            return Err(self.fatal(&format!("expected `where`, or `{}` after struct \            let token_str = self.this_token_to_string();        } else {            try!(self.bump());            }                    token::get_ident(class_name.clone()))));                    written as `struct {};`",                return Err(self.fatal(&format!("unit-like struct definition should be \            if fields.is_empty() {            }                fields.push(try!(self.parse_struct_decl_field(true)));            while self.token != token::CloseDelim(token::Brace) {        if try!(self.eat(&token::OpenDelim(token::Brace)) ){        let mut fields = Vec::new();                                    class_name: &ast::Ident) -> PResult<Vec<StructField>> {    pub fn parse_record_struct_body(&mut self,    }         None))         }), generics),             ctor_id: ctor_id,             fields: fields,         ItemStruct(P(ast::StructDef {        Ok((class_name,        };            (fields, Some(ast::DUMMY_NODE_ID))            let fields = try!(self.parse_tuple_struct_body(&class_name, &mut generics));        } else {        // Tuple-style struct definition with optional where-clause.            (fields, None)            let fields = try!(self.parse_record_struct_body(&class_name));        } else if self.token == token::OpenDelim(token::Brace) {        // Record-style struct definition            (Vec::new(), Some(ast::DUMMY_NODE_ID))        } else if try!(self.eat(&token::Semi) ){        // No `where` so: `struct Foo<T>;`            }                (try!(self.parse_record_struct_body(&class_name)), None)                // If we see: `struct Foo<T> where T: Copy { ... }`            } else {                (Vec::new(), Some(ast::DUMMY_NODE_ID))                // If we see a: `struct Foo<T> where T: Copy;` style decl.            if try!(self.eat(&token::Semi)) {            generics.where_clause = try!(self.parse_where_clause());        let (fields, ctor_id) = if self.token.is_keyword(keywords::Where) {        // struct.        // Otherwise if we look ahead and see a paren we parse a tuple-style        //        // parsing a record style struct.        // So if we look ahead and see a brace or a where-clause we begin        // that the where clause comes before the body, and after the generics.        // If we are parsing a normal record-style struct it is the case        //        // struct Foo<T>(T) where T: Copy;        //        // should follow the field list. Like so:        // If we are parsing a tuple struct it is the case that the where clause        // There is a special case worth noting here, as reported in issue #17904.ad�`��v_!��b%�
�
�
B

��zC2��lb\[/�
�
�
M

�	�	�	�	s	`	:	��t;�������0/�����?1������s7�����/�����I������|vu$����        let ty = try!(self.parse_ty_sum());        try!(self.expect(&token::Colon));        let id = try!(self.parse_ident());    fn parse_item_const(&mut self, m: Option<Mutability>) -> PResult<ItemInfo> {    }        })            items: items            inner: mk_sp(inner_lo, self.span.lo),        Ok(ast::Mod {        }            return Err(self.fatal(&format!("expected item, found `{}`", token_str)));            let token_str = self.this_token_to_string();        if !try!(self.eat(term)) {        }            items.push(item);        while let Some(item) = try!(self.parse_item_nopanic()) {        let mut items = vec![];    fn parse_mod_items(&mut self, term: &token::Token, inner_lo: BytePos) -> PResult<Mod> {    /// Given a termination token, parse all of the items in a module    }        else { Ok(Inherited) }        if try!(self.eat_keyword(keywords::Pub)) { Ok(Public) }    fn parse_visibility(&mut self) -> PResult<Visibility> {    /// Parse visibility: PUB or nothing    }        return self.parse_single_struct_field(Inherited, attrs);        }            return self.parse_single_struct_field(Public, attrs);            }                self.span_err(span, "`pub` is not allowed here");                let span = self.last_span;            if !allow_pub {        if try!(self.eat_keyword(keywords::Pub) ){        let attrs = self.parse_outer_attributes();    fn parse_struct_decl_field(&mut self, allow_pub: bool) -> PResult<StructField> {    /// Parse an element of a struct definition    }        Ok(a_var)        }            }                                     "struct fields should be separated by commas"))                                             token_str),                                     &format!("expected `,`, or `}}`, found `{}`",                return Err(self.span_fatal_help(span,                let token_str = self.this_token_to_string();                let span = self.span;            _ => {            token::CloseDelim(token::Brace) => {}            }                try!(self.bump());            token::Comma => {        match self.token {        let a_var = try!(self.parse_name_and_ty(vis, attrs));                                     -> PResult<StructField> {                                     attrs: Vec<Attribute> )                                     vis: Visibility,    pub fn parse_single_struct_field(&mut self,    /// Parse a structure field declaration    }        }                name, found `{}`", "{", token_str)))            Err(self.fatal(&format!("expected `where`, `{}`, `(`, or `;` after struct \            let token_str = self.this_token_to_string();        } else {        // This case is where we see: `struct Foo<T>;`            Ok(Vec::new())            try!(self.expect(&token::Semi));            generics.where_clause = try!(self.parse_where_clause());        } else if self.token.is_keyword(keywords::Where) {        // This is the case where we just see struct Foo<T> where T: Copy;            Ok(fields)            try!(self.expect(&token::Semi));            generics.where_clause = try!(self.parse_where_clause());            }                    token::get_ident(class_name.clone()))));                    written as `struct {};`",                return Err(self.fatal(&format!("unit-like struct definition should be \            if fields.is_empty() {                }));                    Ok(spanned(lo, p.span.hi, struct_field_))                    };                        attrs: attrs,                        ty: try!(p.parse_ty_sum()),                        id: ast::DUMMY_NODE_ID,ad=�R��lO"������A �
�
�
o

���xK��R�
�
�
�
�
z
B
�	�	�	o	d	8	2	1		�����p<�|fC���e>��{2��G����G��u^4���                                            to its own directory via \                                   &format!("maybe move this module `{0}` \                    self.span_note(id_sp,                    };                        None => self.root_module_name.as_ref().unwrap().clone(),                        Some(name) => name.to_string(),                    let this_module = match self.mod_path_stack.last() {                                  "cannot declare a new module at this location");                    self.span_err(id_sp,                if !self.owns_directory {                let secondary_exists = self.sess.codemap().file_exists(&secondary_path);                let default_exists = self.sess.codemap().file_exists(&default_path);                let secondary_path = dir_path.join(&secondary_path_str[..]);                let default_path = dir_path.join(&default_path_str[..]);                let secondary_path_str = format!("{}/mod.rs", mod_name);                let default_path_str = format!("{}.rs", mod_name);                let mod_name = mod_string.to_string();            None => {            Some(d) => (dir_path.join(&*d), true),                outer_attrs, "path") {        let (file_path, owns_directory) = match ::attr::first_attr_value_str_by_name(        let mod_string = token::get_ident(id);        }            dir_path.push(&**part);        for part in &self.mod_path_stack {        let mut dir_path = prefix;        prefix.pop();        let mut prefix = PathBuf::from(&self.sess.codemap().span_to_filename(self.span));                    -> PResult<(ast::Item_, Vec<ast::Attribute> )> {                    id_sp: Span)                    outer_attrs: &[ast::Attribute],                    id: ast::Ident,    fn eval_src_mod(&mut self,    /// Read a module from a source file.    }        self.mod_path_stack.pop().unwrap();    fn pop_mod_path(&mut self) {    }        self.mod_path_stack.push(file_path)        };            None => default_path,            Some(d) => d,                                                                   "path") {        let file_path = match ::attr::first_attr_value_str_by_name(attrs,        let default_path = self.id_to_interned_str(id);    fn push_mod_path(&mut self, id: Ident, attrs: &[Attribute]) {    }        }            Ok((id, ItemMod(m), Some(attrs)))            self.pop_mod_path();            self.owns_directory = old_owns_directory;            let m = try!(self.parse_mod_items(&token::CloseDelim(token::Brace), mod_inner_lo));            let attrs = self.parse_inner_attributes();            self.owns_directory = true;            let old_owns_directory = self.owns_directory;            let mod_inner_lo = self.span.lo;            try!(self.expect(&token::OpenDelim(token::Brace)));            self.push_mod_path(id, outer_attrs);        } else {            Ok((id, m, Some(attrs)))            let (m, attrs) = try!(self.eval_src_mod(id, outer_attrs, id_span));            // This mod is in an external file. Let's go get it!            try!(self.bump());        if self.check(&token::Semi) {        let id = try!(self.parse_ident());        let id_span = self.span;    fn parse_item_mod(&mut self, outer_attrs: &[Attribute]) -> PResult<ItemInfo> {    /// Parse a `mod <foo> { ... }` or `mod <foo>;` item    }        Ok((id, item, None))        };            None => ItemConst(ty, e),            Some(m) => ItemStatic(ty, m, e),        let item = match m {        try!(self.commit_expr_expecting(&*e, token::Semi));        let e = try!(self.parse_expr_nopanic());        try!(self.expect(&token::Eq));ad6�O��O!��D	�
�
�
�
y
=

��A�Y�
}
g
A

�	�	i	;		�v`N@54�����U!��I��w?���VH1'�����Y-���s>������    }        Ok((ast::ItemMod(m0), mod_attrs))        self.sess.included_mod_stack.borrow_mut().pop();        let m0 = try!(p0.parse_mod_items(&token::Eof, mod_inner_lo));        let mod_attrs = p0.parse_inner_attributes();        let mod_inner_lo = p0.span.lo;                                     id_sp);                                     Some(name),                                     owns_directory,                                     &path,                                     self.cfg.clone(),            new_sub_parser_from_file(self.sess,        let mut p0 =        drop(included_mod_stack);        included_mod_stack.push(path.clone());        }            None => ()            }                return Err(self.span_fatal(id_sp, &err[..]));                err.push_str(&path.to_string_lossy());                }                    err.push_str(" -> ");                    err.push_str(&p.to_string_lossy());                for p in &included_mod_stack[i.. len] {                let len = included_mod_stack.len();                let mut err = String::from("circular modules: ");            Some(i) => {        match included_mod_stack.iter().position(|p| *p == path) {        let mut included_mod_stack = self.sess.included_mod_stack.borrow_mut();                              id_sp: Span) -> PResult<(ast::Item_, Vec<ast::Attribute> )> {                              name: String,                              owns_directory: bool,                              path: PathBuf,    fn eval_src_mod_from_path(&mut self,    }                                    mod_string.to_string(), id_sp)        self.eval_src_mod_from_path(file_path, owns_directory,        };            }                }                    }                            "delete or rename one of them to remove the ambiguity"));                                    secondary_path_str),                                    default_path_str,                                    mod_name,                                     and {}",                            &format!("file for module `{}` found at both {} \                            id_sp,                        return Err(self.span_fatal_help(                    (true, true) => {                    }                                                     dir_path.display())));                                                     secondary_path_str,                                                     default_path_str,                                                     the directory {:?}",                                             &format!("name the file either {} or {} inside \                                                     mod_name),                                             &format!("file not found for module `{}`",                        return Err(self.span_fatal_help(id_sp,                    (false, false) => {                    (false, true) => (secondary_path, true),                    (true, false) => (default_path, false),                match (default_exists, secondary_exists) {                }                    self.abort_if_errors();                    }                                               mod_name));                                                redeclaring it",                                                `{}` instead of possibly \                                       &format!("... or maybe `use` the module \                        self.span_note(id_sp,                    if default_exists || secondary_exists {                                           this_module));                                            `{0}/mod.rs`",ad �l��6���p/�
�
�
�
b
>


�����,
���mC�
�
�
�
�
P
,

�	�	�	�	�	�	�	�	�	d	:		��kj7���}rIH ���rUON&
�����}kB��o;������f%�����mW6+��                     last_span.hi,        Ok(self.mk_item(lo,        };            items: foreign_items            abi: abi,        let m = ast::ForeignMod {        let last_span = self.last_span;        try!(self.expect(&token::CloseDelim(token::Brace)));        }            foreign_items.push(item);        while let Some(item) = try!(self.parse_foreign_item()) {        let mut foreign_items = vec![];        attrs.extend(self.parse_inner_attributes().into_iter());        let abi = opt_abi.unwrap_or(abi::C);        try!(self.expect(&token::OpenDelim(token::Brace)));                              -> PResult<P<Item>> {                              mut attrs: Vec<Attribute>)                              visibility: Visibility,                              opt_abi: Option<abi::Abi>,                              lo: BytePos,    fn parse_item_foreign_mod(&mut self,    /// extern {}    /// extern "C" {}    ///    /// # Examples:    ///    /// consumed before calling this method    /// `extern` is expected to have been    ///    /// modules.    /// Parse `extern` for foreign ABIs    }                     attrs))                     visibility,                     ItemExternCrate(maybe_path),                     ident,                     last_span.hi,        Ok(self.mk_item(lo,        let last_span = self.last_span;        try!(self.expect(&token::Semi));        };            (None, crate_name)        } else {            (Some(crate_name.name), try!(self.parse_ident()))        let (maybe_path, ident) = if try!(self.eat_keyword(keywords::As)) {        let crate_name = try!(self.parse_ident());                                -> PResult<P<Item>> {                               attrs: Vec<Attribute>)                               visibility: Visibility,                               lo: BytePos,    fn parse_item_extern_crate(&mut self,    /// extern crate bar as foo;    /// extern crate foo;    ///    /// # Examples    ///    /// Parse extern crate links    }        }))            vis: vis            span: mk_sp(lo, hi),            id: ast::DUMMY_NODE_ID,            node: ForeignItemStatic(ty, mutbl),            attrs: attrs,            ident: ident,        Ok(P(ForeignItem {        try!(self.expect(&token::Semi));        let hi = self.span.hi;        let ty = try!(self.parse_ty_sum());        try!(self.expect(&token::Colon));        let ident = try!(self.parse_ident());        let mutbl = try!(self.eat_keyword(keywords::Mut));        try!(self.expect_keyword(keywords::Static));        let lo = self.span.lo;                                 attrs: Vec<Attribute>) -> PResult<P<ForeignItem>> {    fn parse_item_foreign_static(&mut self, vis: ast::Visibility,    /// Parse a static item from a foreign module    }        }))            vis: vis            span: mk_sp(lo, hi),            id: ast::DUMMY_NODE_ID,            node: ForeignItemFn(decl, generics),            attrs: attrs,            ident: ident,        Ok(P(ast::ForeignItem {        try!(self.expect(&token::Semi));        let hi = self.span.hi;        generics.where_clause = try!(self.parse_where_clause());        let decl = try!(self.parse_fn_decl(true));        let (ident, mut generics) = try!(self.parse_fn_header());        try!(self.expect_keyword(keywords::Fn));        let lo = self.span.lo;                             attrs: Vec<Attribute>) -> PResult<P<ForeignItem>> {    fn parse_item_foreign_fn(&mut self, vis: ast::Visibility,    /// Parse a function declaration from a foreign modulead�_���lfeG��qJ�
�
�
�
�
S

��\R76�����F�
�
�
]
9
8


�	�	�	�	Z		���]+��r7%���F��vb>����e2��{f1#"����vP6'�����        }            if !try!(self.eat(&token::Comma)) { break; }            variants.push(P(spanned(vlo, self.last_span.hi, vr)));            };                vis: vis,                disr_expr: disr_expr,                id: ast::DUMMY_NODE_ID,                kind: kind,                attrs: variant_attrs,                name: ident,            let vr = ast::Variant_ {            }                kind = TupleVariantKind(Vec::new());            } else {                kind = TupleVariantKind(args);                any_disr = disr_expr.as_ref().map(|expr| expr.span);                disr_expr = Some(try!(self.parse_expr_nopanic()));            } else if try!(self.eat(&token::Eq) ){                kind = TupleVariantKind(args);                }                    });                        id: ast::DUMMY_NODE_ID,                        ty: ty,                    args.push(ast::VariantArg {                for ty in arg_tys {                ));                    |p| p.parse_ty_sum()                    seq_sep_trailing_allowed(token::Comma),                    &token::CloseDelim(token::Paren),                    &token::OpenDelim(token::Paren),                let arg_tys = try!(self.parse_enum_variant_seq(                all_nullary = false;            } else if self.check(&token::OpenDelim(token::Paren)) {                kind = StructVariantKind(struct_def);                }                                token::get_ident(ident)));                                 without braces, as `{},`",                        &format!("unit-like struct variant should be written \                    self.span_err(start_span,                if struct_def.fields.is_empty() {                let struct_def = try!(self.parse_struct_def());                let start_span = self.span;                all_nullary = false;                // Parse a struct variant.            if try!(self.eat(&token::OpenDelim(token::Brace)) ){            ident = try!(self.parse_ident());            let mut disr_expr = None;            let mut args = Vec::new();            let kind;            let ident;            let vis = try!(self.parse_visibility());            let vlo = self.span.lo;            let variant_attrs = self.parse_outer_attributes();        while self.token != token::CloseDelim(token::Brace) {        let mut any_disr = None;        let mut all_nullary = true;        let mut variants = Vec::new();    fn parse_enum_def(&mut self, _generics: &ast::Generics) -> PResult<EnumDef> {    /// Parse the part of an "enum" decl following the '{'    }        }))            ctor_id: None,            fields: fields,        Ok(P(StructDef {        try!(self.bump());        }            fields.push(try!(self.parse_struct_decl_field(false)));        while self.token != token::CloseDelim(token::Brace) {        let mut fields: Vec<StructField> = Vec::new();    fn parse_struct_def(&mut self) -> PResult<P<StructDef>> {    /// this should probably be renamed or refactored...    /// Parse a structure-like enum variant definition    }        Ok((ident, ItemTy(ty, tps), None))        try!(self.expect(&token::Semi));        let ty = try!(self.parse_ty_sum());        try!(self.expect(&token::Eq));        tps.where_clause = try!(self.parse_where_clause());        let mut tps = try!(self.parse_generics());        let ident = try!(self.parse_ident());    fn parse_item_type(&mut self) -> PResult<ItemInfo> {    /// Parse type Foo = Bar;    }                     attrs))                     visibility,                     ItemForeignMod(m),                     special_idents::invalid,ad%�\��~_:+����qE�
�
�
�
u
;



��c*��{c8�
�
e
-
�	�	�	�	1			���xA��m$��yed-
���zhZP���zW+�����UK�����[<$���            module: try!(self.parse_mod_items(&token::Eof, lo)),            attrs: self.parse_inner_attributes(),        Ok(ast::Crate {        let lo = self.span.lo;    pub fn parse_crate_mod(&mut self) -> PResult<Crate> {    /// entry point for the parser.    /// Parses a source module as a crate. This is the main    }        Ok(P(spanned(lo, self.last_span.hi, ViewPathSimple(rename_to, path))))        }            rename_to = try!(self.parse_ident())        if try!(self.eat_keyword(keywords::As)) {        };            }).collect()                }                    parameters: ast::PathParameters::none(),                    identifier: identifier,                ast::PathSegment {            segments: path.into_iter().map(|identifier| {            global: false,            span: mk_sp(lo, self.last_span.hi),        let path = ast::Path {        let mut rename_to = path[path.len() - 1];        }            }                }                  _ => break                  }                    self.span_err(self.span, "expected identifier or `{` or `*`, found `;`");                  token::Semi => {                  // fall-through for case foo::bar::;                  }                    return Ok(P(spanned(lo, self.span.hi, ViewPathGlob(path))));                    };                        }).collect()                            }                                parameters: ast::PathParameters::none(),                                identifier: identifier,                            ast::PathSegment {                        segments: path.into_iter().map(|identifier| {                        global: false,                        span: mk_sp(lo, self.span.hi),                    let path = ast::Path {                    try!(self.bump());                  token::BinOp(token::Star) => {                  // foo::bar::*                  }                    return Ok(P(spanned(lo, self.span.hi, ViewPathList(path, idents))));                    };                        }).collect()                            }                                parameters: ast::PathParameters::none(),                                identifier: identifier,                            ast::PathSegment {                        segments: path.into_iter().map(|identifier| {                        global: false,                        span: mk_sp(lo, self.span.hi),                    let path = ast::Path {                    ));                        |p| p.parse_path_list_item()                        seq_sep_trailing_allowed(token::Comma),                        &token::CloseDelim(token::Brace),                        &token::OpenDelim(token::Brace),                    let idents = try!(self.parse_unspanned_seq(                  token::OpenDelim(token::Brace) => {                  // foo::bar::{a,b,c}                  }                    path.push(ident);                    let ident = try!(self.parse_ident());                  token::Ident(..) => {                match self.token {                try!(self.bump());            while self.check(&token::ModSep) {            // foo::bar or foo::{a,b,c} or foo::*        if let token::ModSep = self.token {        let mut path = vec!(first_ident);        let first_ident = try!(self.parse_ident());        }            return Ok(P(spanned(lo, self.span.hi, ViewPathList(path, idents))));            };                segments: Vec::new()                global: false,                span: mk_sp(lo, self.span.hi),            let path = ast::Path {                |p| p.parse_path_list_item()));ad3�b��{R�������N#�
�
n
m
)
����j+��P-�
�
�
J
#
�	�		;			���������P��V������g@����yxYX ���hg;��rB����y���            let opt_abi = try!(self.parse_opt_abi());            }                return Ok(Some(try!(self.parse_item_extern_crate(lo, visibility, attrs))));            if try!(self.eat_keyword(keywords::Crate)) {        if try!(self.eat_keyword(keywords::Extern)) {        }            return Ok(Some(item));                                    attrs);                                    visibility,                                    item_,                                    token::special_idents::invalid,                                    last_span.hi,            let item = self.mk_item(lo,            let last_span = self.last_span;            try!(self.expect(&token::Semi));            let item_ = ItemUse(try!(self.parse_view_path()));            // USE ITEM        if try!(self.eat_keyword(keywords::Use) ){        let visibility = try!(self.parse_visibility());        let lo = self.span.lo;        }            None => {}            }                return Ok(Some(P(item)));                item.attrs.extend(attrs.into_iter());                mem::swap(&mut item.attrs, &mut attrs);                let mut attrs = attrs;                try!(self.bump());            Some(mut item) => {        match nt_item {        };            _ => None            }                Some((**item).clone())            token::Interpolated(token::NtItem(ref item)) => {        let nt_item = match self.token {                   macros_allowed: bool) -> PResult<Option<P<Item>>> {    fn parse_item_(&mut self, attrs: Vec<Attribute>,    /// extern crate.    /// NB: this function no longer parses the items inside an    /// Parse one of the items allowed by the flags.    }        }            _ => Ok(None),            }                }                    }                        Ok(None)                                    the_string));                                    abi::all_names().connect(", "),                                     found `{}`",                            &format!("illegal ABI: expected one of [{}], \                            last_span,                        self.span_err(                        let last_span = self.last_span;                    None => {                    Some(abi) => Ok(Some(abi)),                match abi::lookup(the_string) {                let the_string = s.as_str();                try!(self.bump());                self.expect_no_suffix(sp, "ABI spec", suf);                let sp = self.span;            token::Literal(token::Str_(s), suf) | token::Literal(token::StrRaw(s, _), suf) => {        match self.token {    fn parse_opt_abi(&mut self) -> PResult<Option<abi::Abi>> {    /// the `extern` keyword, if one is found.    /// Parses a string as an ABI spec on an extern type or module. Consumes    }        Ok((id, ItemEnum(enum_definition, generics), None))        let enum_definition = try!(self.parse_enum_def(&generics));        try!(self.expect(&token::OpenDelim(token::Brace)));        generics.where_clause = try!(self.parse_where_clause());        let mut generics = try!(self.parse_generics());        let id = try!(self.parse_ident());    fn parse_item_enum(&mut self) -> PResult<ItemInfo> {    /// Parse an "enum" declaration    }        Ok(ast::EnumDef { variants: variants })        }            _ => ()                    "discriminator values can only be used with a c-like enum"),                self.span_err(disr_span,            Some(disr_span) if !all_nullary =>        match any_disr {        try!(self.expect(&token::CloseDelim(token::Brace)));ad!yO��m;���O �
�
r
K

���dZY����\A�
�
b
:

�	�	�	;			���]+��r<
��_8*)��[��|T"���U2(����O��yx            let last_span = self.last_span;                try!(self.parse_item_trait(ast::Unsafety::Unsafe));            let (ident, item_, extra_attrs) =            try!(self.expect_keyword(keywords::Trait));            try!(self.expect_keyword(keywords::Unsafe));            // UNSAFE TRAIT ITEM        {            self.look_ahead(1, |t| t.is_keyword(keywords::Trait))        if self.check_keyword(keywords::Unsafe) &&        }            return Ok(Some(item));                                    maybe_append(attrs, extra_attrs));                                    visibility,                                    item_,                                    ident,                                    last_span.hi,            let item = self.mk_item(lo,            let last_span = self.last_span;            let (ident, item_, extra_attrs) = try!(self.parse_item_const(None));            }                self.fileline_help(last_span, "did you mean to declare a static?");                self.span_err(last_span, "const globals cannot be mutable");                let last_span = self.last_span;            if try!(self.eat_keyword(keywords::Mut) ){            // CONST ITEM            }                return Ok(Some(item));                                        maybe_append(attrs, extra_attrs));                                        visibility,                                        item_,                                        ident,                                        last_span.hi,                let item = self.mk_item(lo,                let last_span = self.last_span;                    try!(self.parse_item_fn(Unsafety::Normal, Constness::Const, abi::Rust));                let (ident, item_, extra_attrs) =                try!(self.bump());                // CONST FUNCTION ITEM            if self.check_keyword(keywords::Fn) {        if try!(self.eat_keyword(keywords::Const) ){        }            return Ok(Some(item));                                    maybe_append(attrs, extra_attrs));                                    visibility,                                    item_,                                    ident,                                    last_span.hi,            let item = self.mk_item(lo,            let last_span = self.last_span;            let (ident, item_, extra_attrs) = try!(self.parse_item_const(Some(m)));            let m = if try!(self.eat_keyword(keywords::Mut)) {MutMutable} else {MutImmutable};            // STATIC ITEM        if try!(self.eat_keyword(keywords::Static) ){        }            self.span_err(span, "`virtual` structs have been removed from the language");            let span = self.span;        if try!(self.eat_keyword_noexpect(keywords::Virtual) ){        }            try!(self.expect_one_of(&[], &[]));            }                return Ok(Some(try!(self.parse_item_foreign_mod(lo, opt_abi, visibility, attrs))));            } else if self.check(&token::OpenDelim(token::Brace)) {                return Ok(Some(item));                                        maybe_append(attrs, extra_attrs));                                        visibility,                                        item_,                                        ident,                                        last_span.hi,                let item = self.mk_item(lo,                let last_span = self.last_span;                    try!(self.parse_item_fn(Unsafety::Normal, Constness::NotConst, abi));                let (ident, item_, extra_attrs) =                let abi = opt_abi.unwrap_or(abi::C);                // EXTERN FUNCTION ITEM            if try!(self.eat_keyword(keywords::Fn) ){adxR��{P ���y8.�
�
D

���h8����yZ,�
�
|
J

�	�	}	Z	P	 	���K����m���f;���dI���^3��nd0��wE��xw                                    maybe_append(attrs, extra_attrs));                                    visibility,                                    item_,                                    ident,                                    last_span.hi,            let item = self.mk_item(lo,            let last_span = self.last_span;            let (ident, item_, extra_attrs) = try!(self.parse_item_type());            // TYPE ITEM        if try!(self.eat_keyword(keywords::Type) ){        }            return Ok(Some(item));                                    maybe_append(attrs, extra_attrs));                                    visibility,                                    item_,                                    ident,                                    last_span.hi,            let item = self.mk_item(lo,            let last_span = self.last_span;                try!(self.parse_item_mod(&attrs[..]));            let (ident, item_, extra_attrs) =            // MODULE ITEM        if try!(self.eat_keyword(keywords::Mod) ){        }            return Ok(Some(item));                                    maybe_append(attrs, extra_attrs));                                    visibility,                                    item_,                                    ident,                                    last_span.hi,            let item = self.mk_item(lo,            let last_span = self.last_span;                try!(self.parse_item_fn(Unsafety::Unsafe, Constness::NotConst, abi));            let (ident, item_, extra_attrs) =            try!(self.expect_keyword(keywords::Fn));            };                abi::Rust            } else {                try!(self.parse_opt_abi()).unwrap_or(abi::C)            let abi = if try!(self.eat_keyword(keywords::Extern) ){            try!(self.bump());            // UNSAFE FUNCTION ITEM            && self.look_ahead(1, |t| *t != token::OpenDelim(token::Brace)) {        if self.check_keyword(keywords::Unsafe)        }            return Ok(Some(item));                                    maybe_append(attrs, extra_attrs));                                    visibility,                                    item_,                                    ident,                                    last_span.hi,            let item = self.mk_item(lo,            let last_span = self.last_span;                try!(self.parse_item_fn(Unsafety::Normal, Constness::NotConst, abi::Rust));            let (ident, item_, extra_attrs) =            try!(self.bump());            // FUNCTION ITEM        if self.check_keyword(keywords::Fn) {        }            return Ok(Some(item));                                    maybe_append(attrs, extra_attrs));                                    visibility,                                    item_,                                    ident,                                    last_span.hi,            let item = self.mk_item(lo,            let last_span = self.last_span;            let (ident, item_, extra_attrs) = try!(self.parse_item_impl(ast::Unsafety::Unsafe));            try!(self.expect_keyword(keywords::Impl));            try!(self.expect_keyword(keywords::Unsafe));            // IMPL ITEM        {            self.look_ahead(1, |t| t.is_keyword(keywords::Impl))        if self.check_keyword(keywords::Unsafe) &&        }            return Ok(Some(item));                                    maybe_append(attrs, extra_attrs));                                    visibility,                                    item_,                                    ident,                                    last_span.hi,            let item = self.mk_item(lo,ad�X����:���^.�
�
�
�
k
=
���sH���yE,�
�
w
E

�	�	x	U	K		���X&���Y6,����q>����;1��dZY��I;
����eP1
���                && self.look_ahead(1, |t| *t == token::Not)        if macros_allowed && !self.token.is_any_keyword()    ) -> PResult<Option<P<Item>>> {        visibility: Visibility        lo: BytePos,        macros_allowed: bool,        attrs: Vec<Attribute> ,        &mut self,    fn parse_macro_use_or_failure(    /// This is the fall-through for parsing items.    }        }            None => Ok(None)            }                return Err(self.span_fatal(item.span, "macros cannot expand to foreign items"));            Some(item) => {        match try!(self.parse_macro_use_or_failure(attrs, true, lo, visibility)) {        // FIXME #5668: this will occur for a macro invocation:        }            return Ok(Some(try!(self.parse_item_foreign_fn(visibility, attrs))));            // FOREIGN FUNCTION ITEM        if self.check_keyword(keywords::Fn) || self.check_keyword(keywords::Unsafe) {        }            return Ok(Some(try!(self.parse_item_foreign_static(visibility, attrs))));            // FOREIGN STATIC ITEM        if self.check_keyword(keywords::Static) {        let visibility = try!(self.parse_visibility());        let lo = self.span.lo;        let attrs = self.parse_outer_attributes();    fn parse_foreign_item(&mut self) -> PResult<Option<P<ForeignItem>>> {    /// Parse a foreign item.    }        self.parse_macro_use_or_failure(attrs,macros_allowed,lo,visibility)        }            return Ok(Some(item));                                    maybe_append(attrs, extra_attrs));                                    visibility,                                    item_,                                    ident,                                    last_span.hi,            let item = self.mk_item(lo,            let last_span = self.last_span;            let (ident, item_, extra_attrs) = try!(self.parse_item_struct());            // STRUCT ITEM        if try!(self.eat_keyword(keywords::Struct) ){        }            return Ok(Some(item));                                    maybe_append(attrs, extra_attrs));                                    visibility,                                    item_,                                    ident,                                    last_span.hi,            let item = self.mk_item(lo,            let last_span = self.last_span;            let (ident, item_, extra_attrs) = try!(self.parse_item_impl(ast::Unsafety::Normal));            // IMPL ITEM        if try!(self.eat_keyword(keywords::Impl) ){        }            return Ok(Some(item));                                    maybe_append(attrs, extra_attrs));                                    visibility,                                    item_,                                    ident,                                    last_span.hi,            let item = self.mk_item(lo,            let last_span = self.last_span;                try!(self.parse_item_trait(ast::Unsafety::Normal));            let (ident, item_, extra_attrs) =            // TRAIT ITEM        if try!(self.eat_keyword(keywords::Trait) ){        }            return Ok(Some(item));                                    maybe_append(attrs, extra_attrs));                                    visibility,                                    item_,                                    ident,                                    last_span.hi,            let item = self.mk_item(lo,            let last_span = self.last_span;            let (ident, item_, extra_attrs) = try!(self.parse_item_enum());            // ENUM ITEM        if try!(self.eat_keyword(keywords::Enum) ){        }            return Ok(Some(item));