diff --git a/dropshot/tests/fail/bad_channel6.stderr b/dropshot/tests/fail/bad_channel6.stderr index ad580977..6dddffda 100644 --- a/dropshot/tests/fail/bad_channel6.stderr +++ b/dropshot/tests/fail/bad_channel6.stderr @@ -13,9 +13,3 @@ error: expected identifier, found `0x1de` | --- ^^^^^ expected identifier | | | while parsing this struct - -error[E0063]: missing fields `x` and `y` in initializer of `Ret` - --> tests/fail/bad_channel6.rs:28:13 - | -28 | let _ = Ret { "Oxide".to_string(), 0x1de }; - | ^^^ missing `x` and `y` diff --git a/dropshot/tests/fail/bad_endpoint6.stderr b/dropshot/tests/fail/bad_endpoint6.stderr index 324e5680..a22129cf 100644 --- a/dropshot/tests/fail/bad_endpoint6.stderr +++ b/dropshot/tests/fail/bad_endpoint6.stderr @@ -13,9 +13,3 @@ error: expected identifier, found `0x1de` | --- ^^^^^ expected identifier | | | while parsing this struct - -error[E0063]: missing fields `x` and `y` in initializer of `Ret` - --> tests/fail/bad_endpoint6.rs:28:23 - | -28 | Ok(HttpResponseOk(Ret { "Oxide".to_string(), 0x1de })) - | ^^^ missing `x` and `y` diff --git a/dropshot/tests/fail/bad_endpoint7.stderr b/dropshot/tests/fail/bad_endpoint7.stderr index 61d4230c..8eb845f2 100644 --- a/dropshot/tests/fail/bad_endpoint7.stderr +++ b/dropshot/tests/fail/bad_endpoint7.stderr @@ -32,6 +32,40 @@ note: required by a bound in `HttpResponseOk` | pub struct HttpResponseOk( | ^^^^^^^^^^^^^^^^^^^ required by this bound in `HttpResponseOk` +error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied + --> tests/fail/bad_endpoint7.rs:25:8 + | +25 | Ok(HttpResponseOk(Ret { + | ________^ +26 | | x: "Oxide".to_string(), +27 | | y: 0x1de, +28 | | })) + | |______^ unsatisfied trait bound + | +help: the trait `serde_core::ser::Serialize` is not implemented for `Ret` + --> tests/fail/bad_endpoint7.rs:13:1 + | +13 | struct Ret { + | ^^^^^^^^^^ + = note: for local types consider adding `#[derive(serde::Serialize)]` to your `Ret` type + = note: for types from other crates check whether the crate offers a `serde` feature flag + = help: the following other types implement trait `serde_core::ser::Serialize`: + &'a T + &'a mut T + () + (T,) + (T0, T1) + (T0, T1, T2) + (T0, T1, T2, T3) + (T0, T1, T2, T3, T4) + and $N others + = note: required for `Ret` to implement `dropshot::handler::HttpResponseContent` +note: required by a bound in `HttpResponseOk` + --> src/handler.rs + | + | pub struct HttpResponseOk( + | ^^^^^^^^^^^^^^^^^^^ required by this bound in `HttpResponseOk` + error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied --> tests/fail/bad_endpoint7.rs:25:5 | diff --git a/dropshot/tests/fail/bad_trait_channel6.stderr b/dropshot/tests/fail/bad_trait_channel6.stderr index 6f097c76..2012e680 100644 --- a/dropshot/tests/fail/bad_trait_channel6.stderr +++ b/dropshot/tests/fail/bad_trait_channel6.stderr @@ -29,15 +29,3 @@ error: expected identifier, found `0x1de` | --- ^^^^^ expected identifier | | | while parsing this struct - -error[E0063]: missing fields `x` and `y` in initializer of `Ret` - --> tests/fail/bad_trait_channel6.rs:48:17 - | -48 | let _ = Ret { "Oxide".to_string(), 0x1de }; - | ^^^ missing `x` and `y` - -error[E0063]: missing fields `x` and `y` in initializer of `Ret` - --> tests/fail/bad_trait_channel6.rs:31:17 - | -31 | let _ = Ret { "Oxide".to_string(), 0x1de }; - | ^^^ missing `x` and `y` diff --git a/dropshot/tests/fail/bad_trait_endpoint6.stderr b/dropshot/tests/fail/bad_trait_endpoint6.stderr index 1d1c7fb9..5d1b1584 100644 --- a/dropshot/tests/fail/bad_trait_endpoint6.stderr +++ b/dropshot/tests/fail/bad_trait_endpoint6.stderr @@ -29,15 +29,3 @@ error: expected identifier, found `0x220` | --- ^^^^^ expected identifier | | | while parsing this struct - -error[E0063]: missing fields `x` and `y` in initializer of `Ret` - --> tests/fail/bad_trait_endpoint6.rs:46:27 - | -46 | Ok(HttpResponseOk(Ret { "220".to_string(), 0x220 })) - | ^^^ missing `x` and `y` - -error[E0063]: missing fields `x` and `y` in initializer of `Ret` - --> tests/fail/bad_trait_endpoint6.rs:31:27 - | -31 | Ok(HttpResponseOk(Ret { "Oxide".to_string(), 0x1de })) - | ^^^ missing `x` and `y` diff --git a/dropshot/tests/fail/bad_trait_endpoint7.stderr b/dropshot/tests/fail/bad_trait_endpoint7.stderr index a867f6be..592dacfb 100644 --- a/dropshot/tests/fail/bad_trait_endpoint7.stderr +++ b/dropshot/tests/fail/bad_trait_endpoint7.stderr @@ -28,6 +28,36 @@ note: required by a bound in `dropshot::HttpResponseOk` | pub struct HttpResponseOk( | ^^^^^^^^^^^^^^^^^^^ required by this bound in `dropshot::HttpResponseOk` +error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied + --> tests/fail/bad_trait_endpoint7.rs:41:12 + | +41 | Ok(HttpResponseOk(Ret { x: "Oxide".to_string(), y: 0x1de })) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `serde_core::ser::Serialize` is not implemented for `Ret` + --> tests/fail/bad_trait_endpoint7.rs:13:1 + | +13 | struct Ret { + | ^^^^^^^^^^ + = note: for local types consider adding `#[derive(serde::Serialize)]` to your `Ret` type + = note: for types from other crates check whether the crate offers a `serde` feature flag + = help: the following other types implement trait `serde_core::ser::Serialize`: + &'a T + &'a mut T + () + (T,) + (T0, T1) + (T0, T1, T2) + (T0, T1, T2, T3) + (T0, T1, T2, T3, T4) + and $N others + = note: required for `Ret` to implement `dropshot::handler::HttpResponseContent` +note: required by a bound in `dropshot::HttpResponseOk` + --> src/handler.rs + | + | pub struct HttpResponseOk( + | ^^^^^^^^^^^^^^^^^^^ required by this bound in `HttpResponseOk` + error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied --> tests/fail/bad_trait_endpoint7.rs:41:9 | diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 88ca46c1..6f348412 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -4,5 +4,5 @@ # The intent is to keep this updated as new stable versions are relased. [toolchain] -channel = "1.95.0" +channel = "1.96.0" profile = "default"