Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error in errors.rs #345

Closed
ennis opened this issue Nov 14, 2015 · 5 comments
Closed

Compilation error in errors.rs #345

ennis opened this issue Nov 14, 2015 · 5 comments
Labels
C-bug Category: Updating dependencies

Comments

@ennis
Copy link

ennis commented Nov 14, 2015

I get these errors when trying to compile using the latest nightly rustc:

src\errors.rs:30:62: 30:83 error: the trait `core::fmt::Display` is not implemented for the type `S` [E0277]
src\errors.rs:30                                Some(name) => format!("'{}'", Format::Warning(name)),
                                                                              ^~~~~~~~~~~~~~~~~~~~~
<std macros>:2:26: 2:57 note: in this expansion of format_args!
src\errors.rs:30:46: 30:84 note: in this expansion of format! (defined in <std macros>)
<std macros>:2:26: 2:57 note: in this expansion of format_args!
src\errors.rs:24:20: 34:51 note: in this expansion of format! (defined in <std macros>)
src\errors.rs:30:62: 30:83 help: run `rustc --explain E0277` to see a detailed explanation
src\errors.rs:30:62: 30:83 note: `S` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
src\errors.rs:30:62: 30:83 note: required by `core::fmt::Display::fmt`
src\errors.rs:101:28: 101:48 error: the trait `core::fmt::Display` is not implemented for the type `S` [E0277]
src\errors.rs:101                            Format::Warning(arg),
                                             ^~~~~~~~~~~~~~~~~~~~
<std macros>:2:26: 2:57 note: in this expansion of format_args!
src\errors.rs:97:20: 108:51 note: in this expansion of format! (defined in <std macros>)
src\errors.rs:101:28: 101:48 help: run `rustc --explain E0277` to see a detailed explanation
src\errors.rs:101:28: 101:48 note: `S` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
src\errors.rs:101:28: 101:48 note: required by `core::fmt::Display::fmt`
src\errors.rs:161:28: 161:49 error: the trait `core::fmt::Display` is not implemented for the type `S` [E0277]
src\errors.rs:161                            Format::Warning(name),
                                             ^~~~~~~~~~~~~~~~~~~~~
<std macros>:2:26: 2:57 note: in this expansion of format_args!
src\errors.rs:157:20: 163:51 note: in this expansion of format! (defined in <std macros>)
src\errors.rs:161:28: 161:49 help: run `rustc --explain E0277` to see a detailed explanation
src\errors.rs:161:28: 161:49 note: `S` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
src\errors.rs:161:28: 161:49 note: required by `core::fmt::Display::fmt`
src\errors.rs:194:28: 194:48 error: the trait `core::fmt::Display` is not implemented for the type `S` [E0277]
src\errors.rs:194                            Format::Warning(val),
                                             ^~~~~~~~~~~~~~~~~~~~
<std macros>:2:26: 2:57 note: in this expansion of format_args!
src\errors.rs:189:20: 197:51 note: in this expansion of format! (defined in <std macros>)
src\errors.rs:194:28: 194:48 help: run `rustc --explain E0277` to see a detailed explanation
src\errors.rs:194:28: 194:48 note: `S` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
src\errors.rs:194:28: 194:48 note: required by `core::fmt::Display::fmt`
src\errors.rs:270:28: 270:48 error: the trait `core::fmt::Display` is not implemented for the type `S` [E0277]
src\errors.rs:270                            Format::Warning(arg),
                                             ^~~~~~~~~~~~~~~~~~~~
<std macros>:2:26: 2:57 note: in this expansion of format_args!
src\errors.rs:266:20: 273:51 note: in this expansion of format! (defined in <std macros>)
src\errors.rs:270:28: 270:48 help: run `rustc --explain E0277` to see a detailed explanation
src\errors.rs:270:28: 270:48 note: `S` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
src\errors.rs:270:28: 270:48 note: required by `core::fmt::Display::fmt`
src\errors.rs:288:28: 288:48 error: the trait `core::fmt::Display` is not implemented for the type `S` [E0277]
src\errors.rs:288                            Format::Warning(arg),
                                             ^~~~~~~~~~~~~~~~~~~~
<std macros>:2:26: 2:57 note: in this expansion of format_args!
src\errors.rs:283:20: 290:51 note: in this expansion of format! (defined in <std macros>)
src\errors.rs:288:28: 288:48 help: run `rustc --explain E0277` to see a detailed explanation
src\errors.rs:288:28: 288:48 note: `S` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
src\errors.rs:288:28: 288:48 note: required by `core::fmt::Display::fmt`
error: aborting due to 6 previous errors

rustc version: rustc 1.6.0-nightly (bdfb13518 2015-11-14)
Platform: Windows 10 x64

@kbknapp
Copy link
Member

kbknapp commented Nov 14, 2015

Thanks for reporting this! I'm updating nightly rust as we speak and will look into it. I'm assuming you're not getting the errors on beta or stable, correct? I'm not primarily a Windows guy, which is why I'm asking.

@kbknapp
Copy link
Member

kbknapp commented Nov 14, 2015

I just confirmed it and think I know what the fix is - once it's patched I'll update crates.io to 1.5.2 👍

@kbknapp kbknapp added P1: urgent C-bug Category: Updating dependencies and removed P3: want to have labels Nov 14, 2015
@ennis
Copy link
Author

ennis commented Nov 14, 2015

Thanks for your quick response! FYI, the same error happens on stable (1.4.0)

kbknapp added a commit that referenced this issue Nov 14, 2015
@kbknapp
Copy link
Member

kbknapp commented Nov 14, 2015

#346 fixes this, once it merges I'll put out the new version on crates.io

@homu homu closed this as completed in #346 Nov 14, 2015
homu added a commit that referenced this issue Nov 14, 2015
fix(Errors): fixes a compiling bug when built on Windows or without t…

…he color feature

Close #345
@kbknapp
Copy link
Member

kbknapp commented Nov 14, 2015

@ennis this is fixed, and 1.5.2 is out on crates.io. Let us know if you have any other issues 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Updating dependencies
Projects
None yet
Development

No branches or pull requests

2 participants