[rust-dev] no error or warning when an unknown attribute is used

Ilya Dmitrichenko errordeveloper at gmail.com
Wed Jul 16 07:11:26 PDT 2014


On 16 July 2014 14:59, Ben Harris <mail at bharr.is> wrote:
> You can ask on the Rust IRC. My guess is that the error is triggering before
> there is a chance to throw the unused-attribute warning out. In the past it
> would have told you the error, but with the new plugin system we can define
> our own attributes, so the lint can't tell that we have done something wrong
> till the end.

Ben, your guess was right. I remove the `json::encode` call and got
`warning: unused attribute` and fixing the attribute name gets rid of
the warning. I suppose this is a downside of the plugin system...


More information about the Rust-dev mailing list