Skip to content

apollo_proc_macros: features visibility#12060

Merged
yoavGrs merged 1 commit intomain-v0.14.1-committerfrom
yoav/apollo_proc_macros/features_visibility
Jan 28, 2026
Merged

apollo_proc_macros: features visibility#12060
yoavGrs merged 1 commit intomain-v0.14.1-committerfrom
yoav/apollo_proc_macros/features_visibility

Conversation

@yoavGrs
Copy link
Contributor

@yoavGrs yoavGrs commented Jan 27, 2026

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@yoavGrs yoavGrs self-assigned this Jan 27, 2026
@yoavGrs yoavGrs marked this pull request as ready for review January 27, 2026 12:08
@yoavGrs yoavGrs changed the base branch from yoav/apollo_batcher/commitment_manager_types/add_revert_task to graphite-base/12060 January 27, 2026 12:17
@yoavGrs yoavGrs force-pushed the graphite-base/12060 branch from 55673af to 66ec645 Compare January 27, 2026 12:35
@yoavGrs yoavGrs force-pushed the yoav/apollo_proc_macros/features_visibility branch from eb1bda7 to 013d127 Compare January 27, 2026 12:35
@yoavGrs yoavGrs changed the base branch from graphite-base/12060 to yoav/apollo_batcher/commitment_manager_types/add_revert_task January 27, 2026 12:35
@yoavGrs yoavGrs force-pushed the yoav/apollo_batcher/commitment_manager_types/add_revert_task branch from 66ec645 to 5c330e6 Compare January 27, 2026 12:55
@yoavGrs yoavGrs force-pushed the yoav/apollo_proc_macros/features_visibility branch from 013d127 to 4cab074 Compare January 27, 2026 12:55
@yoavGrs yoavGrs changed the base branch from yoav/apollo_batcher/commitment_manager_types/add_revert_task to graphite-base/12060 January 27, 2026 14:27
Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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();
        }

Copy link
Contributor Author

@yoavGrs yoavGrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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::Item doesn't implement either std::fmt::Debug or std::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)

Copy link
Contributor Author

@yoavGrs yoavGrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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 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)

I don't find...

Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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,

@yoavGrs yoavGrs force-pushed the graphite-base/12060 branch from 5c330e6 to 8f625a2 Compare January 28, 2026 09:47
@yoavGrs yoavGrs force-pushed the yoav/apollo_proc_macros/features_visibility branch from 4cab074 to c03ed8a Compare January 28, 2026 09:47
@yoavGrs yoavGrs changed the base branch from graphite-base/12060 to main-v0.14.1-committer January 28, 2026 09:47
Copy link
Contributor Author

@yoavGrs yoavGrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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

Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dorimedini-starkware reviewed 1 file and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @yoavGrs).

@yoavGrs yoavGrs added this pull request to the merge queue Jan 28, 2026
Merged via the queue into main-v0.14.1-committer with commit a449360 Jan 28, 2026
20 of 28 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants