Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp343166lqp; Wed, 22 May 2024 06:25:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlWSjKNgwerAGDjTrIdS2m32pfPrcvMHIDD6N7j3fLeyQaJHunxCOv6ttznh0Q+6jgUads4NjqMmk0/+A9qR8KuG7LKj/P84fSgyVuww== X-Google-Smtp-Source: AGHT+IEV/sNhBBosnFli2ouDfyeEtlZwN7j/UOhS9aycyO3G3uvj7PCLv0Qk8dB1lRCtEuxnRbK+ X-Received: by 2002:a17:906:349a:b0:a59:a895:3ee with SMTP id a640c23a62f3a-a622812fa94mr114058466b.45.1716384302413; Wed, 22 May 2024 06:25:02 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba3be7si1496240666b.563.2024.05.22.06.25.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 06:25:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186276-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=tuQE7LzE; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-186276-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186276-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id F10F31F222C9 for ; Wed, 22 May 2024 13:25:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD2C613E04D; Wed, 22 May 2024 13:24:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="tuQE7LzE" Received: from AUS01-ME3-obe.outbound.protection.outlook.com (mail-me3aus01olkn2147.outbound.protection.outlook.com [40.92.63.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FD3213DBB7; Wed, 22 May 2024 13:24:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.63.147 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716384292; cv=fail; b=DxBe8tdFqzyaa+xhlNH8fQbBFgPDPMdyF8G0gk8VV0nSEtcJO4UOqrwbEksac+8NoaI/a+JpPMKb7g62GoWiQ2kc+n9nE+FoqCkR/GwAFN1LxMJ1DI7Ju80q3MEKG/8QE7ZRMVSn3RDXBQbXQPa/tZjBGPXBWPN6NJAngwSWeXY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716384292; c=relaxed/simple; bh=U3s6CDV/0cQ/qTcgZX3eouSFfDkIpwxEKowF6DVt2Ic=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=rC63QimhMOYvr4OzZSs9XZSbrtohJcgneSud9bDyk6LFn/wxrFa5fWN9Y9csb9iXuobvIbqOJgKkFY5T0QQ6FylVkcnRNGeWS7nEcxJX/Yx3jn9aQsMf47ErWxK1Que5YZF2XaIwxti9n3g+95h5rf4C7hYMg6Chq4MQdUD3zPk= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=tuQE7LzE; arc=fail smtp.client-ip=40.92.63.147 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y80LeFdKnX9qZQiea7L2dic+tcLtPiw888uuaGae9b1nBmC+6vQ7gMWYmfMAgWV3+jRHe2ru5yhV11j6N7FUyVzaYMNO7T0SO+9p1QejuRXCuOFKsZYhh/6Co8TQVN4y+QFRtJaOgLUnRvDRrJ9ByyJBTfUa64UfkRs9ods5cKB6EA6JX3qccJocP81rmreMyhDGZhRzBfb28wuZaYecmLO11lzdIwWVC9hqyCqo3htmLwplxR8hApuA+7X0gdOz+EKxbsDvA/ije5SD1N99D6GJnQo5hhN7/qHAcu31OvILoUMn3tI3/2isiMiyYAxv40HAE2nMikb/38k9eZZ20Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=U3s6CDV/0cQ/qTcgZX3eouSFfDkIpwxEKowF6DVt2Ic=; b=n9qEKLW89cwvQKRepRAYfU1k6hoyyovGB/hvz8IXEJWlfsX6Lc3TrlKsBcaP/z/oBg7nWzNE9mBcE2af/tcn138VQIg8thSgGsN5xSEN5GRqKlIZOjslXIwlaa2IN2yS3aYG1vsFBV4tyyAHAMtTtuIitA4dZ3L2zJCscLYAegatIhN7k77ljiouQvzpS2ir83m4uwcH9gSykXkiCqDynf3UfkS72tkeQMh4gKg7qPPDlpgA31Wu8V1kLwkhdRMUvi8SH288N6K306tq/soWCW9wiZwXLaUiNsc8Fb3bMn777/OIPLDseG6hum1iJwMzbgi2Rbp+rpEf+p95jEOsfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U3s6CDV/0cQ/qTcgZX3eouSFfDkIpwxEKowF6DVt2Ic=; b=tuQE7LzEZ1c+7687Muq16KRBNxFbhjJGkb9Fhiy37YPvnPov9/o71yGe16PzpZqMnNWJuoz6rxQmEW+qAOAVEf9AZAa5ZBdNMkCOZ3DpJYAc4XLSw4f+aJsTqgmicNowOMbmHLPOWl6CRqep8NhGIpW3kShflzI4/tzjm0STRe4X6mbmvetGnastl8Bop8hTkROlx8kYBWQdkuANP8FjOQoTkG2Fjcgp5EhpVdAAvEP41qXBFKBq/ghq9WhCMdVL7ILWhuaCkp8LfKNFceLcCRYT+dAgdx5SqITk56THsB9AX5xXUdCp1DoxHQa4EltuV5nlSfBYY988IE7dTuuRNA== Received: from ME0P282MB4890.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:228::21) by ME4P282MB0744.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:c::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.21; Wed, 22 May 2024 13:24:47 +0000 Received: from ME0P282MB4890.AUSP282.PROD.OUTLOOK.COM ([fe80::d384:a02f:2370:f33e]) by ME0P282MB4890.AUSP282.PROD.OUTLOOK.COM ([fe80::d384:a02f:2370:f33e%7]) with mapi id 15.20.7587.035; Wed, 22 May 2024 13:24:47 +0000 From: Xu Roland To: Alice Ryhl CC: "ojeda@kernel.org" , "boqun.feng@gmail.com" , "rust-for-linux@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: =?utf-8?B?5Zue5aSNOiBbUEFUQ0hdIHJ1c3Q6IGtlcm5lbDogbWFrZSBpbXBsX2hhc193?= =?utf-8?Q?ork_compatible_with_more_complex_generics?= Thread-Topic: [PATCH] rust: kernel: make impl_has_work compatible with more complex generics Thread-Index: AQHarENxWIjlBOOAWkqGotVt1EqetLGjMQuAgAANJVI= Date: Wed, 22 May 2024 13:24:47 +0000 Message-ID: References: In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [+qpmeLQIcZ5xrNhc0EfFpsAHruyuWa+y] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: ME0P282MB4890:EE_|ME4P282MB0744:EE_ x-ms-office365-filtering-correlation-id: 5ac10f99-d981-4ea6-9334-08dc7a628d33 x-microsoft-antispam: BCL:0;ARA:14566002|461199019|102099023|3430499023|440099019|3412199016|1602099003; x-microsoft-antispam-message-info: qarDWoLHHxDMuzw1M2s5X3KOYhAVL+Geh4JBSfNmKGOT9HH93U11B5rni0U0E5pM/4Yh4kCDFKw+rK2H0tybS/goCFz0foekhZsjeW78AOuDlbUachW9pqrY5pAOHSeVm3ZW8DX1FhJQAdmPtOqou2JGXAzBA0SuIdtjKTrtiMszVGvevTPBn8HUnUHc0YwpeO2HyJU6jlpqK/tn4u5ODE8m+KV5lF7v1fQ//LhwOog0fYc6tio7d4j+dLfG6YQ60EM6sshD4zKpaEO7dNS3VogENmqkHNuISYGL70qRq7pFosSDOl0W9N94vL/LPfoIexsVhmSWhFYzeT/f6LL5qLWpl+RkdlsZocJUtd1e4PwjWkpauc79jykmnMc6hSdou2KVBQAjCmUuGO4EoShcXXJqHFky0AERDedvmmGK92HnLNE8l62fobmB3PrRf6YuTDzn3U6JN0JAnf02KJUj+kBovWtfO8l5fuY9ilu6obAkRHM6V5xB+EkyV3JySj9T5qx7qzN2v4QsIaiJkPEO04nhiCUStWTB16hPelFpQ8xvaY+Arw04WQotZMP4tPYL73sZUceu4X1slYJvqN92ejMtzLdtsd2jYaaLLkRTxmyC0qxRTm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f-8" Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: ME0P282MB4890.AUSP282.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 5ac10f99-d981-4ea6-9334-08dc7a628d33 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 May 2024 13:24:47.3601 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: ME4P282MB0744 QWxpY2UgUnlobCBXcm90ZToNCj4gUGxlYXNlIHByb3ZpZGUgYSBtb3JlIGNvbXBsZXRlIGNvbW1p dCBkZXNjcmlwdGlvbi4gV2hhdCB1c2VyIG1vdGl2YXRlcw0KPiB0aGlzIGNoYW5nZT8NCg0KSSBz ZW50IHR3byBuZXcgZW1haWxzIGJ1dCBJIHRob3VnaHQgSSBtYWRlIHNvbWV0aGluZyB3cm9uZyBj YXVzZSBJdCBzZWVtcyBub3QgY29uc2VxdWVudCB3aXRoIHRoaXMuDQpBbmQgSSBmb3VuZCB0aGlz IGlzc3VlIGF0IGh0dHBzOi8vZ2l0aHViLmNvbS9SdXN0LWZvci1MaW51eC9saW51eC9pc3N1ZXMv MTA3Nw0KDQpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQrlj5Hku7bk uro6IEFsaWNlIFJ5aGwgPGFsaWNlcnlobEBnb29nbGUuY29tPg0K5Y+R6YCB5pe26Ze0OiAyMDI0 5bm0NeaciDIy5pelI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