This adds reference annotations for `diagnostic::on_unimplmented` and the `diagnostic` namespace in general.