Rocket/core/codegen/tests
Sergio Benitez bd26ca462a Introduce #[suppress]: suppress Rocket lints.
Adding `#[suppress(lint)]` for a known `lint` suppresses the
corresponding warning generated by Rocket's codegen. The lints are:

  * `unknown_format`
  * `dubious_payload`
  * `segment_chars`
  * `arbitrary_main`
  * `sync_spawn`

For example, the following works as expected to suppress the warning
generated by the unknown media type "application/foo":

```rust
fn post_foo() -> &'static str { "post_foo" }
```

Resolves #1188.
2024-03-21 20:24:53 -07:00
..
ui-fail Fix typos. 2023-11-17 17:04:49 +01:00
ui-fail-nightly Fix typos. 2023-11-17 17:04:49 +01:00
ui-fail-stable Fix typos. 2023-11-17 17:04:49 +01:00
async-entry.rs Revamp shutdown to recover shutdown 'Rocket'. 2022-05-07 06:12:24 -05:00
async-routes.rs Workaround 'rustc' bug, compiling more async code. 2021-08-24 19:46:47 -07:00
catcher.rs Add internal '__typed_stream' proc-macro. 2021-06-01 11:43:51 -07:00
expansion.rs Retrieve managed state via a borrow: '&State<T>'. 2021-05-11 08:58:16 -05:00
from_form.rs Fix typos. 2023-11-17 17:04:49 +01:00
from_form_field.rs Allow several 'field' attributes in all derives. 2021-04-07 23:09:05 -07:00
responder.rs Allow named field generics in 'UriDisplay' derive. 2021-07-01 06:02:40 -07:00
route-data.rs Drop 'Data' after sending a response, not before. 2021-06-08 13:26:16 -07:00
route-format.rs Introduce #[suppress]: suppress Rocket lints. 2024-03-21 20:24:53 -07:00
route-ranking.rs Rename 'rocket::ignite()' to 'rocket::build()'. 2021-04-08 01:07:52 -07:00
route-raw.rs Overhaul URI types, parsers, 'uri!' macro. 2021-05-19 18:47:11 -07:00
route.rs Improve forwarding status code precision. 2023-10-31 18:44:37 -05:00
segment-ignore.rs Rename 'rocket::ignite()' to 'rocket::build()'. 2021-04-08 01:07:52 -07:00
typed-uris.rs Allow displaying [T; N], Vec<T>, [u8] via 'uri!'. 2024-03-14 15:26:03 -07:00
ui-fail.rs Allow UI tests to fail in CI. 2023-01-30 16:06:18 -08:00
uri_display.rs Remove use of 'private_in_public' lint. 2023-09-20 16:16:05 -07:00