Skip to content

Instantly share code, notes, and snippets.

@byronyi
Created April 7, 2015 08:07
Show Gist options
  • Select an option

  • Save byronyi/3681b5ddef951266b994 to your computer and use it in GitHub Desktop.

Select an option

Save byronyi/3681b5ddef951266b994 to your computer and use it in GitHub Desktop.
Compiling racer v0.0.1 (file:///Users/byronyi/.vim/bundle/racer)
src/racer/ast.rs:51:5: 53:7 error: mismatched types:
expected `syntax::ast::Crate`,
found `core::result::Result<syntax::ast::Crate, syntax::diagnostic::FatalError>`
(expected struct `syntax::ast::Crate`,
found enum `core::result::Result`) [E0308]
src/racer/ast.rs:51 with_error_checking_parse(source_str, |p| {
src/racer/ast.rs:52 p.parse_crate_mod()
src/racer/ast.rs:53 })
src/racer/snippets.rs:34:19: 34:30 error: attempted access of field `node` on type `&core::result::Result<syntax::ptr::P<syntax::ast::ImplItem>, syntax::diagnostic::FatalError>`, but no field with that name was found
src/racer/snippets.rs:34 match method.node {
^~~~~~~~~~~
src/racer/snippets.rs:38:31: 38:43 error: attempted access of field `ident` on type `&core::result::Result<syntax::ptr::P<syntax::ast::ImplItem>, syntax::diagnostic::FatalError>`, but no field with that name was found
src/racer/snippets.rs:38 name: method.ident.to_source(),
^~~~~~~~~~~~
error: aborting due to 3 previous errors
Could not compile `racer`.
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment