It seems like rust-analyzer currently does not provide any completions for the #[diagnostic] attribute namespace. There are currently two attributes in this namespace: #[diagnostic::on_unimplemented] and #[diagnostic::do_not_recommend]. It would be great if rust-analyzer knows about them and would offer completions if you e.g. type #[diagnostic::. For the later I would expect to get suggestions for both attributes.