Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp626530rdb; Tue, 23 Jan 2024 09:35:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFv9R31H2McenLyBTMe4OzSyMIAwgo7vYOQxGvG8rWDqaCiBGEJc86Pi6qBrGdP5jXj/Qd/ X-Received: by 2002:a62:cdc6:0:b0:6dd:873c:1fd0 with SMTP id o189-20020a62cdc6000000b006dd873c1fd0mr197590pfg.0.1706031344427; Tue, 23 Jan 2024 09:35:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706031344; cv=pass; d=google.com; s=arc-20160816; b=Qyxl74sVw1rXZtjDNnAS6Zx+jUEklUlOw3SvM8i2fJ6GTI8mK2a04xn20g4MdNPF+B pggtGB/MjXbgTJdRis7SR9l+8jiAU/pSw0LnVKjg0U973ckbRJ62JovJyvWqOkhX016l y6vRlQOit2COf8+AtNIPUMOMCdd7qPPsDwMt6Y0aOqEKIwnJWJEhcCfm2AzAKywmw7FZ 5j3mWlguzMbBVmamT95hs19FQwpT6gWjK0wKo9S2K9BBORL3dsJ63nG2LEKT5hNIhti+ 9Z5vR8ITu05w4ZCIjsXooJTg/W3hYWs1x1Hy6zqvPQhq8SbRVQl+h0dVD7Sf9BWH/V3W nYnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=jQs7fGJdWnlx4B7KYsa9czsKMESCKI+vjorr+zCUCwY=; fh=BftBq2Ne7b3nwEL/3woVXwgJZZtPhaDK7dJnuLuxbeU=; b=FkVXv9HMx7R7MhD1U2ERFpxlk7hVVS6ltFy2djh6UOxSYvjbfUdPEKL2FIqW8QXQcb mbIDcxLrQ9R9aDzrJkmO5A15eUEqekdzeCuSKgW7AHE5RSX5rHs6s91hF4mIKizCX1eN 4d4kLPPt8yo/BSI+cx7THH1Zspk+Gx29R02s3dthS8KaV8c9IR3pNysBCJnkEKavLEPQ wFFHMBWcU7LxzPXRPuNSs4XjtRB5JTXKz3luulVKVZycqFTpyeEpXJx8dxPxEXYP8q/d cDV+7J+qfcibdQjHYI1CnuomgvP5/a+YWTjSjZq4M8DRNvkliNrtNJF8OD67138sUXrI LY6Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HdOlcLOy; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-35787-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35787-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h14-20020a63120e000000b005cdba90861fsi10140879pgl.137.2024.01.23.09.35.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 09:35:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35787-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HdOlcLOy; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-35787-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35787-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4F673291FEA for ; Tue, 23 Jan 2024 17:35:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE47680044; Tue, 23 Jan 2024 17:35:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HdOlcLOy" Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2A777FBA1; Tue, 23 Jan 2024 17:35:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706031334; cv=none; b=cKU3ttc8KcJoGQbFb5M/DwCd4J20pS44ktHLvnG6bkBFJ4MX0y6DjPh2iy0TvuTQIKchnKHR6Qh/sQnwpwdjUPD+GvrXFAL0cYKZAWPmyyM2CEYvYxU5P1HXXX09E3aGj9wlHDvTXH74Y27bk4NO99krH56Hn0l1CoDrQTe/RDg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706031334; c=relaxed/simple; bh=jQs7fGJdWnlx4B7KYsa9czsKMESCKI+vjorr+zCUCwY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BOeBcR+JdbKBjzl24qf3MswRZey1Cy1xaAzF6wpDMvuWC6IM4Ds6pz9f2N5+hkOCV4/F3LswJG04pvWA0TDWTqR2vezZJqzBVy/g/LwfIVzEOMlA2bZaEaXjGYvvWZJwSjhDMW7SBYA0CRaySWe31MjknTMnLY7nfHOKQeVltmQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HdOlcLOy; arc=none smtp.client-ip=209.85.128.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-5ffa694d8e5so31778897b3.0; Tue, 23 Jan 2024 09:35:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706031332; x=1706636132; 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=jQs7fGJdWnlx4B7KYsa9czsKMESCKI+vjorr+zCUCwY=; b=HdOlcLOysbpO4hVEJaD/Ayzdmu5PoUUluRy33+I+ts7yIoLqMJ53XpgZsKfFHIopOh dSvZukvchfqBlxmDbfNvWLEpLoA7XB1pzMneItj+ZokHbnIho1Ds7ICVtmGaB3HisAeu 36MOF2wIOc6U3mYbhxbowjQiQHQMs8aIM30IWFuNddU8C/UCgxXxDq15BEtLSkw8eRNT g9osPuFrpLSC5Lh/tpHrI4iesY8wX+q5PVuLZDyAkza/qRtC2GvHnNBwaU/9M6Z9Y6EP Nd4R2E2GUhwUzPqaUGReevmWGdNSRZ2iinJLYAcuG34g5PpBPS01v7aKyi965r6djeic FjXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706031332; x=1706636132; 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=jQs7fGJdWnlx4B7KYsa9czsKMESCKI+vjorr+zCUCwY=; b=HmnUfP6YL1OPtE4sy2eHfJppykNX5/JMVS7BAeIBrDrVEo7sfpmzy/4pyxcgOu/IeK v65xfmX/D+qHf06zSgxfwDSl+aEhe8GgwLdMUqBksU/J0GxfxFFTvLf3iYmrpLJxPRds UY8dP4G1s65djt99uzFY2Sz62pIoBYRMkmT5m6bAjsDEKioZbwxd+4GhFIIXNqCM4ZcT mw+oAZEhsK5GwIq3moWZZ997G5Xm1mUD5AP7xfJCtCuYD4sC5H7gypWL8IbcqIFZYY0v CNrXqd1KVnySZi2RuvyV91oRnmPpCNI/hJYY610GAXbLJ5vWyEOY/biwyZgJBXBnp98q +DWA== X-Gm-Message-State: AOJu0Yx3Tb3lY4PDk/z/JaFqfATT2/81XdBp01EjSRO9U7SfraPbqG+o PC9N71l50m4HGkkqVXf4dHQS3LlGwyHiSxngb5L6IhmKKKj2ubH/h5EuOr1ZYK55gQjWcV/ypjK C5UIuPbEgJljlgB21MprKyZ5v7hE= X-Received: by 2002:a81:a54b:0:b0:5ff:890f:b082 with SMTP id v11-20020a81a54b000000b005ff890fb082mr4956311ywg.2.1706031331580; Tue, 23 Jan 2024 09:35:31 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240122184608.11863-1-dakr@redhat.com> In-Reply-To: From: Miguel Ojeda Date: Tue, 23 Jan 2024 18:35:20 +0100 Message-ID: Subject: Re: [PATCH] rust: str: add to_ascii_{upper,lower}case() to CString To: Danilo Krummrich Cc: ojeda@kernel.org, alex.gaynor@gmail.com, wedsonaf@gmail.com, boqun.feng@gmail.com, gary@garyguo.net, bjorn3_gh@protonmail.com, benno.lossin@proton.me, a.hindborg@samsung.com, aliceryhl@google.com, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 22, 2024 at 11:16=E2=80=AFPM Danilo Krummrich = wrote: > > If preferred, I can add this to the commit message. Ah, yeah, I meant in the commit message. Thanks! > Mimic, as in copy them over (to the extent they actually apply)? Yeah -- well, if you think they are better (sometimes they may be, i.e. I typically mention it when we have something close to the standard library as a potential source for inspiration). > Sure, I'm fine adding them as well. Not sure we'll need them for Nova tho= ugh. Up to you -- I think either way would be fine, i.e. I would say it is reasonable to think the others would be useful if these already have a user (similarly, say, not adding `uppercase` because we only have a `lowercase` use so far sounds a bit too strict I guess). In fact, in the Zulip use case you showed, you were using the new-object one rather than the in-place, no? Or that changed? Cheers, Miguel