File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ mod test {
635
635
}
636
636
637
637
#[test] fn parse_ident_pat () {
638
- let parser = string_to_parser(@" b");
638
+ let mut parser = string_to_parser(@" b");
639
639
assert_eq!(parser.parse_pat(),
640
640
@ast::Pat{id: ast::DUMMY_NODE_ID,
641
641
node: ast::PatIdent(
Original file line number Diff line number Diff line change @@ -4442,12 +4442,12 @@ impl Parser {
4442
4442
}
4443
4443
4444
4444
4445
- if * self . token == token:: LPAREN {
4445
+ if self . token == token:: LPAREN {
4446
4446
// `extern mod foo (name = "bar"[,vers = "version"]) is obsolete,
4447
4447
// `extern mod foo = "bar#[version]";` should be used.
4448
4448
// Parse obsolete options to avoid wired parser errors
4449
4449
self . parse_optional_meta ( ) ;
4450
- self . obsolete ( * self . span , ObsoleteExternModAttributesInParens ) ;
4450
+ self . obsolete ( self . span , ObsoleteExternModAttributesInParens ) ;
4451
4451
}
4452
4452
// extern mod foo;
4453
4453
self . expect ( & token:: SEMI ) ;
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ pub fn string_to_crate (source_str : @str) -> ast::Crate {
55
55
56
56
// parse a string, return a crate and the ParseSess
57
57
pub fn string_to_crate_and_sess ( source_str : @str ) -> ( ast:: Crate , @mut ParseSess ) {
58
- let ( p, ps) = string_to_parser_and_sess ( source_str) ;
58
+ let ( mut p, ps) = string_to_parser_and_sess ( source_str) ;
59
59
( p. parse_crate_mod ( ) , ps)
60
60
}
61
61
You can’t perform that action at this time.
0 commit comments