We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
toolchain
resolve_local_toolchain()
1 parent 42a5e00 commit 18f4c6cCopy full SHA for 18f4c6c
src/config.rs
@@ -729,16 +729,15 @@ impl<'a> Cfg<'a> {
729
let local = name
730
.map(|name| name.resolve(&self.get_default_host_triple()?))
731
.transpose()?;
732
-
733
- Ok(match local {
734
- Some(tc) => Toolchain::new(self, tc)?,
735
- None => Toolchain::new(
736
- self,
+ let toolchain = match local {
+ Some(tc) => tc,
+ None => {
737
self.find_active_toolchain()?
738
.ok_or_else(|| no_toolchain_error(self.process))?
739
- .0,
740
- )?,
741
- })
+ .0
+ }
+ };
+ Ok(Toolchain::new(self, toolchain)?)
742
}
743
744
#[tracing::instrument(level = "trace", skip_all)]
0 commit comments