Skip to content
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

fixes #62 -- resolve clippy warning from rust 1.62 #63

Merged
merged 2 commits into from
Jul 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions examples/src/fail_tests/auto_covariant.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ error: Ouroboros cannot automatically determine if this type is covariant.
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0601]: `main` function not found in crate `$CRATE`
--> $DIR/auto_covariant.rs:1:1
--> $DIR/auto_covariant.rs:12:2
|
1 | / use ouroboros::self_referencing;
2 | |
3 | | struct NotGuaranteedCovariant<'a> {
4 | | data: &'a (),
... |
11 | | field: NotGuaranteedCovariant<'this>
12 | | }
| |_^ consider adding a `main` function to `$DIR/src/fail_tests/auto_covariant.rs`
12 | }
| ^ consider adding a `main` function to `$DIR/src/fail_tests/auto_covariant.rs`
1 change: 1 addition & 0 deletions ouroboros_macro/src/generate/into_heads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ pub fn make_into_heads(info: &StructInfo, options: Options) -> (TokenStream, Tok
#documentation
#[allow(clippy::drop_ref)]
#[allow(clippy::drop_copy)]
#[allow(clippy::drop_non_drop)]
#visibility fn into_heads(self) -> Heads<#(#generic_args),*> {
#(#code)*
Heads {
Expand Down