Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upsmallvec![] generate a "variable does not need to be mutable" warning. #127
Comments
|
I can't reproduce this problem. The following program compiles without warning for me, using Rust 1.29.1 and smallvec 0.6.5.
Can you create a test case that demonstrates the problem? |
|
Mmm i tried to reduce the test case, and found that this code
issues such warning under stable 1.28.0:
But such warning is gone in the nightly channel (rustc 1.30.0-nightly (02cb8f2a4 2018-08-29)). I cannot reproduce using play.rust-lang.org's stable 1.29.* either. I think maybe this is a fixed problem of rustc itself. Maybe we can close this now. |
|
Thanks for investigating! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When use the macro to build an empty SmallVec, it raises a warning. I think this should be dealt with from the
smallveccrate side.