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

parsing ambiguity in in_workunit! macro #12720

Open
tdyas opened this issue Sep 1, 2021 · 1 comment
Open

parsing ambiguity in in_workunit! macro #12720

tdyas opened this issue Sep 1, 2021 · 1 comment

Comments

@tdyas
Copy link
Contributor

tdyas commented Sep 1, 2021

Parsing ambiguity seen while trying to use as operator at the end of closure passed to in_workunit! macro:

error: local ambiguity when calling macro `in_workunit`: multiple parsing options: built-in NTs tt ('body') or 1 other option.
   --> process_execution/src/local.rs:546:43
    |
546 |         Ok(exclusive_spawn) as Result<bool, String>
    |                                           ^
@huonw
Copy link
Contributor

huonw commented Dec 19, 2022

#13483 / 30640b2#diff-230c46e3890a73dee860295c27128ef3aadc239d2db0f6bcd1ac67db038385efL851 seemed to change this from using tt to using expr, which likely resolves the ambiguity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants