From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="lkN/rZSP" Received: from mail-0301.mail-europe.com (mail-0301.mail-europe.com [188.165.51.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DB55CF for ; Mon, 11 Dec 2023 02:12:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1702289564; x=1702548764; bh=XMBWxQ9g09DUsP4VV2j3XbcbWqRWZl1DHB9M2r0XYWY=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=lkN/rZSPUtkVJcfviAZRm79S8Bhu7IwZMj2eshxKKa52qAXZdiai24g8K4YB2e0i/ loxzKVmh7JsqGKPwMo8Sdq96ZSJf835mOLOcdfTFerpM+qO2MG34Vg0QGJpoY3zssr ixKoX+J1XeM/YVYDNcqglPqR8PcrKcGAUTSedYiUsukTeHX2RH3omuFJ9/wELt0SMl 9axaSgALdPuQ85YVtn9UnNAZc+OmIuWA9OxKPNyxbOFqwG1K650O39VgLjXjtlnRCj Y2/zJFqYXgizkTRzUKcdpE3IJP1BFj8Q+71uIxt9C7SHx45CrcQ7mjB8FG7IL+6FNt aD0Txs2w97/zw== Date: Mon, 11 Dec 2023 10:12:37 +0000 To: Viresh Kumar , "Andreas Hindborg (Samsung)" From: Benno Lossin Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Alice Ryhl , Jonathan Corbet , Vincent Guittot , rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] docs: rust: Clarify that 'rustup override' applies to build directory Message-ID: In-Reply-To: <20231211082342.dkcnlamsyaqxaylg@vireshk-i7> References: <4738ad1c-eb54-4ad6-98c8-3852de3e8fc3@proton.me> <20231211064742.63l4cmvxe4uso5us@vireshk-i7> <87h6kpf9am.fsf@metaspace.dk> <20231211082342.dkcnlamsyaqxaylg@vireshk-i7> Feedback-ID: 71780778:user:proton Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 12/11/23 09:23, Viresh Kumar wrote: > On 11-12-23, 09:09, Andreas Hindborg (Samsung) wrote: >> >> Thanks for fixing this Viresh! >> >> Viresh Kumar writes: >> >>> diff --git a/Documentation/rust/quick-start.rst b/Documentation/rust/qu= ick-start.rst >>> index f382914f4191..dee787f92d26 100644 >>> --- a/Documentation/rust/quick-start.rst >>> +++ b/Documentation/rust/quick-start.rst >>> @@ -33,14 +33,17 @@ A particular version of the Rust compiler is requir= ed. Newer versions may or >>> may not work because, for the moment, the kernel depends on some unsta= ble >>> Rust features. >>> >>> -If ``rustup`` is being used, enter the checked out source code directo= ry >>> -and run:: >>> +If ``rustup`` is being used, enter the kernel build directory and run:= : >>> >>> rustup override set $(scripts/min-tool-version.sh rustc) >> >> How about just specifying the path here: >> >> rustup override set --path=3D $(scripts/min-tool-ver= sion.sh rustc) >=20 > Hmm, this sounds good too. In that case the above line can be changed to: >=20 > "If ``rustup`` is being used, run::" >=20 > Looks okay ? I think it should also mention that you do not need the `--path=3D`. It might be confusing for new users who do not know where the build directory is. It might also work to put both commands there (i.e. with `--path=3D` and without) and explaining what each of them do. --=20 Cheers, Benno