You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…arth
Make `bool_to_int_with_if` a pedantic lint
In all the cases I've observed, it did not make the code clearer. Using bools as integer is frowned upon in some languages, in others it's simply not possible.
You can find comments on the original pull request rust-lang#8131 that agree with this point of view.
changelog: [`bool_to_int_with_if`]: Change the categorization to pedantic
I am defining a packed struct the following way:
This code outputs "6" as expected.
Now if I try the following statement:
Rustc fails with the following message:
The text was updated successfully, but these errors were encountered: