Tehforsch / diman

Define rust compile time unit systems using const generics
52 stars 2 forks source link

`compile_fail` qualifies `Quantity` if `si` is enabled #65

Closed Tehforsch closed 8 months ago

Tehforsch commented 8 months ago

Enabling si will turn Quantity into example_system::Quantity in some of the compile fail tests. This is quite annoying because we can only declare one of them as correct. For now I ran CI with SI, but that's not a very good solution. Flagging all the tests with #[cfg(feature = "si")] also seems overly restrictive. I think the proper solution here (that does not involve rewriting trybuild functionality) is to move the compile_fail tests into diman_unit_system. This is currently not possible because of #14 , which I'll resolve shortly.