Skip to content

Commit f4e7dc2

Browse files
committed
update trybuild to Rust 1.56
1 parent 50392dc commit f4e7dc2

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ jobs:
4141
runs-on: ubuntu-latest
4242
steps:
4343
- uses: actions/checkout@v2
44-
- uses: dtolnay/[email protected]
44+
- uses: dtolnay/rust-toolchain@master
45+
with:
46+
toolchain: "1.56"
4547
- uses: actions/cache@v2
4648
with:
4749
path: |
4850
~/.cargo
4951
target
50-
key: ${{ runner.os }}-cargo-1.54
52+
key: ${{ runner.os }}-cargo-1.56
5153
- run: cargo test -- trybuild
5254
env:
5355
RUST_BACKTRACE: 1

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ uuid = { version = "0.8.2" , optional = true }
2929
paste = "1.0"
3030
pretty_assertions = "1.0"
3131
serde = { version = "1.0", features = ["derive"] }
32-
trybuild = "1.0"
32+
trybuild = "=1.0.52"

tests/fail/not_openapitype.stderr

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
error[E0277]: the trait bound `Bar: OpenapiType` is not satisfied
2-
--> $DIR/not_openapitype.rs:3:10
3-
|
4-
3 | #[derive(OpenapiType)]
5-
| ^^^^^^^^^^^ the trait `OpenapiType` is not implemented for `Bar`
6-
|
7-
= note: required by `schema`
8-
= note: this error originates in the derive macro `OpenapiType` (in Nightly builds, run with -Z macro-backtrace for more info)
2+
--> $DIR/not_openapitype.rs:3:10
3+
|
4+
3 | #[derive(OpenapiType)]
5+
| ^^^^^^^^^^^ the trait `OpenapiType` is not implemented for `Bar`
6+
|
7+
note: required by `schema`
8+
--> $DIR/lib.rs:146:2
9+
|
10+
146 | fn schema() -> OpenapiSchema;
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12+
= note: this error originates in the derive macro `OpenapiType` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)