From f01b245d8517ba70efe7601b8849d52e83456a9f Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Fri, 16 Dec 2022 20:56:15 +0000 Subject: [PATCH 1/2] update ui tests for Rust 1.66 --- tests/ui/invalid_pymethods.stderr | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/ui/invalid_pymethods.stderr b/tests/ui/invalid_pymethods.stderr index e18748b4..36eab673 100644 --- a/tests/ui/invalid_pymethods.stderr +++ b/tests/ui/invalid_pymethods.stderr @@ -127,24 +127,24 @@ error: Python objects are shared, so 'self' cannot be moved out of the Python in 138 | fn method_self_by_value(self) {} | ^^^^ -error[E0201]: duplicate definitions with name `__pymethod___new____`: +error[E0592]: duplicate definitions with name `__pymethod___new____` --> tests/ui/invalid_pymethods.rs:143:1 | 143 | #[pymethods] | ^^^^^^^^^^^^ | | - | previous definition of `__pymethod___new____` here - | duplicate definition + | duplicate definitions for `__pymethod___new____` + | other definition for `__pymethod___new____` | = note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) -error[E0201]: duplicate definitions with name `__pymethod_func__`: +error[E0592]: duplicate definitions with name `__pymethod_func__` --> tests/ui/invalid_pymethods.rs:158:1 | 158 | #[pymethods] | ^^^^^^^^^^^^ | | - | previous definition of `__pymethod_func__` here - | duplicate definition + | duplicate definitions for `__pymethod_func__` + | other definition for `__pymethod_func__` | = note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) From 7294e25d174fcfaba164f2c8e331ef0de4f288c5 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Fri, 16 Dec 2022 20:59:15 +0000 Subject: [PATCH 2/2] update clippy allows for new Rust 1.66 lints --- .cargo/config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.cargo/config b/.cargo/config index dd778a9e..c17c0f23 100644 --- a/.cargo/config +++ b/.cargo/config @@ -3,7 +3,11 @@ xtask = "run --package xtask --" [target.'cfg(feature = "cargo-clippy")'] rustflags = [ - "-Aclippy::needless_borrow", # TODO: remove once msrv increased from 1.48 + # TODO: remove these allows once msrv increased from 1.48 + "-Aclippy::iter_kv_map", + "-Aclippy::needless_borrow", + "-Aclippy::uninlined_format_args", + # Lints to enforce in CI "-Dclippy::checked_conversions", "-Dclippy::dbg_macro", "-Dclippy::explicit_into_iter_loop",