syntax: Use UFCS in the expansion of `#[deriving(PartialOrd)]`

Closes #18738
cc #15689

r? @alexcrichton 
cc @cmr