Trouble with Gc and i128


#1

I’m trying to use Manishearth’s gc library with the i128s offered by Rust nightly. However, I’m having trouble getting gc to automatically implement the Trace trait on u128s. Specifically, it seems to require that the ‘nightly’ feature be activated, which I can’t figure out how to do. I tried putting this at the top of my code:

#![feature(nightly)]

Which didn’t work. Suggestions?


#2

Aaand, ironically, five minutes after I post the question I figure out the answer. :stuck_out_tongue:

For anyone who arrives here in the future with the same question, the answer is you have to set up your Cargo.toml file to enable the feature for the package:

[dependencies.gc]
features = ["nightly"]