I think this will ICE on `#[deriving(FromPrimitive)] struct Foo { .. }`? Could there be an arm with a `span_err` for the `StaticStruct` case? (You can use the `expr_unreachable` to make a "dummy" expression to satisfy the return value.)