"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/bootstrap/install.rs" between
rustc-1.45.0-src.tar.xz and rustc-1.45.2-src.tar.xz

About: Rust is a systems programming language that runs "blazingly fast, prevents nearly all segfaults, and guarantees thread safety" (developed by Mozilla).

install.rs  (rustc-1.45.0-src.tar.xz):install.rs  (rustc-1.45.2-src.tar.xz)
skipping to change at line 156 skipping to change at line 156
pub compiler: Compiler, pub compiler: Compiler,
pub target: Interned<String>, pub target: Interned<String>,
} }
impl $name { impl $name {
#[allow(dead_code)] #[allow(dead_code)]
fn should_build(config: &Config) -> bool { fn should_build(config: &Config) -> bool {
config.extended && config.tools.as_ref() config.extended && config.tools.as_ref()
.map_or(true, |t| t.contains($path)) .map_or(true, |t| t.contains($path))
} }
#[allow(dead_code)]
fn should_install(builder: &Builder<'_>) -> bool {
builder.config.tools.as_ref().map_or(false, |t| t.contains($path
))
}
} }
impl Step for $name { impl Step for $name {
type Output = (); type Output = ();
const DEFAULT: bool = true; const DEFAULT: bool = true;
const ONLY_HOSTS: bool = $only_hosts; const ONLY_HOSTS: bool = $only_hosts;
$(const $c: bool = true;)* $(const $c: bool = true;)*
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
let $_config = &run.builder.config; let $_config = &run.builder.config;
skipping to change at line 207 skipping to change at line 202
target: *target target: *target
}); });
install_std(builder, self.compiler.stage, *target); install_std(builder, self.compiler.stage, *target);
} }
}; };
Cargo, "cargo", Self::should_build(_config), only_hosts: true, { Cargo, "cargo", Self::should_build(_config), only_hosts: true, {
builder.ensure(dist::Cargo { compiler: self.compiler, target: self.targe t }); builder.ensure(dist::Cargo { compiler: self.compiler, target: self.targe t });
install_cargo(builder, self.compiler.stage, self.target); install_cargo(builder, self.compiler.stage, self.target);
}; };
Rls, "rls", Self::should_build(_config), only_hosts: true, { Rls, "rls", Self::should_build(_config), only_hosts: true, {
if builder.ensure(dist::Rls { compiler: self.compiler, target: self.targ if builder.ensure(dist::Rls { compiler: self.compiler, target: self.targ
et }).is_some() || et }).is_some() {
Self::should_install(builder) {
install_rls(builder, self.compiler.stage, self.target); install_rls(builder, self.compiler.stage, self.target);
} else { } else {
builder.info( builder.info(
&format!("skipping Install RLS stage{} ({})", self.compiler.stag e, self.target), &format!("skipping Install RLS stage{} ({})", self.compiler.stag e, self.target),
); );
} }
}; };
Clippy, "clippy", Self::should_build(_config), only_hosts: true, { Clippy, "clippy", Self::should_build(_config), only_hosts: true, {
builder.ensure(dist::Clippy { compiler: self.compiler, target: self.targ et }); builder.ensure(dist::Clippy { compiler: self.compiler, target: self.targ et });
if Self::should_install(builder) { install_clippy(builder, self.compiler.stage, self.target);
install_clippy(builder, self.compiler.stage, self.target);
} else {
builder.info(
&format!("skipping Install clippy stage{} ({})", self.compiler.s
tage, self.target),
);
}
}; };
Miri, "miri", Self::should_build(_config), only_hosts: true, { Miri, "miri", Self::should_build(_config), only_hosts: true, {
if builder.ensure(dist::Miri { compiler: self.compiler, target: self.tar if builder.ensure(dist::Miri { compiler: self.compiler, target: self.tar
get }).is_some() || get }).is_some() {
Self::should_install(builder) {
install_miri(builder, self.compiler.stage, self.target); install_miri(builder, self.compiler.stage, self.target);
} else { } else {
builder.info( builder.info(
&format!("skipping Install miri stage{} ({})", self.compiler.sta ge, self.target), &format!("skipping Install miri stage{} ({})", self.compiler.sta ge, self.target),
); );
} }
}; };
Rustfmt, "rustfmt", Self::should_build(_config), only_hosts: true, { Rustfmt, "rustfmt", Self::should_build(_config), only_hosts: true, {
if builder.ensure(dist::Rustfmt { if builder.ensure(dist::Rustfmt {
compiler: self.compiler, compiler: self.compiler,
target: self.target target: self.target
}).is_some() || Self::should_install(builder) { }).is_some() {
install_rustfmt(builder, self.compiler.stage, self.target); install_rustfmt(builder, self.compiler.stage, self.target);
} else { } else {
builder.info( builder.info(
&format!("skipping Install Rustfmt stage{} ({})", self.compiler. stage, self.target), &format!("skipping Install Rustfmt stage{} ({})", self.compiler. stage, self.target),
); );
} }
}; };
Analysis, "analysis", Self::should_build(_config), only_hosts: false, { Analysis, "analysis", Self::should_build(_config), only_hosts: false, {
builder.ensure(dist::Analysis { builder.ensure(dist::Analysis {
// Find the actual compiler (handling the full bootstrap option) whi ch // Find the actual compiler (handling the full bootstrap option) whi ch
 End of changes. 5 change blocks. 
21 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)