From f0d36f36313cfc3519348e44d613ebbd034ebf98 Mon Sep 17 00:00:00 2001 From: Nathan Goldbaum Date: Thu, 28 May 2026 14:45:57 -0600 Subject: [PATCH] Fix UI tests for Rust 1.96 --- tests/ui/invalid_pyclass_init.stderr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ui/invalid_pyclass_init.stderr b/tests/ui/invalid_pyclass_init.stderr index 8380964a1be..3589f653080 100644 --- a/tests/ui/invalid_pyclass_init.stderr +++ b/tests/ui/invalid_pyclass_init.stderr @@ -4,11 +4,11 @@ error[E0277]: the trait bound `i32: pyo3::impl_::callback::IntoPyCallbackOutput< 8 | fn __init__(&self) -> i32 { | ^^^ the trait `pyo3::impl_::callback::IntoPyCallbackOutput<'_, i32>` is not implemented for `i32` | -help: the following other types implement trait `pyo3::impl_::callback::IntoPyCallbackOutput<'py, Target>` +help: `usize` implements trait `pyo3::impl_::callback::IntoPyCallbackOutput<'py, Target>` --> src/impl_/callback.rs | | impl IntoPyCallbackOutput<'_, ffi::Py_ssize_t> for usize { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `usize` implements `pyo3::impl_::callback::IntoPyCallbackOutput<'_, isize>` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `pyo3::impl_::callback::IntoPyCallbackOutput<'_, isize>` ... | impl IntoPyCallbackOutput<'_, usize> for usize { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `usize` implements `pyo3::impl_::callback::IntoPyCallbackOutput<'_, usize>` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `pyo3::impl_::callback::IntoPyCallbackOutput<'_, usize>`