rust/src/test/ui/invalid
Simon Sapin 71b0049ad6 Plugins deprecation: don’t suggest simply removing the attribute
Building Servo with a recent Nightly produces:

```rust
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
  --> components/script/lib.rs:14:1
   |
14 | #![plugin(script_plugins)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
   = note: `#[warn(deprecated)]` on by default
```

First, linking to https://github.com/rust-lang/rust/issues/29597 is not ideal
since there is pretty much no discussion there of the deprecation
and what can be used instead.
This PR changes the link to the deprecation PR which does have more discussion.

Second, the “remove this attribute” suggestion is rather unhelpful.
Just because a feature is deprecated doesn’t mean that simply removing its use
without a replacement is acceptable.

In the case of custom lint, there is no replacement available.
Prefixing a message with “help:” when telling users that they’re screwed
honestly feels disrespectful.

This PR also changes the message to be more factual.
2019-10-17 14:25:40 +02:00
..
invalid-crate-type.rs Remove licenses 2018-12-25 21:08:33 -07:00
invalid-crate-type.stderr normalize use of backticks in compiler messages for librustc/lint 2019-07-17 22:49:48 +02:00
invalid-inline.rs Remove licenses 2018-12-25 21:08:33 -07:00
invalid-inline.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
invalid-macro-matcher.rs Remove licenses 2018-12-25 21:08:33 -07:00
invalid-macro-matcher.stderr Update tests 2019-03-11 23:10:26 +03:00
invalid-path-in-const.rs Remove licenses 2018-12-25 21:08:33 -07:00
invalid-path-in-const.stderr Tweak spans for E0599 2019-03-23 13:05:29 -07:00
invalid-plugin-attr.rs plugin_registrary: use normal deprecation instead of hard coded warning. 2019-10-03 07:03:01 +02:00
invalid-plugin-attr.stderr Plugins deprecation: don’t suggest simply removing the attribute 2019-10-17 14:25:40 +02:00
invalid-variadic-function.rs Rename variadic to c_variadic 2019-02-27 10:21:54 -05:00
invalid-variadic-function.stderr Rename variadic to c_variadic 2019-02-27 10:21:54 -05:00