Allow `Self` in impls.

r? @sfackler 

closes #20000