[move-function] Move diagnostics in front of the flag.
This is safe to do since:
1. _move is already an always emit into client transparent function, so no ABI
impact comes from it.
2. _move is underscored so it is a non-stable stdlib API meaning we aren't
providing any guarantees here.
3. Code that doesn't use _move will not be effected by this so there isn't an
impact on other code.
(cherry picked from commit deb454163d303bd5c3068d9e16c02cb181a1c5ba)