Update for rustc

`Primitive` is deprecated, so this is a temporary fix.