-
Notifications
You must be signed in to change notification settings - Fork 596
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
Depraction warning for external(v0)
on impls.
#4470
Conversation
220b946
to
29c58be
Compare
e983673
to
cc2ddd7
Compare
cc2ddd7
to
eb1f3a4
Compare
dc1fe8c
to
f974cc0
Compare
4025434
to
7834398
Compare
f974cc0
to
4e94079
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 14 of 16 files at r1, all commit messages.
Reviewable status: 14 of 16 files reviewed, 1 unresolved discussion (waiting on @orizi)
crates/cairo-lang-starknet/src/plugin/utils.rs
line 218 at r1 (raw file):
if let Some(deprecated) = deprecated() { diagnostics.push(PluginDiagnostic::warning(attr.stable_ptr().untyped(), deprecated)); }
It'll raise this warning for any attr_name
attribute, in our case, also for #[external(any_text_in_here)]
, which is not deprecated as it haven't been supported. Maybe validate_v0
should return a bool and the warning should be raised according to it.
Code quote:
if let Some(deprecated) = deprecated() {
diagnostics.push(PluginDiagnostic::warning(attr.stable_ptr().untyped(), deprecated));
}
7834398
to
73cc967
Compare
4e94079
to
027eac7
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: 14 of 16 files reviewed, 1 unresolved discussion (waiting on @gilbens-starkware)
crates/cairo-lang-starknet/src/plugin/utils.rs
line 218 at r1 (raw file):
Previously, gilbens-starkware (Gil Ben-Shachar) wrote…
It'll raise this warning for any
attr_name
attribute, in our case, also for#[external(any_text_in_here)]
, which is not deprecated as it haven't been supported. Maybevalidate_v0
should return a bool and the warning should be raised according to it.
the external
is what is deprecated - so i'm fine with this.
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 2 of 16 files at r1.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @orizi)
73cc967
to
776236c
Compare
027eac7
to
7754dce
Compare
commit-id:aeac24e1
7754dce
to
b2f1ed9
Compare
Stack:
external(v0)
on impls. #4470 ⬅This change is