-
Notifications
You must be signed in to change notification settings - Fork 598
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
vec deprecated append #7167
vec deprecated append #7167
Conversation
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.
Fix the title.
Reviewable status: 0 of 4 files reviewed, all discussions resolved (waiting on @orizi)
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.
What's wrong with it?
Reviewable status: 0 of 4 files reviewed, all discussions resolved (waiting on @orizi)
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.
It's the branch name, not the commit message.
Reviewable status: 0 of 4 files reviewed, all discussions resolved (waiting on @orizi)
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 don't see it...
Reviewable status: 0 of 4 files reviewed, all discussions resolved (waiting on @orizi)
91d7a4e
to
5c9ee2a
Compare
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.
Reviewable status: 0 of 4 files reviewed, 3 unresolved discussions (waiting on @dean-starkware)
corelib/src/starknet/storage/vec.cairo
line 327 at r2 (raw file):
note: "Use `core::starknet::storage::Vec::MutableVecTrait::allocate` instead", )] fn append(self: T) -> StoragePath<Mutable<Self::ElementType>>;
Suggestion:
fn append(self: T) -> StoragePath<Mutable<Self::ElementType>> {
Self::allocate(self)
}
corelib/src/starknet/storage/vec.cairo
line 446 at r2 (raw file):
self.as_ptr().write(vec_len + 1); self.update(vec_len) }
corelib/src/starknet/storage/vec.cairo
line 505 at r2 (raw file):
fn append(self: T) -> StoragePath<Mutable<VecTraitImpl::ElementType>> { self.as_path().append() }
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.
Reviewable status: 0 of 4 files reviewed, 5 unresolved discussions (waiting on @dean-starkware)
corelib/src/starknet/storage/vec.cairo
line 324 at r2 (raw file):
/// ``` #[deprecated( feature: "corelib-internal-use",
or something similar.
Suggestion:
feature: "starknet-storage-deprecation",
corelib/src/starknet/storage/vec.cairo
line 325 at r2 (raw file):
#[deprecated( feature: "corelib-internal-use", note: "Use `core::starknet::storage::Vec::MutableVecTrait::allocate` instead",
the actual visible path.
Suggestion:
note: "Use `core::starknet::storage::MutableVecTrait::allocate` instead",
b428f86
to
9642dab
Compare
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.
Reviewable status: 0 of 4 files reviewed, 5 unresolved discussions (waiting on @orizi)
corelib/src/starknet/storage/vec.cairo
line 324 at r2 (raw file):
Previously, orizi wrote…
or something similar.
Done.
corelib/src/starknet/storage/vec.cairo
line 325 at r2 (raw file):
Previously, orizi wrote…
the actual visible path.
Done.
corelib/src/starknet/storage/vec.cairo
line 327 at r2 (raw file):
note: "Use `core::starknet::storage::Vec::MutableVecTrait::allocate` instead", )] fn append(self: T) -> StoragePath<Mutable<Self::ElementType>>;
Nicely done.
corelib/src/starknet/storage/vec.cairo
line 446 at r2 (raw file):
self.as_ptr().write(vec_len + 1); self.update(vec_len) }
Done.
corelib/src/starknet/storage/vec.cairo
line 505 at r2 (raw file):
fn append(self: T) -> StoragePath<Mutable<VecTraitImpl::ElementType>> { self.as_path().append() }
Done.
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.
Reviewed 3 of 3 files at r2, 1 of 1 files at r4, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @dean-starkware)
1044009
to
604176e
Compare
9642dab
to
d216d98
Compare
e6ff33b
to
8ac7be5
Compare
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.
Reviewed 1 of 1 files at r4, 3 of 3 files at r5, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dean-starkware)
corelib/src/starknet/storage/vec.cairo
line 500 at r5 (raw file):
fn allocate(self: T) -> StoragePath<Mutable<VecTraitImpl::ElementType>> { self.as_path().append()
Suggestion:
allocate()
8ac7be5
to
24f3739
Compare
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @gilbens-starkware)
corelib/src/starknet/storage/vec.cairo
line 500 at r5 (raw file):
fn allocate(self: T) -> StoragePath<Mutable<VecTraitImpl::ElementType>> { self.as_path().append()
Done.
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.
Reviewed 1 of 1 files at r6, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @dean-starkware)
No description provided.