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

Work around upstream compiler bug #956

Merged
merged 4 commits into from
Dec 20, 2024
Merged

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Dec 20, 2024

Closes #716. Ref georust/geo#1255 (comment).

Note that this is the same underlying implementation as upstream geo in georust/geo#1255. However, the trait-based implementation hits this compiler regression rust-lang/rust#128887, rust-lang/rust#131960, which prevents from compiling in release mode on a stable Rust version. For some reason, the function-based implementation does not hit this regression, and thus allows building geoarrow without using latest nightly and a custom RUSTFLAGS.

Note that it's only GeometryTrait and GeometryCollectionTrait that hit this compiler bug.
Other traits can use the upstream impls.

@kylebarron kylebarron marked this pull request as ready for review December 20, 2024 16:30
@kylebarron kylebarron merged commit b4bc4f0 into main Dec 20, 2024
21 checks passed
@kylebarron kylebarron deleted the kyle/work-around-compiler-bug branch December 20, 2024 17:25
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

Successfully merging this pull request may close these issues.

Compile error for release builds on nightly: overflow evaluating the requirement `<impl GeometryTrait<T = f64>
1 participant