num: implement `Hash` for `Complex` and `Ratio`
complex: use `///...` instead of `/**...*/` for comment
auto merge of #16850 : vks/rust/hash-num, r=alexcrichton

Updates #15294.