Skip to content

Commit f16853f

Browse files
committed
---
yaml --- r: 57863 b: refs/heads/incoming c: d2aee7b h: refs/heads/master i: 57861: 43db5af 57859: 96cb78f 57855: cfabe5b v: v3
1 parent f2b185a commit f16853f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: bf67eb2362b7d0f37012f2d6dac604c3bbacd2c6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/incoming: 1abc1be81ad47ed97f37ca98429156e4392df12c
9+
refs/heads/incoming: d2aee7b3e68c33edc410485f7ccadba1484c3bc3
1010
refs/heads/dist-snap: 00dbbd01c2aee72982b3e0f9511ae1d4428c3ba9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/libsyntax/parse/parser.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ pub impl Parser {
367367

368368
let opt_abis = self.parse_opt_abis();
369369
let abis = opt_abis.get_or_default(AbiSet::Rust());
370-
let purity = self.parse_purity();
370+
let purity = self.parse_unsafety();
371371
self.expect_keyword(&~"fn");
372372
let (decl, lifetimes) = self.parse_ty_fn_decl();
373373
return ty_bare_fn(@TyBareFn {
@@ -401,7 +401,7 @@ pub impl Parser {
401401
// At this point, the allocation type and lifetime bound have been
402402
// parsed.
403403

404-
let purity = self.parse_purity();
404+
let purity = self.parse_unsafety();
405405
let onceness = parse_onceness(self);
406406
self.expect_keyword(&~"fn");
407407

@@ -426,7 +426,8 @@ pub impl Parser {
426426
}
427427
}
428428

429-
fn parse_purity(&self) -> purity {
429+
// looks like this should be called parse_unsafety
430+
fn parse_unsafety(&self) -> purity {
430431
if self.eat_keyword(&~"pure") {
431432
self.obsolete(*self.last_span, ObsoletePurity);
432433
return impure_fn;

0 commit comments

Comments
 (0)