-
Notifications
You must be signed in to change notification settings - Fork 155
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
rust upgrade 1.78.0-nightly #4023
Conversation
|
|
Did a full CD run here: https://github.com/mobilecoinfoundation/mobilecoin/actions/runs/13019325390 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the dead code is dead code and a couple of suggestions to avoid extern crate std
in tests. Normally extern crate std
shouldn't be needed for tests, there is an exception for the btree!
macro as it's using std
when it should be using alloc
|
|
Changes outside of 1.78.0 updates:
There are a lot of small changes in 1.78.0
Update
curve25519-dalek
to"4.1.3" (Security and 1.78.0 changes)error: assigning the result of
Clone::clone()
may be inefficienthttps://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
error: assigning the result of
ToOwned::to_owned()
may be inefficienthttps://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
error: item has both inner and outer attributes
https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style
error: bound is defined in more than one place
https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
error: empty doc comment
https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
error: unnecessary use of
.is_none()
https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check
error: direct implementation of
ToString
https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
error:
to_string
applied to a type that implementsDisplay
informat!
argshttps://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
warning: no edition set: defaulting to the 2015 edition while the latest is 2021
warning: the item is imported redundantly
Best practices for activating std/no_std.
Change from using a
not
withcfg_attr
to setno_std
in certain situations -> set#![no_std]
and only includestd
when required. This list includes someuse
additions that were missing after the change.Fix comment with unicode chars being confused by doctest
Addition of
#[allow(dead_code)]
for structs that may be used for future debugging or testingFix broken doctest
Case of trying to cast a non-primitive type
forgot to capture the clippy/compile error
Format comments/whitespace in "External" code
This stuff is pretty old, we should look at a larger refactor for maintainability. I don't believe we have to leave it as is, just maintain the attribution/licenses attached.
Flag for more review.
This as_ref() errored with the wrong type (wasn't a slice).
clippy/rust-analyzer didn't like the order here
No longer dead_code?
Needed another dependency to fix mc-transaction-type tests (proptest_fixtures)
Seems like this has been broken for a while.