diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2013-03-27 12:55:18 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2013-03-27 13:48:24 -0400 |
| commit | 772293a25120367bed984243fffd59fcb4b8cd80 (patch) | |
| tree | 722c5bb36b4f6932ed83dd37d4b80f1bb92fa0a6 /src/libsyntax/parse | |
| parent | b93393e907eddab513fa2be541af4356b8203282 (diff) | |
| download | rust-772293a25120367bed984243fffd59fcb4b8cd80.tar.gz rust-772293a25120367bed984243fffd59fcb4b8cd80.zip | |
Fix pretty-printer test failure by carrying the bound lifetime names through
the types. Initially I thought it would be necessary to thread this data through not only the AST but the types themselves, but then I remembered that the pretty printer only cares about the AST. Regardless, I have elected to leave the changes to the types intact since they will eventually be needed. I left a few FIXMEs where it didn't seem worth finishing up since the code wasn't crucial yet.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 53d618e3340..c82151bb4a9 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -363,10 +363,11 @@ pub impl Parser { let purity = self.parse_purity(); self.expect_keyword(&~"fn"); - let (decl, _) = self.parse_ty_fn_decl(); + let (decl, lifetimes) = self.parse_ty_fn_decl(); return ty_bare_fn(@TyBareFn { abi: RustAbi, purity: purity, + lifetimes: lifetimes, decl: decl }); } |
