-
Notifications
You must be signed in to change notification settings - Fork 13.3k
#[derive(Debug)] is triggering the unused_results lint #29710
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
Labels
A-syntaxext
Area: Syntax extensions
Comments
The expansion is: #[automatically_derived]
#[allow(unused_qualifications)]
impl ::std::fmt::Debug for Foo {
fn fmt(&self, __arg_0: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
match (&*self,) {
(&Foo::Bar(ref __self_0),) => {
let mut builder = __arg_0.debug_tuple("Bar");
builder.field(&&(*__self_0));
builder.finish()
}
}
}
} The call to |
This was a result of #29565. |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 9, 2015
This should help avoid triggering the unused_results lint which can frequently be turned on. Closes rust-lang#29710
bors
added a commit
that referenced
this issue
Nov 11, 2015
This should help avoid triggering the unused_results lint which can frequently be turned on. Closes #29710
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code fails to build on nightly
It generates this error:
The text was updated successfully, but these errors were encountered: