Skip to content
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

Functions created with lamellar::am macro are not (all) public #36

Open
JosephCottam opened this issue Nov 30, 2023 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@JosephCottam
Copy link
Collaborator

I have an AM defined in file1 and I'm trying to use it in file2. This results in a compiler error like

error[E0624]: associated function `create_am_group` is private
  --> src/variants/file2.rs:
   |
   |         let mut msgs = typed_am_group!(Messages, lamellar::world);
   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private associated function
   |
  ::: src/variants/file1.rs:
   |
   | #[lamellar::am]
   | --------------- private associated function defined here
   |
   = note: this error originates in the macro `typed_am_group` (in Nightly builds, run with -Z macro-backtrace for more info)

I get the error for typed_am_group and add_am_pe (but there may be others latent).

@JosephCottam JosephCottam added the bug Something isn't working label Nov 30, 2023
@rdfriese
Copy link
Contributor

rdfriese commented Dec 1, 2023

this should hopefully be addressed in the v0.6 release (52a3d90)

It worked in my simple test, but if history is anything to go by, that may not be the case for other environments ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants