Chaoses-Ib / IbPinyinLib

一个高性能 Rust 拼音匹配库,支持 C、AHK2
MIT License
28 stars 0 forks source link

feature已稳定 #3

Closed xuxiaocheng0201 closed 6 months ago

xuxiaocheng0201 commented 6 months ago

在rustc 1.75.0上已经不需要使用 #![feature(return_position_impl_trait_in_trait)] 属性,目前rustc已更新到1.76.0。

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> D:\AppData\Languages\Cargo\registry\src\index.crates.io-6f17d22bba15001f\ib-pinyin-0.2.3\src\lib.rs:1:1
  |
1 | #![feature(return_position_impl_trait_in_trait)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the attribute
  |
  = help: the feature `return_position_impl_trait_in_trait` has been stable since `1.75.0` and no longer requires an attribute to enable

For more information about this error, try `rustc --explain E0554`.

这导致在新版本的rustc上无法编译

Chaoses-Ib commented 6 months ago

谢谢,平常一直用的是 nightly,忘了 stable 不能用 unstable feature 了。v0.2.4 已修复。