Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp117720rwl; Thu, 6 Apr 2023 15:54:58 -0700 (PDT) X-Google-Smtp-Source: AKy350aKUgullp+4FKfsn04QivNTQvLey+TFTj+SNbLFbAwx0w6ktHz3PDGh9ZsaB29Q+9CE/TAE X-Received: by 2002:aa7:de07:0:b0:501:d6c2:7439 with SMTP id h7-20020aa7de07000000b00501d6c27439mr931378edv.37.1680821698127; Thu, 06 Apr 2023 15:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680821698; cv=none; d=google.com; s=arc-20160816; b=lkd29dgntCIIcUnr4stWECFuVqHMxUArXynr0CbauhPuMDJ6poAzsBC+OIkrokYLmz QTHsmhC8AjXv5OhKQJvXTEkppeJA/FzCYLjrW+fKYV03tw30U5veztTxNewSUVnKY8LQ MEpNh3K1khCLGVrdSKxh0S8F00cDSiwmiH3OAEjyDB/aJTLznA6t+zzb9EZ2ODCKVaAN fKn5/vDAl1xqK7duuU5bvk09vJbezd9GtaJ3fYBZbm3OCLehPldqUGwNzhiCDhvWVat/ mXYvWIVYBeL62v6w5agjXTkVa7fjQO/nNeFZ4mQDXQRo2uKvAZdoAlyiaIlTyX9XBP9i bcPQ== 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=kGcJPZ80pNpeUNTdnfoI/M49khouK/uMZrIoh3EwTiA=; b=RI1EbjIGzcMN+5j3Mhd2SszBo9siPNqxC/jSN1J7ksw2offw4CJ5ynFJMedhclr0Xj aR40wIhvMOCXxQ67FE/xut/BDsDrbtiAGU+4zgGOSzw1j37FwarrnykDgj0mBJRnIWUd CvqK0Htt1tsED+NVm5xB4lxaWGIbJdcVDILoMdEUPgRwhVHxqkCeZ8+SoOs9il8JuB+D D77RtIhfa9jr9xXUcpoJKoqrRYhW6CyKf+DiGBFQ2HvNifNSKfZZnA5adH1pTYBYHm9G 6RXly75CgD5YzaekGL4b52o6QRaQM7ePihW4pEirrRfpzWs7gIetNHRCkEVZAjy9+YWI jUzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cQ8XPduU; 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 b12-20020a05640202cc00b004fc68e7a3d1si1740929edx.206.2023.04.06.15.54.07; Thu, 06 Apr 2023 15:54:58 -0700 (PDT) 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=cQ8XPduU; 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 S239104AbjDFWdl (ORCPT + 99 others); Thu, 6 Apr 2023 18:33:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjDFWdj (ORCPT ); Thu, 6 Apr 2023 18:33:39 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48AF98A7D; Thu, 6 Apr 2023 15:33:38 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id k17so47640142ybm.11; Thu, 06 Apr 2023 15:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680820417; x=1683412417; 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=kGcJPZ80pNpeUNTdnfoI/M49khouK/uMZrIoh3EwTiA=; b=cQ8XPduU6QaAZ2PlRtwZGLF1wFwk2u9b9BmTRVzAAS2hqQejAmOKoXM03nxFTl9ATZ nToeHuDH9/FCW1OP0X15HFLaRM68IQOzgx/y+wOc4dvfo0iMVnDMLfxt7OQSxDTTPjmI iYGHUhYmtlCV9MPQKgckz7alkg0O4WCjX0WHtvMGQckO5IIG6pdpCTqaRFBWk4YnsbV6 LrFxsOVCfZRUSNp54lqRZHnKsXR3bmAtOeITPaRE5K/ubqaC7qeLstappEzaCY8bLeRE ZpNGPN5YV8NMLXb+u4v037jT4Mp5hzjjdl27xyS5u9pjyKS1cBY5fJqrexeBE26llscX LrHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680820417; x=1683412417; 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=kGcJPZ80pNpeUNTdnfoI/M49khouK/uMZrIoh3EwTiA=; b=ajxQZ1bHg3/a/esSZE91YmZmq/0fqxv7jtarYS/bxGTxO4pyR1W9Rs3baZBls8e3ms pi/ozxkk8Ct4Hl8Mh6qVMPuPAS56A3Ct4iQBrVovxve1plAmMj5YKpQs8eTeEdYTiVgC IaranbFc1JvyLzBIE9jH06RYbWUyOsL8QB3w6bemsDob+0YLiQsypAfobzRtw8mWsgLd WaMobPtovZT92zHJTRAnDOWqFXgBE6ZuAzLPNZ1HQDQ36es9fOHItEiTnhLUJN0k+nSU 5vTcqMYHL/7VnlzuJypwNEHYTe2nSd2qDeKvqJug+wvkLSnm7iUAcEDFYKaEFxkVd6SA LBxg== X-Gm-Message-State: AAQBX9cuP+wuOynqyF5V2fDVJXHllZz4wt0aZtBFBcuJ9HirRCpxPZ2J VzOizCIpE3kG/rxRaYWNzQO2dKbvFFxZyZniccfKIPbr5Zc= X-Received: by 2002:a25:d4d1:0:b0:b80:2bf9:2f78 with SMTP id m200-20020a25d4d1000000b00b802bf92f78mr635138ybf.11.1680820417471; Thu, 06 Apr 2023 15:33:37 -0700 (PDT) MIME-Version: 1.0 References: <20230307120736.75492-1-nmi@metaspace.dk> <20230307163204.44278987.gary@garyguo.net> In-Reply-To: From: Miguel Ojeda Date: Fri, 7 Apr 2023 00:33:26 +0200 Message-ID: Subject: Re: [PATCH] scripts: rust-analyzer: Skip crate module directories To: Gary Guo , Wedson Almeida Filho Cc: Asahi Lina , Andreas Hindborg , rust-for-linux@vger.kernel.org, Andreas Hindborg , Miguel Ojeda , Alex Gaynor , Boqun Feng , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , open list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Tue, Mar 7, 2023 at 6:14=E2=80=AFPM Miguel Ojeda wrote: > > I don't have a strong opinion either way -- this was originally done > to improve fuzzy searching, see commit 829c2df153d7 ("rust: move `net` > and `sync` modules to uniquely-named files") upstream: > > This is so that each file in the module has a unique name instead of = the > generic `mod.rs` name. It makes it easier to open files when using fu= zzy > finders like `fzf` once names are unique. Apparently the "encouraged" way is using `name.rs`: https://doc.rust-lang.org/stable/reference/items/modules.html#module-so= urce-filenames https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html#no-= more-modrs Another argument I saw for `name.rs` is that one can easily the name of the file in editor's tabs/titles, and some of the editors can add part of the path to disambiguate, which may take more space in the UI. Cheers, Miguel