mirror of
https://github.com/rwf2/Rocket.git
synced 2025-02-13 12:12:03 +00:00
424 lines
14 KiB
Plaintext
424 lines
14 KiB
Plaintext
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
|
--> $DIR/lib.rs:1:12
|
|
|
|
|
1 | #![feature(specialization)]
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
|
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
|
|
|
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
|
--> $DIR/lib.rs:1:12
|
|
|
|
|
1 | #![feature(specialization)]
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
|
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/uri_display.rs:299:43
|
|
|
|
|
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
|
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
|
|
|
|
= note: `#[warn(bare_trait_objects)]` on by default
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/uri_display.rs:299:43
|
|
|
|
|
299 | impl<'a, P: UriPart> fmt::Display for &'a UriDisplay<P> {
|
|
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn UriDisplay<P>`
|
|
|
|
|
= note: `#[warn(bare_trait_objects)]` on by default
|
|
|
|
warning: `...` range patterns are deprecated
|
|
--> $DIR/checkers.rs:9:12
|
|
|
|
|
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
|
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
|
|
|
warning: `...` range patterns are deprecated
|
|
--> $DIR/checkers.rs:9:24
|
|
|
|
|
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
warning: `...` range patterns are deprecated
|
|
--> $DIR/checkers.rs:9:12
|
|
|
|
|
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
|
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
|
|
|
warning: `...` range patterns are deprecated
|
|
--> $DIR/checkers.rs:9:36
|
|
|
|
|
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
warning: `...` range patterns are deprecated
|
|
--> $DIR/checkers.rs:9:24
|
|
|
|
|
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
warning: `...` range patterns are deprecated
|
|
--> $DIR/checkers.rs:9:48
|
|
|
|
|
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
warning: 6 warnings emitted
|
|
|
|
warning: `...` range patterns are deprecated
|
|
--> $DIR/checkers.rs:9:36
|
|
|
|
|
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
warning: `...` range patterns are deprecated
|
|
--> $DIR/checkers.rs:9:48
|
|
|
|
|
9 | '0'...'9' | 'A'...'Z' | '^'...'~' | '#'...'\''
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
warning: 6 warnings emitted
|
|
|
|
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
|
--> $DIR/lib.rs:1:12
|
|
|
|
|
1 | #![feature(specialization)]
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
|
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/response.rs:563:27
|
|
|
|
|
563 | body: Option<Body<Box<io::Read + 'r>>>,
|
|
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
|
|
|
|
= note: `#[warn(bare_trait_objects)]` on by default
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/response.rs:892:48
|
|
|
|
|
892 | pub fn body(&mut self) -> Option<Body<&mut io::Read>> {
|
|
| ^^^^^^^^ help: use `dyn`: `dyn io::Read`
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/response.rs:969:52
|
|
|
|
|
969 | pub fn take_body(&mut self) -> Option<Body<Box<io::Read + 'r>>> {
|
|
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Read + 'r`
|
|
|
|
warning: `...` range patterns are deprecated
|
|
--> $DIR/toml_ext.rs:27:12
|
|
|
|
|
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
|
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
|
|
|
|
warning: `...` range patterns are deprecated
|
|
--> $DIR/toml_ext.rs:27:24
|
|
|
|
|
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
warning: `...` range patterns are deprecated
|
|
--> $DIR/toml_ext.rs:27:36
|
|
|
|
|
27 | '0'...'9' | 'A'...'Z' | 'a'...'z' | '_' | '-' => true,
|
|
| ^^^ help: use `..=` for an inclusive range
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/data.rs:18:63
|
|
|
|
|
18 | self::HttpReader<&'a mut hyper::buffer::BufReader<&'b mut NetworkStream>>;
|
|
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/data.rs:108:41
|
|
|
|
|
108 | fn concrete_stream(stream: &mut NetworkStream) -> Option<NetStream> {
|
|
| ^^^^^^^^^^^^^ help: use `dyn`: `dyn NetworkStream`
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/handler.rs:155:36
|
|
|
|
|
155 | fn clone_handler(&self) -> Box<Handler>;
|
|
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/handler.rs:160:36
|
|
|
|
|
160 | fn clone_handler(&self) -> Box<Handler> {
|
|
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/handler.rs:165:20
|
|
|
|
|
165 | impl Clone for Box<Handler> {
|
|
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/handler.rs:167:28
|
|
|
|
|
167 | fn clone(&self) -> Box<Handler> {
|
|
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/fairings.rs:8:27
|
|
|
|
|
8 | all_fairings: Vec<Box<Fairing>>,
|
|
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/fairings.rs:22:43
|
|
|
|
|
22 | pub fn attach(&mut self, fairing: Box<Fairing>, mut rocket: Rocket) -> Rocket {
|
|
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/fairings.rs:35:36
|
|
|
|
|
35 | fn add(&mut self, fairing: Box<Fairing>) {
|
|
| ^^^^^^^ help: use `dyn`: `dyn Fairing`
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/error.rs:30:17
|
|
|
|
|
30 | Unknown(Box<::std::error::Error + Send + Sync>)
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn ::std::error::Error + Send + Sync`
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/route.rs:22:22
|
|
|
|
|
22 | pub handler: Box<Handler>,
|
|
| ^^^^^^^ help: use `dyn`: `dyn Handler`
|
|
|
|
warning: 18 warnings emitted
|
|
|
|
error: missing expected parameter: `path`
|
|
--> $DIR/route-attribute-general-syntax.rs:7:1
|
|
|
|
|
7 | #[get()] //~ ERROR missing expected parameter
|
|
| ^^^^^^^^
|
|
|
|
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected `fn`
|
|
--> $DIR/route-attribute-general-syntax.rs:13:1
|
|
|
|
|
13 | struct S;
|
|
| ^^^^^^
|
|
|
|
|
= help: #[get] can only be used on functions
|
|
|
|
error: expected `fn`
|
|
--> $DIR/route-attribute-general-syntax.rs:18:1
|
|
|
|
|
18 | enum A { }
|
|
| ^^^^
|
|
|
|
|
= help: #[get] can only be used on functions
|
|
|
|
error: expected `fn`
|
|
--> $DIR/route-attribute-general-syntax.rs:23:1
|
|
|
|
|
23 | trait Foo { }
|
|
| ^^^^^
|
|
|
|
|
= help: #[get] can only be used on functions
|
|
|
|
error: expected `fn`
|
|
--> $DIR/route-attribute-general-syntax.rs:28:1
|
|
|
|
|
28 | impl S { }
|
|
| ^^^^
|
|
|
|
|
= help: #[get] can only be used on functions
|
|
|
|
error: expected key/value pair
|
|
--> $DIR/route-attribute-general-syntax.rs:34:12
|
|
|
|
|
34 | #[get("/", 123)] //~ ERROR expected
|
|
| ^^^
|
|
|
|
error: expected key/value pair
|
|
--> $DIR/route-attribute-general-syntax.rs:37:12
|
|
|
|
|
37 | #[get("/", "/")] //~ ERROR expected
|
|
| ^^^
|
|
|
|
error: unexpected keyed parameter: expected literal or identifier
|
|
--> $DIR/route-attribute-general-syntax.rs:40:7
|
|
|
|
|
40 | #[get(data = "<foo>", "/")] //~ ERROR unexpected keyed parameter
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
error: unexpected attribute parameter: `unknown`
|
|
--> $DIR/route-attribute-general-syntax.rs:43:12
|
|
|
|
|
43 | #[get("/", unknown = "foo")] //~ ERROR unexpected
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: malformed attribute
|
|
--> $DIR/route-attribute-general-syntax.rs:46:1
|
|
|
|
|
46 | #[get("/", ...)] //~ ERROR malformed
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: expected syntax: #[get(key = value, ..)]
|
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: handler arguments cannot be ignored
|
|
--> $DIR/route-attribute-general-syntax.rs:53:7
|
|
|
|
|
53 | fn c1(_: usize) {} //~ ERROR cannot be ignored
|
|
| ^^^^^^^^
|
|
|
|
|
= help: all handler arguments must be of the form: `ident: Type`
|
|
|
|
error: invalid value: expected string literal
|
|
--> $DIR/route-attribute-general-syntax.rs:58:7
|
|
|
|
|
58 | #[get(100)] //~ ERROR expected string
|
|
| ^^^
|
|
|
|
error: invalid value: expected string literal
|
|
--> $DIR/route-attribute-general-syntax.rs:61:7
|
|
|
|
|
61 | #[get('/')] //~ ERROR expected string
|
|
| ^^^
|
|
|
|
error: invalid value: expected integer literal
|
|
--> $DIR/route-attribute-general-syntax.rs:64:19
|
|
|
|
|
64 | #[get("/", rank = "1")] //~ ERROR expected integer
|
|
| ^^^
|
|
|
|
error: invalid value: expected integer literal
|
|
--> $DIR/route-attribute-general-syntax.rs:67:19
|
|
|
|
|
67 | #[get("/", rank = '1')] //~ ERROR expected integer
|
|
| ^^^
|
|
|
|
error: invalid or unknown media type
|
|
--> $DIR/route-attribute-general-syntax.rs:72:21
|
|
|
|
|
72 | #[get("/", format = "applicationx-custom")] //~ ERROR invalid or unknown media type
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: invalid or unknown media type
|
|
--> $DIR/route-attribute-general-syntax.rs:75:21
|
|
|
|
|
75 | #[get("/", format = "")] //~ ERROR invalid or unknown media type
|
|
| ^^
|
|
|
|
error: invalid or unknown media type
|
|
--> $DIR/route-attribute-general-syntax.rs:78:21
|
|
|
|
|
78 | #[get("/", format = "//")] //~ ERROR invalid or unknown media type
|
|
| ^^^^
|
|
|
|
error: invalid or unknown media type
|
|
--> $DIR/route-attribute-general-syntax.rs:81:21
|
|
|
|
|
81 | #[get("/", format = "/")] //~ ERROR invalid or unknown media type
|
|
| ^^^
|
|
|
|
error: invalid or unknown media type
|
|
--> $DIR/route-attribute-general-syntax.rs:84:21
|
|
|
|
|
84 | #[get("/", format = "a/")] //~ ERROR invalid or unknown media type
|
|
| ^^^^
|
|
|
|
error: invalid or unknown media type
|
|
--> $DIR/route-attribute-general-syntax.rs:87:21
|
|
|
|
|
87 | #[get("/", format = "/a")] //~ ERROR invalid or unknown media type
|
|
| ^^^^
|
|
|
|
error: invalid or unknown media type
|
|
--> $DIR/route-attribute-general-syntax.rs:90:21
|
|
|
|
|
90 | #[get("/", format = "/a/")] //~ ERROR invalid or unknown media type
|
|
| ^^^^^
|
|
|
|
error: invalid or unknown media type
|
|
--> $DIR/route-attribute-general-syntax.rs:93:21
|
|
|
|
|
93 | #[get("/", format = "a/b/")] //~ ERROR invalid or unknown media type
|
|
| ^^^^^^
|
|
|
|
error: invalid or unknown media type
|
|
--> $DIR/route-attribute-general-syntax.rs:96:21
|
|
|
|
|
96 | #[get("/", format = "unknown")] //~ ERROR unknown media type
|
|
| ^^^^^^^^^
|
|
|
|
error: invalid value: expected string literal
|
|
--> $DIR/route-attribute-general-syntax.rs:99:21
|
|
|
|
|
99 | #[get("/", format = 12)] //~ ERROR expected string
|
|
| ^^
|
|
|
|
error: invalid value: expected string literal
|
|
--> $DIR/route-attribute-general-syntax.rs:102:21
|
|
|
|
|
102 | #[get("/", format = 'j')] //~ ERROR expected string
|
|
| ^^^
|
|
|
|
error: invalid or unknown media type
|
|
--> $DIR/route-attribute-general-syntax.rs:105:21
|
|
|
|
|
105 | #[get("/", format = "text//foo")] //~ ERROR invalid or unknown media type
|
|
| ^^^^^^^^^^^
|
|
|
|
error: invalid HTTP method for route handlers
|
|
--> $DIR/route-attribute-general-syntax.rs:110:9
|
|
|
|
|
110 | #[route(CONNECT, "/")] //~ ERROR invalid HTTP method for route
|
|
| ^^^^^^^
|
|
|
|
|
= help: method must be one of: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|
|
|
|
error: invalid HTTP method
|
|
--> $DIR/route-attribute-general-syntax.rs:114:9
|
|
|
|
|
114 | #[route(FIX, "/")] //~ ERROR invalid HTTP method
|
|
| ^^^
|
|
|
|
|
= help: method must be one of: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|
|
|
|
error: expected identifier, found string literal
|
|
--> $DIR/route-attribute-general-syntax.rs:118:9
|
|
|
|
|
118 | #[route("hi", "/")] //~ ERROR expected identifier
|
|
| ^^^^
|
|
|
|
|
= help: method must be one of: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|
|
|
|
error: expected identifier, found string literal
|
|
--> $DIR/route-attribute-general-syntax.rs:122:9
|
|
|
|
|
122 | #[route("GET", "/")] //~ ERROR expected identifier
|
|
| ^^^^^
|
|
|
|
|
= help: method must be one of: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|
|
|
|
error: expected identifier, found integer literal
|
|
--> $DIR/route-attribute-general-syntax.rs:126:9
|
|
|
|
|
126 | #[route(120, "/")] //~ ERROR expected identifier
|
|
| ^^^
|
|
|
|
|
= help: method must be one of: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|