Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2093314rdb; Mon, 9 Oct 2023 12:15:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVpAv0KhY+08tw4Qdsll3aXc/jU1H/4ZExPpMVh8A/Vq+udPsAYMr8wJSEA0gMIXvyyYZa X-Received: by 2002:a17:90b:38cb:b0:274:729a:bcd9 with SMTP id nn11-20020a17090b38cb00b00274729abcd9mr13781256pjb.43.1696878905247; Mon, 09 Oct 2023 12:15:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696878905; cv=none; d=google.com; s=arc-20160816; b=PUhMDEdZKARCZOtsHfTCQEXLzfWZ/n5NQSeuBuKlM762lpU4BS5GECdRT0DA+jB9cx jG9LCGEjSCziaT8g0IKEMO4PBnnDQS+D2AgUdEj0k357OV1EjMtMrJDepYTaR1AlO7iv pLJqX99vjGU1+iUtPr7EeHsAeyJTPefBQ+rw85j1hXt4P2Ty5CM0Zt/t2QvFnl4GThn8 gT+eaDxn+tJftkVjGlH1RZdTIECO1b0b6I3RtNO+VQRkyjXIV8dOL/ufeETu2LRUznuD H7/ht4fTMxqcy663Si9JOF0i9Od0ffoxTVT8KxGgs5VocrWJy/QaFSx5/hB7hWogSr3w 4vAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=qJkxWpfY6BylSbHsECCWxvdWvw5Xy177dBQc6H0SaVM=; fh=ooMNXQcMpimYb58cOZ94xKEd6pszgXNoQbTL4AC6WzI=; b=oJB5uXqxR6FDzP6I2H8+agCUVYrTVc8wkPLdFdhm57TA2kJFPYm1ywzzWcIEHTq13o tqfkHSjOULY6/rFWvlCLyMT3bFpwpC4z1BZLvJIrH4+JviHf3bznEKMdq4HOSvN5y485 25OjEl8dV5Jj3LUQrN4SeiBjVUCTWHozXHe9sluwL1RMNDAet/rPcZRL8f8pCdHKK92I ALvJCjgGTxbCwnaTrE8lTbmhlWdngiVbDkO3yp9KEd/1gWrhQg2rrxbDUVpF3qMRnU1Z NavwMyqo16kGUCT+gUap5dIw+uGKKKBhKDJciBeyYJZYktxFoNy1PmMAS0rfHn24wuTn 1uxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=hXWoJyQL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id c7-20020a17090abf0700b0027760c30acfsi10144290pjs.4.2023.10.09.12.15.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 12:15:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=hXWoJyQL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5BDEE8065E1C; Mon, 9 Oct 2023 12:15:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378183AbjJITOy (ORCPT + 99 others); Mon, 9 Oct 2023 15:14:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346660AbjJITOw (ORCPT ); Mon, 9 Oct 2023 15:14:52 -0400 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D43F8E for ; Mon, 9 Oct 2023 12:14:49 -0700 (PDT) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-5a2379a8b69so59610347b3.2 for ; Mon, 09 Oct 2023 12:14:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; t=1696878888; x=1697483688; darn=vger.kernel.org; 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=qJkxWpfY6BylSbHsECCWxvdWvw5Xy177dBQc6H0SaVM=; b=hXWoJyQLgoTUKPLXUo0OsDP6QlHu+vpi6ZjXxufvB4kQ0fcr2pH1yOq+jbv0/u1Oyz b3910Jb5UJoKX7LExSy0W6hOT0JggAFRON3VcZSS+IZzOTH86I+LA0y27PR4DHiglOZM rLX24z9JaBfPsV9c0NrlYssTzYTn23F2mQQXQjrnQMxrHjk/ylh/aGK23qk9ybyaD5tr CbvqwVWN9HhQr2X1HXBhDkfl4fkjx2xzTWP73ld95iJadqtXzxHDL4i2ES9CYdnC5K8S 2fY9dGy79C8KbMzwsS6cseWJwNmqz/OJEy23WHNCYG7Uc5ECvWuMDcpkyCsyYKzNf/C8 Zjvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696878888; x=1697483688; 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=qJkxWpfY6BylSbHsECCWxvdWvw5Xy177dBQc6H0SaVM=; b=d78zF6ZwFZnKXLqyMyCXWRemWdCtCbAtauwVzn3psMfAj8b6fUXKzYWHaTwvVmRF2a 2HV023etGaTyeLvZ8gvYvoKbq6l6ntbq8bVz/21v4qX5aA9jMhqtB+wYHCz91ehPnQ42 T6PaIRQmuZjgZbpo0kz/EYgDHA5aAw4QgAbg43tlhZ8bVu2NNKboSF+4l+9jdhzp3GcU vXTiz7QvceX2It96+dNePDEYFhet7cOsRfOnAqlpMEqs0YE5vbH3wvIP1uL5f9nIQaW5 Bt5DtReIWCcZ0DNJSeWrgJsrmjc9edrqNAY3dinqIYLV8nNCOOjMpH8U4s/jbGOVcO4p zc/A== X-Gm-Message-State: AOJu0YzFjJbYILfv0JxP54Lb/Vp6ajvlUiGzvy3PsExVLKZpZ/WI1m5K 9J7kceecjPiEFpQ9ZPXVpO5LO/hd+ys9KEaKO33JiQ== X-Received: by 2002:a81:9c14:0:b0:598:5bb5:1801 with SMTP id m20-20020a819c14000000b005985bb51801mr14787290ywa.50.1696878888662; Mon, 09 Oct 2023 12:14:48 -0700 (PDT) MIME-Version: 1.0 References: <20231008094816.320424-1-tmgross@umich.edu> <8a6a2133-92a0-4478-8f3a-e1c7ba38ff18@gmail.com> In-Reply-To: From: Trevor Gross Date: Mon, 9 Oct 2023 15:14:37 -0400 Message-ID: Subject: Re: [PATCH] rust: macros: update 'paste!' macro to accept string literals To: Miguel Ojeda Cc: Martin Rodriguez Reboredo , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, FUJITA Tomonori Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 09 Oct 2023 12:15:02 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 9, 2023 at 6:49=E2=80=AFAM Miguel Ojeda wrote: > > On Mon, Oct 9, 2023 at 5:04=E2=80=AFAM Trevor Gross w= rote: > > > > Good point, thanks! I'll add that if there is a v2 (or Miguel can > > probably add it if not) > > Yes, I add them myself when I notice they are missing (e.g. most > recently 2 of the ones in `rust-fixes`), but patches should definitely > come with the `Fixes: ` tag themselves, i.e. it should be the > exceptional case. > > However, is this actually a fix? The title and commit message make it > sound like it is a new feature rather than a fix. And the docs of the > macro says literals are not supported, right? I suppose it is something that augments current behavior and "fixes" the linked use case by making it possible. I am not sure what qualifies as a fix. > So this probably needs to update those docs too (and ideally add an > example with the newly supported construct too). Or am I > misunderstanding? > > Cheers, > Miguel I will update the documentation, thanks for the catch.