mhogrefe / malachite

An arbitrary-precision arithmetic library for Rust.
GNU Lesser General Public License v3.0
453 stars 18 forks source link

windows bug: private type in public interface #41

Closed dlamei closed 6 months ago

dlamei commented 6 months ago

compiling on linux works but on windows I get:

error[E0446]: private type `ExhaustiveRationalsWithDenominatorRangeGenerator` in public interface
   --> C:\Users\admin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\malachite-q-0.4.7\src\exhaustive\mod.rs:803:9
    |
758 |   struct ExhaustiveRationalsWithDenominatorRangeGenerator {
    |   ------------------------------------------------------- `ExhaustiveRationalsWithDenominatorRangeGenerator` declared as private
...
803 | /         ExhaustiveDependentPairs<
804 | |             Natural,
805 | |             Rational,
806 | |             RulerSequence<usize>,
...   |
809 | |             RationalsWithDenominator<ExhaustiveIntegerRange>,
810 | |         >,
    | |_________^ can't leak private type

error[E0446]: private type `ExhaustiveRationalsWithDenominatorInclusiveRangeGenerator` in public interface
   --> C:\Users\admin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\malachite-q-0.4.7\src\exhaustive\mod.rs:923:9
    |
873 |   struct ExhaustiveRationalsWithDenominatorInclusiveRangeGenerator {
    |   ---------------------------------------------------------------- `ExhaustiveRationalsWithDenominatorInclusiveRangeGenerator` d
eclared as private
...
923 | /         ExhaustiveDependentPairs<
924 | |             Natural,
925 | |             Rational,
926 | |             RulerSequence<usize>,
...   |
929 | |             RationalsWithDenominator<ExhaustiveIntegerRange>,
930 | |         >,
    | |_________^ can't leak private type
dlamei commented 6 months ago

nevermind. It was some weird cache bug.