Skip to content

Commit

Permalink
clarify error message of macros in pymethods
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno Kolenbrander <[email protected]>
  • Loading branch information
davidhewitt and mejrs authored Oct 2, 2023
1 parent b3fcbd8 commit a5ad932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyo3-macros-backend/src/pyimpl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ pub fn impl_methods(
}
syn::ImplItem::Macro(m) => bail_spanned!(
m.span() =>
"macros cannot be used in `#[pymethods]` impl blocks\n\
"macros cannot be used as items in `#[pymethods]` impl blocks\n\
= note: this was previously accepted and ignored"
),
_ => {}
Expand Down

0 comments on commit a5ad932

Please sign in to comment.