librustc: When checking static method calls to unboxed closures, look at
the right trait and take the method name into account.

Closes #16599.
auto merge of #16631 : pcwalton/rust/unboxed-closures-wrong-trait, r=huonw

the right trait and take the method name into account.

Closes #16599.

r? @huonw