sys: get rid of shape functions

borrowed pointers already implement Eq and Ord with deep comparisons
auto merge of #6942 : thestinger/rust/cleanup, r=catamorphism

borrowed pointers already implement Eq and Ord with deep comparisons