Sometimes we have a toolchain file but want to override it in some specific cases. For example, in a current project, we want to use nightly rustfmt, so our linter step uses nightly Rust even though our main build uses stable Rust.
This PR changes (and documents) the behaviour of the action in the case in which both a toolchain file and a toolchain input are present, preferring the toolchain input.
Sometimes we have a toolchain file but want to override it in some specific cases. For example, in a current project, we want to use nightly
rustfmt
, so our linter step uses nightly Rust even though our main build uses stable Rust.This PR changes (and documents) the behaviour of the action in the case in which both a toolchain file and a
toolchain
input are present, preferring thetoolchain
input.