From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75CCCEB64D7 for ; Tue, 20 Jun 2023 17:55:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229799AbjFTRzs (ORCPT ); Tue, 20 Jun 2023 13:55:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230465AbjFTRzq (ORCPT ); Tue, 20 Jun 2023 13:55:46 -0400 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA7F31987; Tue, 20 Jun 2023 10:55:42 -0700 (PDT) Received: by mail-yb1-xb30.google.com with SMTP id 3f1490d57ef6-bd729434fa0so5267794276.1; Tue, 20 Jun 2023 10:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687283742; x=1689875742; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=tSF5soPOP8va7GnB3Njk98tlVSmV9eQIPMx/srLmS5E=; b=UyNXyrln9kREsaRb9T7hd8rLwW7KXhGiFAdHED8uhjOlMRSScqADivwLTjlzwR6DtX y6OLIwOZr2iJP4ZIWd9h6el4JAlZoLmtge2YsxPcCqhpVDd8Ci8NPBKyM70lOj/kF1IS +2YdFp6Wudy/xC0DneXXqmIFnDZXDx/BK6F690aYUFfHRG6gW4HmckyuI9StmZaxtpbr aJSRsMj8syaBXiZYRLYiQkcuAoiYcwgQZ2i5xw0B0d5lwfLR2NpPDgBBly+p+h0jbWAo YEftT/jPCyr7wJSZj2M2GUmqhUs6U2AbyyLqdfDt0SqscYUVxPmaqK7abfFAsT8GZeR1 e4Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687283742; x=1689875742; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tSF5soPOP8va7GnB3Njk98tlVSmV9eQIPMx/srLmS5E=; b=k/MiB4KPfU7mFHB4FDlnP2nGlIzEQLB3fCitVVVVzSiuzNgSeB9GzIU/WNFBHls0nH WU+CuzcUxybzNH5vsP5rnMDqwm5tQUVU0J5VTc8vcYgy1bYMRyeOJcRmq/icIPivezqo 8pmoqtTdX5fhJgRHi2fnQc1Qf5iBTGZDWala+tHoMFvt9sUBOoTG5xfcrmt2FcaQBz9w fYotO/smJvupZfVqz3adwTBUgOaq34uzv1DYbRPZL6OrEfuOOdpRaCaY29E8ru0rjiBy osSzWU2jmyZgOkLaBxJcX7RQJRqCpG0X7U7STyFHOkoi0qSN+zRDURglgmyWHSREKAdW zq9Q== X-Gm-Message-State: AC+VfDyo6nNXopMntHUiORhseA1LA5VwvNwdaeF+d37zzVoQRGcjUjho kXMb6Mod0ijeXpAy0xorfYCMCzhxboqYVnVkT6KM65RNoT0= X-Google-Smtp-Source: ACHHUZ48hBYbz02cVWsSJhI79fexUigs6DjcK13VLgPBZ32kqOZ/B6XvnyOrd77rmU3dMujBURYO0huClUx6xkrcG2E= X-Received: by 2002:a25:ae83:0:b0:bac:f4c6:d956 with SMTP id b3-20020a25ae83000000b00bacf4c6d956mr11287626ybj.47.1687283742022; Tue, 20 Jun 2023 10:55:42 -0700 (PDT) MIME-Version: 1.0 References: <20230614230128.199724bd@kernel.org> <8e9e2908-c0da-49ec-86ef-b20fb3bd71c3@lunn.ch> <20230615190252.4e010230@kernel.org> <20230616.220220.1985070935510060172.ubuntu@gmail.com> <20230616114006.3a2a09e5@kernel.org> <66dcc87e-e03f-1043-c91d-25d6fa7130a1@ryhl.io> <20230616121041.4010f51b@kernel.org> <053cb4c3-aab1-23b3-56e3-4f1741e69404@ryhl.io> <7dbf3c85-02ca-4c9b-b40d-adcdb85305dd@lunn.ch> <20230620084749.597f10b3@kernel.org> <809bb749-365f-af06-c575-0c4b1a219035@ryhl.io> In-Reply-To: From: Miguel Ojeda Date: Tue, 20 Jun 2023 19:55:30 +0200 Message-ID: Subject: Re: [PATCH 0/5] Rust abstractions for network device drivers To: Alice Ryhl , Gary Guo Cc: Jakub Kicinski , Andrew Lunn , FUJITA Tomonori , netdev@vger.kernel.org, rust-for-linux@vger.kernel.org, aliceryhl@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: rust-for-linux@vger.kernel.org On Tue, Jun 20, 2023 at 7:44=E2=80=AFPM Miguel Ojeda wrote: > > Yeah, and we could use `build_assert!(false);` to ensure we don't ever > call it (by users, or by the the custom destructor methods) -- it i.e. `build_assert!` is a similar trick we have to produce a linker error like Alice suggested. It was "nicely packaged" by Gary a while ago :) Actually, it should be `build_error!("Normal destructor should never be called");` -- same thing (I just forgot we had that one). Cheers, Miguel