Trouble with Gc and i128

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:


Which didn’t work. Suggestions?

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:

features = ["nightly"]
1 Like