Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5822023iob; Tue, 10 May 2022 04:39:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkTPDw5sHrWgljkQk6tv9Gm5rVMBH05WUdq3uZ8Ks/2YEu65e004Q7lorGb4dVf3Mzs2SL X-Received: by 2002:a17:903:2287:b0:15e:99b4:9b0a with SMTP id b7-20020a170903228700b0015e99b49b0amr20401832plh.43.1652182748540; Tue, 10 May 2022 04:39:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652182748; cv=none; d=google.com; s=arc-20160816; b=M5uuIVoIQl2/cObGqU0WcGdMNmmhAnVxD4A2KHjN0yc10d4rPeFilHaNE9AdNEfbVg uPvksx/kmTGJVPJcgC+lIO+mVGw20y6e5EHyuH9HO8w3Q7RHDrgGp2NxTsMM1HIvyEIm 2UOJeEA3vS7jGQuAFthYuI/L3hXW5pwrsgCC0sR/5BJa1Xi4W4O7n3NwgE1kUeftfZrA ySIw/1kvk2VUY+j46PXBjxBi0IX9k5bNUv/379ErKNQp6wJ3Cv1FYaHNVKA+0S7v/GSf 9XMJWUh7IoSf9bV1FEZPwrLUCdb/7D1dnRMxXGtN0a1IkSBW+DKLqqiU0byy9SQHXFyw cQSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=UqqeRMS++PzTUoENYIQlHrxmXYanHi9usrhTSkqWRBY=; b=ti/6lW3SOYO2neSXw9ZXqc+zO8LMIdqIkj4X+AhIjPm9j+YjM6Qpp5IWqXbrRlfT2L z2qqQUylv/Y+oy54JNYzJa/Yy2JT7z6usF2LP160c+Fgi/HnagWC4K3zN3ll9dK4aVnO dHt7IojKUoYSMBEyBFvcY9+RhS1NRNvHVMnP+psalg3JJIiqoW2u5UEwacM/EnfpZfsE qFlXOZFwG0Zodyut3sPMlz5xL4yXUiSr6y2KzdoBMtZB2NAawgeZfOB7pj15i1AIQcRZ Y/6KwuVe6qHNIEZ/bnooQ1rJnP8z+vpeJjQHohqRJ6fathrc+t3NBUxnfRnfualfQr8n blww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joshtriplett.org header.s=fm3 header.b=Fu5cIkJE; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=UNhVoXCI; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b67-20020a633446000000b003c14ba0c566si18630236pga.820.2022.05.10.04.38.53; Tue, 10 May 2022 04:39:08 -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=@joshtriplett.org header.s=fm3 header.b=Fu5cIkJE; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=UNhVoXCI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236875AbiEJF6U (ORCPT + 99 others); Tue, 10 May 2022 01:58:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233186AbiEJF5s (ORCPT ); Tue, 10 May 2022 01:57:48 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BBC5224A6D; Mon, 9 May 2022 22:53:49 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CBB235C006F; Tue, 10 May 2022 01:53:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 10 May 2022 01:53:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= joshtriplett.org; h=cc:cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm3; t=1652162025; x=1652248425; bh=UqqeRMS++PzTUoENYIQlHrxmX YanHi9usrhTSkqWRBY=; b=Fu5cIkJEtzgBvV4/XqoZGzxI90Syy2eSStFQG1Bmq Qzq44qis4oBKK2+44MGfoT6zBG6iuJojCb9ybGYa/X0Fd7wSElE4XRd10wKPRs7e hgcvXNoNSmtzgJKAfbBtMElDOT90E7i8ZaxIBTB0BJ1p1OxaWTGpWnyoXfWfdoig v5JwOom18HqfihBQaBs07kKWXJsqznNkms+5qGr7lnnjt0Rv4WKqZY1ALCPE3qI/ yGXKoUuwtYgsNnGnUAMtKLOleMEPe5UeKpffnO6dIWL591ktA3+OlrdTuJhZXp0m k+3mPuIPvMCyuv1IQYUQVqTlz2httcefLpnfpFxWDGPcQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1652162025; x=1652248425; bh=UqqeRMS++PzTU oENYIQlHrxmXYanHi9usrhTSkqWRBY=; b=UNhVoXCIlaYSssxxJzv6+gTP356lr Csm5VdK7uurne8gjADzemSPIgvtaCwsX1FnCjOEp9wJJ01+pvQTyzw6swj9hBm5e cy5Wag2OIi7CDRmQiZloVmbYMGYbyGI4ybtqBdLjiw7P52vN2ceC4IIoNfEox06K AhtG2y/AP8xJ5eceuv8OMO5mXYknc5JH/reD5GY/jIbO6SXIChJNM4hnszow95Mu A3es01Y1zA/qbaWa+fJ3s7YGEp8fsRi6u0PRpyQE13rLgKNQchtx8P51KqXV+mfc n01FF91bK6IShsyjj6LUjWwc9svBLo7MoM7Vao+pwMnW47TmZyS9aZDNw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgedtgddutddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggugfgjsehtkeertddttdejnecuhfhrohhmpeflohhs hhcuvfhrihhplhgvthhtuceojhhoshhhsehjohhshhhtrhhiphhlvghtthdrohhrgheqne cuggftrfgrthhtvghrnhepgeeihfevvdeklefggfejjeeugfduudeggffhjeehkeegheel tddujeffjeekheefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepjhhoshhhsehjohhshhhtrhhiphhlvghtthdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 10 May 2022 01:53:42 -0400 (EDT) Date: Mon, 9 May 2022 22:53:41 -0700 From: Josh Triplett To: Gaelan Steele Cc: Jonathan Corbet , Miguel Ojeda , Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Jarkko Sakkinen , Alex Gaynor , Finn Behrens , Adam Bratschi-Kaye , Wedson Almeida Filho , Michael Ellerman , Sven Van Asbroeck , Wu XiangCheng , Gary Guo , Boris-Chengbiao Zhou , Yuki Okushi , Wei Liu , Daniel Xu , Julian Merkle , Masahiro Yamada , Michal Marek , Nick Desaulniers , linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH v6 18/23] docs: add Rust documentation Message-ID: References: <20220507052451.12890-1-ojeda@kernel.org> <20220507052451.12890-19-ojeda@kernel.org> <875ymecp6f.fsf@meer.lwn.net> <0716311E-FD5A-489A-A17D-C427C1A0EE4E@canishe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0716311E-FD5A-489A-A17D-C427C1A0EE4E@canishe.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, May 09, 2022 at 08:14:54PM -0700, Gaelan Steele wrote: > > > > On May 9, 2022, at 3:32 PM, Jonathan Corbet wrote: > > > >> +It is convenient to instruct editors/IDEs to format while typing, > >> +when saving or at commit time. However, if for some reason reformatting > >> +the entire kernel Rust sources is needed at some point, the following can be > >> +run:: > >> + > >> + make LLVM=1 rustfmt > > > > I will ask whether we want this, though. Why would anybody want to > > mass-reformat the entire body of kernel code? This seems like something > > that would generate an endless stream of "helpful" patches and a lot of > > churn. > > That would only happen if the code diverged from rustfmt’s output in the > first place. Generally, in Rust projects, the source tree is always kept > formatted with rustfmt - so running `make LLVM=1 rustfmt` would only > ever touch code that you’d just changed. Exactly. This is convenient for the same reason doing a project-wide `cargo fmt` is useful in Rust projects: you can do all your editing, then format your code before committing.