Merge pull request #19587 from MatrixFrog/patch-1

Remove incorrect doc comment
This commit is contained in:
Lukas Wirth 2025-04-16 07:12:35 +00:00 committed by GitHub
commit 94f984f908
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -253,7 +253,6 @@ impl CustomProcMacroExpander {
self.proc_macro_id == Self::PROC_MACRO_ATTR_DISABLED
}
/// The macro is explicitly disabled due to proc-macro attribute expansion being disabled.
pub fn as_expand_error(&self, def_crate: Crate) -> Option<ExpandErrorKind> {
match self.proc_macro_id {
Self::PROC_MACRO_ATTR_DISABLED => Some(ExpandErrorKind::ProcMacroAttrExpansionDisabled),