Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5887728rwb; Mon, 14 Nov 2022 10:52:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf5NsHUV0AUMccPBGZmX8ofFj/jjo1qeSFctD28hh/Ibit+XwLF1QOzb2cvRC0xosQlESUsS X-Received: by 2002:a63:a504:0:b0:456:4f9a:fbb6 with SMTP id n4-20020a63a504000000b004564f9afbb6mr12909846pgf.318.1668451945074; Mon, 14 Nov 2022 10:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668451945; cv=none; d=google.com; s=arc-20160816; b=V09tL2ZlleFnXgx1/eb+/OIG2NJPUhUt5GpITUBdejrgk4nLkJmoFBpArfw0a3KVRH oOAGOMxU6t7RfrHcd9lZL2G26udSYdeoapEui74wR19LjXAC4H0Vg9SKbkOzHTWXeymI NlOSNXhZrPi+T8kz23qCJVZ4EDF15xx22PAKt/k4x/ytQrqN7E1eWqUHXkrJAazqkFCW MjWbs/zsbKmAaLv7EYXL5SUZv33+KlV5kxrndzsqLqrFsG0a+7BrlYBcv2/ESZ1YOqgy WlWJiCD6z+JKCNItkEIWupGQi530jrCz2ft4kXNhsP5XtHkTo6EXZS7J82aYYTyLdY1f 4c4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=J7Cbl6yOGS5glTesfz4JpnFGgPjdFsy/hI/Fu3TtNcA=; b=LL49R82dLHjXcQtu2FUJ7ftXCbR3lK1Qa1zEtCA7QQ1LWC6dAkV7j7aLiorfbADvmJ qXCqZuqa3ucQdNE1D4MMTYPxajKbX/+JI5cc4Kw/bDJS4UcPaNHu9rD+TRQIsmV1u6KU IcGGJqD1CT2QFnWBkhwyBJz3X/E9nwjf2FbG6HVGMDD/dNB6qrqOZ0Sbf+C2LAuGu9qi dhN8dhfLkoarzaixIQpG7kNrynO/Y/v3FnqbmQa11jPhCcFtiDaWZeYaCEh8ki+vdXJ/ D6hU55scOiZn4PIjS5bFAOJkJNZfrTmMJEnCNlcTi9uoPHtmyisl50kDVPJpEcLbln3D gveg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=drX29G1u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jw23-20020a170903279700b00186c9d17afbsi9677251plb.293.2022.11.14.10.52.13; Mon, 14 Nov 2022 10:52:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=drX29G1u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236804AbiKNS3C (ORCPT + 88 others); Mon, 14 Nov 2022 13:29:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236514AbiKNS3A (ORCPT ); Mon, 14 Nov 2022 13:29:00 -0500 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A8781FCF6; Mon, 14 Nov 2022 10:28:59 -0800 (PST) Received: by mail-yb1-xb31.google.com with SMTP id z192so14546521yba.0; Mon, 14 Nov 2022 10:28:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=J7Cbl6yOGS5glTesfz4JpnFGgPjdFsy/hI/Fu3TtNcA=; b=drX29G1u9fMT9l6Hp7fcV2qNgmfPxuB59iVHntbMgsAzh0smdUEpBxZICkvBwf1FFf UNqfH5/yeOia6fW3ZDVfWdjj5T9hDST/nbTIZiSD2IRZzeYr0arXTPy+uXvzG8ZbLBVW 92wEpC//TcGJ6N+awQyc4zXJfMAeukg14QxIeluoluAbRVHQToCXLpVshkgTVv+G/ShF bpOGkvBpTzkExgO3abE2mr4NGZ9CNzospH7d52qv2z3YJ4PLWdV4i1dwsOTyLTA8EuQH K6aqECR+8Dw14+5Lm7NGwepqtapNT5qEuoVajz6zr8d2WFuh6KMK/nQDrH7OALhdCKGH OFAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=J7Cbl6yOGS5glTesfz4JpnFGgPjdFsy/hI/Fu3TtNcA=; b=c+yhOpsxRCAlynX1UzsfdDdGLQ4h6/A2oh8gTVdUuAns+RUnqaP4fJhNBB8n34Wvd2 v6FAEE6cxSzr1UTTL1PbZMdk7HJl9bDe0dSGaPxo4gMRTM0W+/crMBGkEqU27IyQdINL WWTt9K4eOfJKT1Gkc2GYoebIYQdj7FuZaS5H6PNTv6xO2zcnIZrHOGFcFl7jlF3d2OUE Wpfc1Rt1E2Ct26jCxzJOZa0UHOqWprB9LO7FKjgr8MFowbmvTOhU9AiFzpg/TpkkXqha FY6cmjd5cB49nMNxHrSg9RtRLE2EavmRAUVkvJILn1mK+BMBT7SjvP0xkZOfC6IgyCnj 39rA== X-Gm-Message-State: ANoB5pmRr+sqpU+orrzLPJ56+x9/WF6QU3S+hMY+qje5tTVKcuTrZaKe PITTMuHHKmwF3egzEe4f9x/yYfZkMPS05t7tFTz2ZpxjN3w= X-Received: by 2002:a25:41d7:0:b0:6cb:8949:fdbb with SMTP id o206-20020a2541d7000000b006cb8949fdbbmr13428033yba.328.1668450538671; Mon, 14 Nov 2022 10:28:58 -0800 (PST) MIME-Version: 1.0 References: <20221110164152.26136-1-ojeda@kernel.org> <20221110164152.26136-20-ojeda@kernel.org> <20221114143928.4dde6589@GaryWorkstation> In-Reply-To: <20221114143928.4dde6589@GaryWorkstation> From: Miguel Ojeda Date: Mon, 14 Nov 2022 19:28:47 +0100 Message-ID: Subject: Re: [PATCH v1 19/28] rust: str: add `c_str!` macro To: Gary Guo Cc: Miguel Ojeda , Wedson Almeida Filho , Alex Gaynor , Boqun Feng , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 14, 2022 at 3:39 PM Gary Guo wrote: > > I wrote this code when `const_panic` was not yet stable. Now we have > stable const panic this function could be removed. Indeed, we also took advantage of it in `static_assert!` when it got stabilized but not here. I will update it. Cheers, Miguel