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

Won't compile in nightly #75

Closed
BinaryAura opened this issue Aug 18, 2018 · 5 comments
Closed

Won't compile in nightly #75

BinaryAura opened this issue Aug 18, 2018 · 5 comments

Comments

@BinaryAura
Copy link

BinaryAura commented Aug 18, 2018

log4rs fails to compile under 1.30.0-nightly-x86_64-pc-windows-msvc. Errors below:

error[E0658]: The attribute serde is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
--> C:\Users\jadun.cargo\registry\src\github.com-1ecc6299db9ec823\log4rs-0.8.0\src\append\file.rs:25:1
|
25 | #[serde(deny_unknown_fields)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(custom_attribute)] to the crate attributes to enable

error[E0658]: The attribute serde is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
--> C:\Users\jadun.cargo\registry\src\github.com-1ecc6299db9ec823\log4rs-0.8.0\src\append\console.rs:24:1
|
24 | #[serde(deny_unknown_fields)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(custom_attribute)] to the crate attributes to enable

error[E0658]: The attribute serde is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
--> C:\Users\jadun.cargo\registry\src\github.com-1ecc6299db9ec823\log4rs-0.8.0\src\append\rolling_file\policy\compound\roll\delete.rs:16:1
|
16 | #[serde(deny_unknown_fields)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(custom_attribute)] to the crate attributes to enable

error[E0658]: The attribute serde is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
--> C:\Users\jadun.cargo\registry\src\github.com-1ecc6299db9ec823\log4rs-0.8.0\src\append\rolling_file\policy\compound\roll\fixed_window.rs:17:1
|
17 | #[serde(deny_unknown_fields)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(custom_attribute)] to the crate attributes to enable

error[E0658]: The attribute serde is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
--> C:\Users\jadun.cargo\registry\src\github.com-1ecc6299db9ec823\log4rs-0.8.0\src\append\rolling_file\policy\compound\trigger\size.rs:21:1
|
21 | #[serde(deny_unknown_fields)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(custom_attribute)] to the crate attributes to enable

error[E0658]: The attribute serde is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
--> C:\Users\jadun.cargo\registry\src\github.com-1ecc6299db9ec823\log4rs-0.8.0\src\append\rolling_file\policy\compound\mod.rs:24:1
|
24 | #[serde(deny_unknown_fields)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(custom_attribute)] to the crate attributes to enable

error[E0658]: The attribute serde is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
--> C:\Users\jadun.cargo\registry\src\github.com-1ecc6299db9ec823\log4rs-0.8.0\src\append\rolling_file\mod.rs:46:1
|
46 | #[serde(deny_unknown_fields)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(custom_attribute)] to the crate attributes to enable

@sfackler
Copy link
Collaborator

This is a rustc bug as far as I can tell, so I opened a bug there: rust-lang/rust#53481

@dtolnay
Copy link
Contributor

dtolnay commented Sep 3, 2018

Update from @petrochenkov in rust-lang/rust#53587 (comment):

I hope to implement it in the next few weeks.

In the meantime, I'd recommend to implement a workaround in log4rs

@Boscop
Copy link

Boscop commented Sep 13, 2018

I'm running into the same error on nightly-2018-09-13 even though that rustc issue should be fixed now..

@dtolnay
Copy link
Contributor

dtolnay commented Sep 13, 2018

This was fixed in rust-lang/rust#54086. The fix will be in nightly-2018-09-14.

@estk
Copy link
Owner

estk commented Oct 11, 2019

Seems like this is fixed

@estk estk closed this as completed Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants