clippy lints
This commit is contained in:
parent
2b684f39e4
commit
c274459b63
4 changed files with 2 additions and 6 deletions
|
|
@ -817,7 +817,6 @@ impl Step for LldWrapper {
|
|||
fields(build_compiler = ?self.build_compiler, target_compiler = ?self.target_compiler),
|
||||
),
|
||||
)]
|
||||
|
||||
fn run(self, builder: &Builder<'_>) -> ToolBuildResult {
|
||||
if builder.config.dry_run() {
|
||||
return ToolBuildResult {
|
||||
|
|
|
|||
|
|
@ -1276,7 +1276,6 @@ impl<'a> Builder<'a> {
|
|||
),
|
||||
),
|
||||
)]
|
||||
|
||||
/// FIXME: This function is unnecessary (and dangerous, see <https://github.com/rust-lang/rust/issues/137469>).
|
||||
/// We already have uplifting logic for the compiler, so remove this.
|
||||
pub fn compiler_for(
|
||||
|
|
|
|||
|
|
@ -1557,7 +1557,7 @@ Executed at: {executed_at}"#,
|
|||
!self.config.full_bootstrap
|
||||
&& !self.config.download_rustc()
|
||||
&& stage >= 2
|
||||
&& (self.hosts.iter().any(|h| *h == target) || target == self.build)
|
||||
&& (self.hosts.contains(&target) || target == self.build)
|
||||
}
|
||||
|
||||
/// Checks whether the `compiler` compiling for `target` should be forced to
|
||||
|
|
|
|||
|
|
@ -432,9 +432,7 @@ pub fn dir_is_empty(dir: &Path) -> bool {
|
|||
/// the "y" part from the string.
|
||||
pub fn extract_beta_rev(version: &str) -> Option<String> {
|
||||
let parts = version.splitn(2, "-beta.").collect::<Vec<_>>();
|
||||
let count = parts.get(1).and_then(|s| s.find(' ').map(|p| s[..p].to_string()));
|
||||
|
||||
count
|
||||
parts.get(1).and_then(|s| s.find(' ').map(|p| s[..p].to_string()))
|
||||
}
|
||||
|
||||
pub enum LldThreads {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue