diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-14 12:47:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-14 12:47:11 +0000 |
commit | 6e8f309a3caea95ab3e7947a011139cf9aba8b25 (patch) | |
tree | 839c2fa8c26145c103aa56fce03834174359caba /dev-util/ruff/files | |
parent | 404b23b9395fafe5c40a1fd4d859c6cd17b4a646 (diff) |
gentoo auto-resync : 14:03:2024 - 12:47:11
Diffstat (limited to 'dev-util/ruff/files')
-rw-r--r-- | dev-util/ruff/files/0001-Gate-f-string-struct-size-test-for-Rustc-1.76-10371.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-util/ruff/files/0001-Gate-f-string-struct-size-test-for-Rustc-1.76-10371.patch b/dev-util/ruff/files/0001-Gate-f-string-struct-size-test-for-Rustc-1.76-10371.patch new file mode 100644 index 000000000000..ea652b5efd04 --- /dev/null +++ b/dev-util/ruff/files/0001-Gate-f-string-struct-size-test-for-Rustc-1.76-10371.patch @@ -0,0 +1,29 @@ +From dbf82233b81b0c3e3aedcb0a26f6c51e66df0797 Mon Sep 17 00:00:00 2001 +From: Charlie Marsh <charlie.r.marsh@gmail.com> +Date: Tue, 12 Mar 2024 12:46:36 -0700 +Subject: [PATCH] Gate f-string struct size test for Rustc < 1.76 (#10371) + +Closes https://github.com/astral-sh/ruff/issues/10319. + +Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> +--- + crates/ruff_python_ast/src/nodes.rs | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/crates/ruff_python_ast/src/nodes.rs b/crates/ruff_python_ast/src/nodes.rs +index 32a3435e7..53cf5b8d8 100644 +--- a/crates/ruff_python_ast/src/nodes.rs ++++ b/crates/ruff_python_ast/src/nodes.rs +@@ -4148,7 +4148,8 @@ mod tests { + assert_eq!(std::mem::size_of::<ExprDict>(), 56); + assert_eq!(std::mem::size_of::<ExprDictComp>(), 48); + assert_eq!(std::mem::size_of::<ExprEllipsisLiteral>(), 8); +- assert_eq!(std::mem::size_of::<ExprFString>(), 48); ++ // 56 for Rustc < 1.76 ++ assert!(matches!(std::mem::size_of::<ExprFString>(), 48 | 56)); + assert_eq!(std::mem::size_of::<ExprGenerator>(), 48); + assert_eq!(std::mem::size_of::<ExprIf>(), 32); + assert_eq!(std::mem::size_of::<ExprIpyEscapeCommand>(), 32); +-- +2.43.2 + |