Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 7 pull requests #92482

Merged
merged 19 commits into from
Jan 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
8d8f699
Clarify the guarantees that ThreadId does and doesn't make.
ltratt Apr 11, 2021
fb1e031
Remove unnecessary bounds for some Hash{Map,Set} methods
upsuper Dec 6, 2021
d66a9e1
Language tweak.
ltratt Dec 25, 2021
51a1681
Remove pronunciation guide from Vec<T>
thomcc Dec 31, 2021
193342e
Emit an error for `--cfg=)`
meithecatte Jan 1, 2022
ec0c838
Add test for where clause order
GuillaumeGomez Jan 1, 2022
bffe880
Enforce formatting for rustc_codegen_cranelift
bjorn3 Dec 30, 2021
2fe2728
Remove the lazy_static dependency from rustbuild
bjorn3 Dec 26, 2021
043745c
Avoid the merge derive macro in rustbuild
bjorn3 Dec 26, 2021
947e948
Make the rustc and rustdoc wrapper not depend on libbootstrap
bjorn3 Dec 26, 2021
ad6f98c
Remove the merge dependency
bjorn3 Jan 1, 2022
7ea6e71
Remove some dead code
bjorn3 Jan 1, 2022
30ec1f0
Rollup merge of #84083 - ltratt:threadid_doc_tweak, r=dtolnay
matthiaskrgr Jan 1, 2022
5137f7c
Rollup merge of #91593 - upsuper-forks:hashmap-set-methods-bound, r=d…
matthiaskrgr Jan 1, 2022
ab7a356
Rollup merge of #92297 - bjorn3:smaller_bootstrap, r=Mark-Simulacrum
matthiaskrgr Jan 1, 2022
a015c86
Rollup merge of #92332 - GuillaumeGomez:where-clause-order, r=jsha
matthiaskrgr Jan 1, 2022
f6ce1e8
Rollup merge of #92438 - bjorn3:less_cg_clif_exceptions, r=Mark-Simul…
matthiaskrgr Jan 1, 2022
aa31c97
Rollup merge of #92463 - thomcc:thats-not-how-its-pronounced, r=josht…
matthiaskrgr Jan 1, 2022
2004a51
Rollup merge of #92468 - NieDzejkob:silent-cfg, r=petrochenkov
matthiaskrgr Jan 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove some dead code
  • Loading branch information
bjorn3 committed Jan 1, 2022
commit 7ea6e713c21db0fb19e28a9071910776d13ed769
3 changes: 1 addition & 2 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,6 @@ pub enum Kind {
Check,
Clippy,
Fix,
Format,
Test,
Bench,
Dist,
Expand Down Expand Up @@ -399,7 +398,7 @@ impl<'a> Builder<'a> {
native::Lld,
native::CrtBeginEnd
),
Kind::Check | Kind::Clippy { .. } | Kind::Fix | Kind::Format => describe!(
Kind::Check | Kind::Clippy { .. } | Kind::Fix => describe!(
check::Std,
check::Rustc,
check::Rustdoc,
Expand Down
4 changes: 0 additions & 4 deletions src/bootstrap/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1149,10 +1149,6 @@ impl Config {
self.verbose > 0
}

pub fn very_verbose(&self) -> bool {
self.verbose > 1
}

pub fn sanitizers_enabled(&self, target: TargetSelection) -> bool {
self.target_config.get(&target).map(|t| t.sanitizers).flatten().unwrap_or(self.sanitizers)
}
Expand Down
5 changes: 0 additions & 5 deletions src/bootstrap/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ use std::fs::{self, File, OpenOptions};
use std::io::{Read, Seek, SeekFrom, Write};
use std::path::{Path, PathBuf};
use std::process::{self, Command};
use std::slice;
use std::str;

#[cfg(unix)]
Expand Down Expand Up @@ -472,10 +471,6 @@ impl Build {
build
}

pub fn build_triple(&self) -> &[Interned<String>] {
slice::from_ref(&self.build.triple)
}

// modified from `check_submodule` and `update_submodule` in bootstrap.py
/// Given a path to the directory of a submodule, update it.
///
Expand Down
20 changes: 0 additions & 20 deletions src/bootstrap/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ use build_helper::t;
use crate::builder::Builder;
use crate::config::{Config, TargetSelection};

/// Returns the `name` as the filename of a static library for `target`.
pub fn staticlib(name: &str, target: TargetSelection) -> String {
if target.contains("windows") { format!("{}.lib", name) } else { format!("lib{}.a", name) }
}

/// Given an executable called `name`, return the filename for the
/// executable for a particular target.
pub fn exe(name: &str, target: TargetSelection) -> String {
Expand Down Expand Up @@ -81,21 +76,6 @@ fn link_lib_path() -> Vec<PathBuf> {
env::split_paths(&var).collect()
}

/// `push` all components to `buf`. On windows, append `.exe` to the last component.
pub fn push_exe_path(mut buf: PathBuf, components: &[&str]) -> PathBuf {
let (&file, components) = components.split_last().expect("at least one component required");
let mut file = file.to_owned();

if cfg!(windows) {
file.push_str(".exe");
}

buf.extend(components);
buf.push(file);

buf
}

pub struct TimeIt(bool, Instant);

/// Returns an RAII structure that prints out how long it took to drop.
Expand Down