Rocket: Custom traits is deprecated

Created on 23 Dec 2016  路  5Comments  路  Source: SergioBenitez/Rocket

Running the forms example shows the following warning:

warning: `#[derive]` for custom traits is deprecated and will be removed in v1.15. Prefer using procedural macro custom derive
  --> src\main.rs:12:10
   |
12 | #[derive(FromForm)]
   |          ^^^^^^^^
enhancement

All 5 comments

The warning will go away as soon as Rust releases a new nightly. Waiting for https://github.com/rust-lang/rust/pull/38533.

There's always a reason to warn you. Have you considered to step a bit back from relying on plugin, and use the stabilized macros?

@ishitatsuyuki Of course! Please see https://github.com/SergioBenitez/Rocket/issues/50 and the linked comment for my thoughts.

I got this warn.
My rust version:

Default host: x86_64-pc-windows-gnu

nightly-i686-pc-windows-gnu (default)
rustc 1.21.0-nightly (f774bced5 2017-08-12)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

loothood picture loothood  路  4Comments

sphinxc0re picture sphinxc0re  路  3Comments

shssoichiro picture shssoichiro  路  4Comments

Hokutosei picture Hokutosei  路  4Comments

klnusbaum picture klnusbaum  路  4Comments