Rocket/codegen/tests/compile-fail
Sergio Benitez 4eaf9ba9c5 Add lints to catch unmanaged state and unmounted routes.
* The `unmanaged_state` lint emits a warning when a `State<T>` request
    guard is used without an accompanying `manage` call for `T`.

  * The `unmounted_route` lint emits a warning when a route declared via
    a Rocket attribute is not mounted via a call to `mount`.

There is one known shortcoming of these lints at present: _any_ call to
`manage` or `mount` marks state/routes as managed/mounted. This can be
an issue when an application uses more than one `Rocket` instance, with
different calls to `mount` and `manage` in each. The lints should
perform their analyses on a per-instance basis.
2017-01-29 01:13:52 -08:00
..
bad-attribute-form.rs Add more codegen tests. 2016-09-28 20:39:14 -07:00
bad-attribute-param.rs Add more codegen tests. 2016-09-28 20:39:14 -07:00
bad-error-fn.rs Allow error handlers to take 0, 1, or 2 parameters. 2016-10-04 15:05:25 -07:00
bad-ident-argument.rs Renamed macros to codegen. 2016-09-08 20:38:58 -07:00
bad-value-types-in-attribute.rs Add more codegen tests. 2016-09-28 20:39:14 -07:00
data-without-post.rs Disallow use of data parameter with non-payload methods. 2016-10-25 16:42:10 +02:00
decorate-enum.rs Add more codegen tests. 2016-09-28 20:39:14 -07:00
decorate-impl.rs Add more codegen tests. 2016-09-28 20:39:14 -07:00
decorate-struct.rs Add more codegen tests. 2016-09-28 20:39:14 -07:00
decorate-trait.rs Add more codegen tests. 2016-09-28 20:39:14 -07:00
ignored_params.rs Disallow use of data parameter with non-payload methods. 2016-10-25 16:42:10 +02:00
lints.rs Add lints to catch unmanaged state and unmounted routes. 2017-01-29 01:13:52 -08:00
malformed-content-type.rs Warn, but don't error, on unknown route formats. 2016-12-27 15:30:33 -06:00
malformed-param-list.rs Fix test for latest nightly. 2016-09-28 19:38:11 -07:00
phantom-declared-param.rs Renamed macros to codegen. 2016-09-08 20:38:58 -07:00
route-bad-method.rs Fix test for new error message. 2016-09-28 20:55:13 -07:00
route-invalid-method.rs Add more codegen tests. 2016-09-28 20:39:14 -07:00
unknown-attribute-param.rs Add more codegen tests. 2016-09-28 20:39:14 -07:00
unknown-content-type.rs Warn, but don't error, on unknown route formats. 2016-12-27 15:30:33 -06:00