Closed
Description
log4rs no longer builds on nightly with bogus unknown attribute errors:
❯ cargo +nightly build [log4rs/master=]
Compiling log4rs v0.8.0 (file:///home/sfackler/rust/log4rs)
error[E0658]: The attribute `serde` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
--> 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)
--> 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)
--> 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)
--> 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)
--> 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)
--> 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)
--> src/append/rolling_file/mod.rs:46:1
|
46 | #[serde(deny_unknown_fields)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(custom_attribute)] to the crate attributes to enable
error: aborting due to 7 previous errors
For more information about this error, try `rustc --explain E0658`.
error: Could not compile `log4rs`.
To learn more, run the command again with --verbose.
Those attributes are used on types with #[derive(Deserialize)]
so the serde attribute should be whitelisted: https://github.com/sfackler/log4rs/blob/master/src/append/file.rs#L22-L30