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 967D0C6FD20 for ; Tue, 7 Mar 2023 17:19:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230509AbjCGRTb (ORCPT ); Tue, 7 Mar 2023 12:19:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbjCGRSy (ORCPT ); Tue, 7 Mar 2023 12:18:54 -0500 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A32397FDE; Tue, 7 Mar 2023 09:14:30 -0800 (PST) Received: by mail-yb1-xb32.google.com with SMTP id i6so12105620ybu.8; Tue, 07 Mar 2023 09:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678209269; 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=WTrTZWjbM4a6litehFcieAJGkg4vP1lCAY7R+xoy8GI=; b=R3wq+PqiYUg7FMDVlTRSpElaxjx1KItGfhOaSUSYpdrFuV90h3kUCur/ZQseJMkTAC 6au1Oxe0YRigF6GgFu3MSVSKK6n/PxVbp3ta7eBEg6Xr51MSyboCEEBfgqvzJtxZHe/a RJ4f8hIhSvAPCWup0TRaq4h5J8SMpSmZSyaakvlZa9yPKZ9YuaEEZu7XyEHVVqdkDJZB q6Wf67JLxTI4IUPaC6dsVRpVobOBp2XpCdzn7VSAffNh5A9+3+BlccW989bCt9tsEXJB vh3sDJw2pURoBwWj3AENuWrHklcfIjqWtVcdA1WmH+KxjSRBNWP62p6mOSG6lRVG4gO7 w3ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678209269; 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=WTrTZWjbM4a6litehFcieAJGkg4vP1lCAY7R+xoy8GI=; b=WmEVnIqxAWtGSEZgBpaKbP/Sfa0/VBt77z/q/OpJKrJ6SCXghrYV6A8uzcpJ7VrWsl fL3wacR8vSOQjG8JAjbnnaNmxfpsVBOBnTgnbLWopeJr0++/ZifCYShZU1jgKvMIfz+E mBRUKv3c7gHb80y0fl69yp529jmc6Yska49ssjy9VSK75CNDSV/Vjt23+Wmzm97ip8wl qKX1SXFPZDlFb02jMNRQG4nSqjlTDt5aBYp6qCC34uwYWTvQ6Kpgwwq4WWPzDe09rRDq wJ4Pl2vj+Cl/XzQHDywY4F15xZswh7+5y0PepkSWyFUBdQBAiOFAnRLxJssuwHF0YROp WFEA== X-Gm-Message-State: AO0yUKURzBClHglAU1RrNoOPaOS/B6CqM9PqguiyXu41xmqbcL61eGZP AJhGQagNtLSddtytsM3qQ1ByV2I7wbQg55pK1SufHNxU3mY= X-Google-Smtp-Source: AK7set98cGCEtS7wDsG/LKdakRlaKHa+jcpsORwmNuPrzJivRYwPHMHEMb1yC323aCkOqryrOBiuGk9mCRtmu/6qpqo= X-Received: by 2002:a05:6902:4d1:b0:8dd:4f2c:ede4 with SMTP id v17-20020a05690204d100b008dd4f2cede4mr9177957ybs.2.1678209269085; Tue, 07 Mar 2023 09:14:29 -0800 (PST) MIME-Version: 1.0 References: <20230307120736.75492-1-nmi@metaspace.dk> <20230307163204.44278987.gary@garyguo.net> In-Reply-To: <20230307163204.44278987.gary@garyguo.net> From: Miguel Ojeda Date: Tue, 7 Mar 2023 18:14:18 +0100 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 7, 2023 at 5:32=E2=80=AFPM Gary Guo wrote: > > I personally think mod.rs makes it easier for me to find files because > all related stuff are contained inside a single directory, especially > the parent modules and submodules are closed related. > > That's just personal opinion though. 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 th= e generic `mod.rs` name. It makes it easier to open files when using fuzz= y finders like `fzf` once names are unique. Cheers, Miguel