Skip to content

Conversation

konard
Copy link
Member

@konard konard commented Sep 11, 2025

Summary

This PR fixes issue #19 by resolving compilation errors that occur when using the latest Rust nightly compiler. The errors were caused by unstable features that have been deprecated, removed, or changed in recent Rust versions.

Changes Made

  • Updated feature flags: Removed deprecated/unknown features (const_deref, const_result_drop, default_free_fn, generators, etc.)
  • Added required features: Added impl_trait_in_assoc_type for opaque types and updated generators to coroutines
  • Fixed const trait implementations: Removed ~const trait bounds that are no longer supported in the current Rust nightly
  • Replaced opaque types: Changed impl Trait in associated types to concrete std::vec::IntoIter<T> types to avoid compiler constraints
  • Fixed import issues: Replaced std::default::default function calls with Default::default()
  • Updated submodules: Applied similar fixes to data-rs and mem-rs dependencies

Testing

The project now compiles successfully with Rust nightly 1.91.0-nightly (565a9ca63 2025-09-10) with only warnings related to unused imports and dead code, but no compilation errors.

Verification

Before the fix:

error[E0658]: `impl Trait` in associated types is unstable
error[E0635]: unknown feature `const_deref`
error[E0635]: unknown feature `const_result_drop`
error[E0635]: unknown feature `default_free_fn`

After the fix:

$ cargo +nightly check
# Compiles successfully with only warnings

Test plan

🤖 Generated with Claude Code


Resolves #19

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #19
@konard konard self-assigned this Sep 11, 2025
konard and others added 2 commits September 11, 2025 08:34
Resolves #19: Fixed unstable feature usage that was causing compilation errors with the latest Rust nightly:

- Updated feature flags: Removed deprecated/unknown features (const_deref, const_result_drop, default_free_fn, generators, etc.)
- Added required feature flags: impl_trait_in_assoc_type for opaque types
- Fixed const trait implementations: Removed ~const trait bounds that are no longer supported
- Replaced impl Trait in associated types with concrete std::vec::IntoIter<T> types
- Fixed import issues: Replaced std::default::default with Default::default()
- Updated submodules (data-rs and mem-rs) with compatible changes

The project now compiles successfully with Rust nightly 1.91.0-nightly.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@konard konard changed the title [WIP] error[E0658]: in associated types is unstable (on latest rust nightly and git dependency) Fix compilation errors with latest Rust nightly Sep 11, 2025
@konard konard marked this pull request as ready for review September 11, 2025 05:44
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.

error[E0658]: impl Trait in associated types is unstable (on latest rust nightly and git dependency)

1 participant