-
Notifications
You must be signed in to change notification settings - Fork 98
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
Doctest failure for custom quantity #119
Comments
This is an issue caused by Short term it looks like changing the macro invocation to Cross-edition tests should also be added to |
Yeah, this explains everything, thanks :) Not sure if this issue should be closed now, feel free to do that. |
Leave it open. I have some local changes to fix the generated code to be compatible with both editions. |
Doc test on the `$quantities!` macro would fail with the error `no ``mks`` external crate` when the `system!` macro was invoked in a crate using the 2018 edition. All invocations of the `$quantities!` macro are corrected and a new test crate, edition_check, is added to validate `uom` can be used in 2018 edition code. Resolves #119.
Doc test on the `$quantities!` macro would fail with the error `no ``mks`` external crate` when the `system!` macro was invoked in a crate using the 2018 edition. All invocations of the `$quantities!` macro are corrected and a new test crate, `edition_check`, is added to validate `uom` can be used in 2018 edition code. Resolves #119.
Doc test on the `$quantities!` macro would fail with the error `no ``mks`` external crate` when the `system!` macro was invoked in a crate using the 2018 edition. All invocations of the `$quantities!` macro are corrected and a new test crate, `edition_check`, is added to validate `uom` can be used in 2018 edition code. Resolves #119.
Doc test on the `$quantities!` macro would fail with the error `no ``mks`` external crate` when the `system!` macro was invoked in a crate using the 2018 edition. All invocations of the `$quantities!` macro are corrected and a new test crate, `edition_check`, is added to validate `uom` can be used in 2018 edition code. Resolves #119.
Doc test on the `$quantities!` macro would fail with the error `no ``mks`` external crate` when the `system!` macro was invoked in a crate using the 2018 edition. All invocations of the `$quantities!` macro are corrected and a new test crate, `edition_check`, is added to validate `uom` can be used in 2018 edition code. Resolves #119.
I've created a custom quantities system and for some weird reasons doc example for the
quantity!
macro somehow breaks the documentation tests in my crate with the following error:Commenting these lines in the
uom
sources removes an error completely.rustc
version: 1.33.0uom
version:I guess, doc test for exported
IEC!
macro breaks for some unknown reasons?So, here is what makes this bug "weird": it is reproducible in the existing code, but I can't reproduce it with a new cargo project.
Unfortunately, existing code is not public (yet), so at the moment I'm failing to find the way of how to show it.
@iliekturtles, any thoughts, maybe?
The text was updated successfully, but these errors were encountered: