-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CI failure & Migrate to Rust 2021 #69
Merged
Merged
+23
−28
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This respects rust-version field in Cargo.toml, so it removes the need to manage MSRV in both the CI file and Cargo.toml.
We use Box to be able to catch memory leaks using miri/valgrind. ``` error: field `0` is never read --> tests/join.rs:29:24 | 29 | struct Fut(Box<i32>); | --- ^^^^^^^^ | | | field in this struct ... 99 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: `-D dead-code` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(dead_code)]` = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 29 | struct Fut(()); | ~~ error: field `0` is never read --> tests/join.rs:47:24 | 47 | struct Out(Box<i32>, bool); | --- ^^^^^^^^ | | | field in this struct ... 99 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 47 | struct Out((), bool); | ~~ error: field `0` is never read --> tests/join.rs:75:26 | 75 | struct Guard(Box<i32>); | ----- ^^^^^^^^ | | | field in this struct ... 100 | schedule!(s, SCHEDULE, DROP_S); | ------------------------------ in this macro invocation | = note: this error originates in the macro `schedule` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 75 | struct Guard(()); | ~~ error: field `0` is never read --> tests/join.rs:29:24 | 29 | struct Fut(Box<i32>); | --- ^^^^^^^^ | | | field in this struct ... 118 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 29 | struct Fut(()); | ~~ error: field `0` is never read --> tests/join.rs:47:24 | 47 | struct Out(Box<i32>, bool); | --- ^^^^^^^^ | | | field in this struct ... 118 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 47 | struct Out((), bool); | ~~ error: field `0` is never read --> tests/join.rs:75:26 | 75 | struct Guard(Box<i32>); | ----- ^^^^^^^^ | | | field in this struct ... 119 | schedule!(s, SCHEDULE, DROP_S); | ------------------------------ in this macro invocation | = note: this error originates in the macro `schedule` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 75 | struct Guard(()); | ~~ error: field `0` is never read --> tests/join.rs:29:24 | 29 | struct Fut(Box<i32>); | --- ^^^^^^^^ | | | field in this struct ... 137 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 29 | struct Fut(()); | ~~ error: field `0` is never read --> tests/join.rs:47:24 | 47 | struct Out(Box<i32>, bool); | --- ^^^^^^^^ | | | field in this struct ... 137 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 47 | struct Out((), bool); | ~~ error: field `0` is never read --> tests/join.rs:75:26 | 75 | struct Guard(Box<i32>); | ----- ^^^^^^^^ | | | field in this struct ... 138 | schedule!(s, SCHEDULE, DROP_S); | ------------------------------ in this macro invocation | = note: this error originates in the macro `schedule` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 75 | struct Guard(()); | ~~ error: field `0` is never read --> tests/join.rs:29:24 | 29 | struct Fut(Box<i32>); | --- ^^^^^^^^ | | | field in this struct ... 156 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 29 | struct Fut(()); | ~~ error: field `0` is never read --> tests/join.rs:47:24 | 47 | struct Out(Box<i32>, bool); | --- ^^^^^^^^ | | | field in this struct ... 156 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 47 | struct Out((), bool); | ~~ error: field `0` is never read --> tests/join.rs:75:26 | 75 | struct Guard(Box<i32>); | ----- ^^^^^^^^ | | | field in this struct ... 157 | schedule!(s, SCHEDULE, DROP_S); | ------------------------------ in this macro invocation | = note: this error originates in the macro `schedule` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 75 | struct Guard(()); | ~~ error: field `0` is never read --> tests/join.rs:29:24 | 29 | struct Fut(Box<i32>); | --- ^^^^^^^^ | | | field in this struct ... 185 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 29 | struct Fut(()); | ~~ error: field `0` is never read --> tests/join.rs:47:24 | 47 | struct Out(Box<i32>, bool); | --- ^^^^^^^^ | | | field in this struct ... 185 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 47 | struct Out((), bool); | ~~ error: field `0` is never read --> tests/join.rs:75:26 | 75 | struct Guard(Box<i32>); | ----- ^^^^^^^^ | | | field in this struct ... 186 | schedule!(s, SCHEDULE, DROP_S); | ------------------------------ in this macro invocation | = note: this error originates in the macro `schedule` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 75 | struct Guard(()); | ~~ error: field `0` is never read --> tests/join.rs:29:24 | 29 | struct Fut(Box<i32>); | --- ^^^^^^^^ | | | field in this struct ... 216 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 29 | struct Fut(()); | ~~ error: field `0` is never read --> tests/join.rs:47:24 | 47 | struct Out(Box<i32>, bool); | --- ^^^^^^^^ | | | field in this struct ... 216 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 47 | struct Out((), bool); | ~~ error: field `0` is never read --> tests/join.rs:75:26 | 75 | struct Guard(Box<i32>); | ----- ^^^^^^^^ | | | field in this struct ... 217 | schedule!(s, SCHEDULE, DROP_S); | ------------------------------ in this macro invocation | = note: this error originates in the macro `schedule` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 75 | struct Guard(()); | ~~ error: field `0` is never read --> tests/join.rs:29:24 | 29 | struct Fut(Box<i32>); | --- ^^^^^^^^ | | | field in this struct ... 247 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 29 | struct Fut(()); | ~~ error: field `0` is never read --> tests/join.rs:47:24 | 47 | struct Out(Box<i32>, bool); | --- ^^^^^^^^ | | | field in this struct ... 247 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 47 | struct Out((), bool); | ~~ error: field `0` is never read --> tests/join.rs:75:26 | 75 | struct Guard(Box<i32>); | ----- ^^^^^^^^ | | | field in this struct ... 248 | schedule!(s, SCHEDULE, DROP_S); | ------------------------------ in this macro invocation | = note: this error originates in the macro `schedule` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 75 | struct Guard(()); | ~~ error: field `0` is never read --> tests/join.rs:29:24 | 29 | struct Fut(Box<i32>); | --- ^^^^^^^^ | | | field in this struct ... 285 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 29 | struct Fut(()); | ~~ error: field `0` is never read --> tests/join.rs:47:24 | 47 | struct Out(Box<i32>, bool); | --- ^^^^^^^^ | | | field in this struct ... 285 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 47 | struct Out((), bool); | ~~ error: field `0` is never read --> tests/join.rs:75:26 | 75 | struct Guard(Box<i32>); | ----- ^^^^^^^^ | | | field in this struct ... 286 | schedule!(s, SCHEDULE, DROP_S); | ------------------------------ in this macro invocation | = note: this error originates in the macro `schedule` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 75 | struct Guard(()); | ~~ error: field `0` is never read --> tests/join.rs:29:24 | 29 | struct Fut(Box<i32>); | --- ^^^^^^^^ | | | field in this struct ... 319 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 29 | struct Fut(()); | ~~ error: field `0` is never read --> tests/join.rs:47:24 | 47 | struct Out(Box<i32>, bool); | --- ^^^^^^^^ | | | field in this struct ... 319 | future!(f, POLL, DROP_F, DROP_T); | -------------------------------- in this macro invocation | = note: this error originates in the macro `future` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 47 | struct Out((), bool); | ~~ error: field `0` is never read --> tests/join.rs:75:26 | 75 | struct Guard(Box<i32>); | ----- ^^^^^^^^ | | | field in this struct ... 320 | schedule!(s, SCHEDULE, DROP_S); | ------------------------------ in this macro invocation | = note: this error originates in the macro `schedule` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 75 | struct Guard(()); | ~~ ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This respects rust-version field in Cargo.toml, so it removes the need to manage MSRV in both the CI file and Cargo.toml.