You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
just building example code and getting error below,
error[E0599]: no method named `get_ref` found forunion `MaybeUninit`in the current scope
--> /home/oz-mint/.cargo/registry/src/github.com-1ecc6299db9ec823/rucene-0.1.1/src/core/search/query/spans/span_near.rs:509:45
|
509 | } elseifself.conjunction_span.get_ref().one_exhausted_in_current_doc {
| ^^^^^^^ method not found in`MaybeUninit<ConjunctionSpanBase<P>>`|
::: /home/oz-mint/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/pin.rs:804:18
|
804 | pub const fn get_ref(self) ->&'a T { | ------- the method is available for `Pin<&MaybeUninit<span::ConjunctionSpanBase<P>>>` here |help: consider wrapping the receiver expression with the appropriate type |509 | } else if Pin::new(&self.conjunction_span).get_ref().one_exhausted_in_current_doc { | ++++++++++ +Some errors have detailed explanations: E0308, E0554, E0599, E0635.For more information about an error, try `rustc --explain E0308`.error: could not compile `rucene` due to 67 previous errors
I managed to fix those ones by replacing get_ref with assume_init_ref, since the MaybeUninit feature changed the name before it was finalized. Similarly, get_mut was renamed to assume_init_mut.
I'll post a PR with all of the fixes that @harshavamsi and I had to add to get Rucene compiling with a modern Rust toolchain.
just building example code and getting error below,
any suggestions ?
here https://github.com/ozkanpakdil/rust-examples/tree/main/rucene_test
The text was updated successfully, but these errors were encountered: