#GATs considered unstable _even after_ updating

7 messages · Page 1 of 1 (latest)

indigo fiber
#

I have a hardware-agnostic crate, which I'd prefer to compile in the stable channel. I also have a crate which I compile for the Arduino Nano, and depends on the former crate; also, by necessity, it is compiled in the nightly channel.

The hardware-agnostic crate contains Generic Associated Types. It builds just fine on the stable channel, as of a couple hours ago.
The hardware-dependent crate does not build, however. It tells me that I need to add #![feature(generic_associated_types)] to the previous crate. I wouldn't mind doing that, but… then it wouldn't build on stable, even though GATs are now stable!

For reference, I did run rustup update. Is this a stale cache issue?

#

Update: There's an issue on GitHub which purports to offer a work-around… and it doesn't work.

blazing hill
#

that sounds like your nightly version is too old, so that it doesn't know about the stabilization

#

are you using a rust-toolchain.toml? perhaps pinning to an old nightly version?

indigo fiber
#

Hmmmm… quite possible. Let me look.

#

Bingo! It hasn't worked yet; I'll update when I have news.

#

And it worked! Thank you so much!