Errors when I build racer
Closed this issue · 3 comments
Deleted user commented
~/racer$ cargo build --release
Compiling syntex_syntax v0.25.0 (file:///home/wang/racer/src/syntex)
<std macros>:6:1: 6:32 error: the trait `core::convert::From<term::Error>` is not implemented for the type `std::io::error::Error` [E0277]
<std macros>:6 $ crate:: convert:: From:: from ( err ) ) } } )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/syntex/syntex_syntax/src/errors/emitter.rs:583:17: 583:37 note: in this expansion of try! (defined in <std macros>)
<std macros>:6:1: 6:32 help: run `rustc --explain E0277` to see a detailed explanation
<std macros>:6:1: 6:32 note: required by `core::convert::From::from`
<std macros>:6:1: 6:32 error: the trait `core::convert::From<term::Error>` is not implemented for the type `std::io::error::Error` [E0277]
<std macros>:6 $ crate:: convert:: From:: from ( err ) ) } } )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/syntex/syntex_syntax/src/errors/emitter.rs:598:17: 598:33 note: in this expansion of try! (defined in <std macros>)
<std macros>:6:1: 6:32 help: run `rustc --explain E0277` to see a detailed explanation
<std macros>:6:1: 6:32 note: required by `core::convert::From::from`
error: aborting due to 2 previous errors
Could not compile `syntex_syntax`.
When I build racer, it has error.
gabstv commented
This also happens with the current build (syntex_syntax 0.26.0):
syntex_syntax-0.26.0/src/errors/mod.rs:11:9: 11:37 error: unresolved import
syntex_syntax-0.26.0/src/errors/mod.rs:11 pub use errors::emitter::ColorConfig;
syntex_syntax-0.26.0/src/errors/emitter.rs:16:14: 16:19 error: unresolved import (maybe you meant `Level::*`?)
syntex_syntax-0.26.0/src/errors/emitter.rs:16 use errors::{Level, RenderSpan, DiagnosticBuilder};
syntex_syntax-0.26.0/src/config.rs:12:5: 12:20 error: unresolved import
syntex_syntax-0.26.0/src/config.rs:12 use errors::Handler;
syntex_syntax-0.26.0/src/parse/mod.rs:15:14: 15:21 error: unresolved import (maybe you meant `Handler::*`?)
syntex_syntax-0.26.0/src/parse/mod.rs:15 use errors::{Handler, ColorConfig, DiagnosticBuilder};
syntex_syntax-0.26.0/src/parse/lexer/mod.rs:14:26: 14:33 error: unresolved import (maybe you meant `Handler::*`?)
syntex_syntax-0.26.0/src/parse/lexer/mod.rs:14 use errors::{FatalError, Handler, DiagnosticBuilder};
syntex_syntax-0.26.0/src/parse/lexer/unicode_chars.rs:15:5: 15:30 error: unresolved import
syntex_syntax-0.26.0/src/parse/lexer/unicode_chars.rs:15 use errors::DiagnosticBuilder;
syntex_syntax-0.26.0/src/parse/attr.rs:17:21: 17:27 error: unresolved import (maybe you meant `Parser::*`?)
syntex_syntax-0.26.0/src/parse/attr.rs:17 use parse::parser::{Parser, TokenType};
syntex_syntax-0.26.0/src/parse/parser.rs:63:20: 63:37 error: unresolved import (maybe you meant `DiagnosticBuilder::*`?)
syntex_syntax-0.26.0/src/parse/parser.rs:63 use errors::{self, DiagnosticBuilder};
(and a dozen more errors)
It looks like it broke with rust 1.5. If I knew rust better, I could fix the imports and send a PR, but I just started to learn it today.
erickt commented
How strange, I'm not getting that error over here. Have you tried compiling with Rust 1.6?
erickt commented
Closing due to inactivity. Please re-open if it is still happening.