apollo_proc_macros: features visibility#12060
Conversation
55673af to
66ec645
Compare
eb1bda7 to
013d127
Compare
66ec645 to
5c330e6
Compare
013d127 to
4cab074
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @yoavGrs).
crates/apollo_proc_macros/src/lib.rs line 463 at r1 (raw file):
.to_compile_error() .into(); }
Suggestion:
other_item => {
return Error::new_spanned(&input, "Cannot override the `#[visibility]` of item {other_item:?}.")
.to_compile_error()
.into();
}
yoavGrs
left a comment
There was a problem hiding this comment.
@yoavGrs made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware).
crates/apollo_proc_macros/src/lib.rs line 463 at r1 (raw file):
.to_compile_error() .into(); }
syn::Item doesn't implement either std::fmt::Debug or std::fmt::Display.
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @yoavGrs).
crates/apollo_proc_macros/src/lib.rs line 463 at r1 (raw file):
Previously, yoavGrs wrote…
syn::Itemdoesn't implement eitherstd::fmt::Debugorstd::fmt::Display.
godammit
is there some type_name function? pretty sure there is, and would help to know which item is problematic (this may occur because we misplaced the attribute and are applying it on an unexpected item)
yoavGrs
left a comment
There was a problem hiding this comment.
@yoavGrs made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware).
crates/apollo_proc_macros/src/lib.rs line 463 at r1 (raw file):
Previously, dorimedini-starkware wrote…
godammit
is there sometype_namefunction? pretty sure there is, and would help to know which item is problematic (this may occur because we misplaced the attribute and are applying it on an unexpected item)
I don't find...
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware made 1 comment and resolved 1 discussion.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @yoavGrs).
crates/apollo_proc_macros/src/lib.rs line 458 at r1 (raw file):
Item::Type(ItemType { ref mut vis, .. }) => *vis = visibility, Item::Union(ItemUnion { ref mut vis, .. }) => *vis = visibility, Item::Use(ItemUse { ref mut vis, .. }) => *vis = visibility,
non-blocking
Suggestion:
Item::Const(ItemConst { ref mut vis, .. })
| Item::Enum(ItemEnum { ref mut vis, .. })
| Item::ExternCrate(ItemExternCrate { ref mut vis, .. })
| Item::Fn(ItemFn { ref mut vis, .. })
| Item::Mod(ItemMod { ref mut vis, .. })
| Item::Static(ItemStatic { ref mut vis, .. })
| Item::Struct(ItemStruct { ref mut vis, .. })
| Item::Trait(ItemTrait { ref mut vis, .. })
| Item::TraitAlias(ItemTraitAlias { ref mut vis, .. })
| Item::Type(ItemType { ref mut vis, .. })
| Item::Union(ItemUnion { ref mut vis, .. })
| Item::Use(ItemUse { ref mut vis, .. }) => *vis = visibility,5c330e6 to
8f625a2
Compare
4cab074 to
c03ed8a
Compare
yoavGrs
left a comment
There was a problem hiding this comment.
@yoavGrs made 1 comment and resolved 1 discussion.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @dorimedini-starkware).
crates/apollo_proc_macros/src/lib.rs line 458 at r1 (raw file):
Previously, dorimedini-starkware wrote…
non-blocking
Done
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 1 file and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @yoavGrs).
a449360

No description provided.