Repository: kevinmehall/rust-peg (language: rust)

Issue:
Compilation failure using newer rustc
After upgrading rustc, I got these errors:

```
src/rustast.rs:25:2: 25:8 error: attempted access of field `path` on type `syntax::ast::Path`, but no field with that name was found
src/rustast.rs:25       r.path
                        ^~~~~~
src/rustast.rs:43:12: 43:27 error: this function takes 0 parameters but 1 parameter was supplied [E0061]
src/rustast.rs:43       let r = p.parse_ty(false);
                                  ^~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
Build failed, waiting for other jobs to finish...
Could not compile `peg`.
```



Discussion / hints:

Fix patch:
diff --git a/src/rustast.rs b/src/rustast.rs
index ed5d9a9..311a872 100644
--- a/src/rustast.rs
+++ b/src/rustast.rs
@@ -22,7 +22,7 @@ pub fn parse_path(e: &str) -> ast::Path {
 	let mut p = syntax::parse::new_parser_from_source_str(&ps, Vec::new(), "file".to_string(), e.to_string());
 	let r = p.parse_path(syntax::parse::parser::NoTypesAllowed);
 	p.abort_if_errors();
-	r.path
+	r
 }
 
 pub fn parse_path_vec(s: &str) -> Vec<ast::Ident> {
@@ -40,7 +40,7 @@ pub fn parse_block(e: &str) -> P<ast::Block> {
 pub fn parse_type(e: &str) -> P<ast::Ty> {
 	let ps = syntax::parse::new_parse_sess();
 	let mut p = syntax::parse::new_parser_from_source_str(&ps, Vec::new(), "file".to_string(), e.to_string());
-	let r = p.parse_ty(false);
+	let r = p.parse_ty();
 	p.abort_if_errors();
 	r
 }


Test patch: