We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
toolchain
resolve_local_toolchain()
1 parent 8972c87 commit 4a3826eCopy full SHA for 4a3826e
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