syntax: Fix wrong span on ObsoleteEmptyImpl
syntax: Fix wrong span on ObsoleteMode
syntax: Fix wrong span on trait fn visibility

Fixes #9348.
auto merge of #9525 : klutzy/rust/obsolete-span-fix, r=alexcrichton