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 19 pull requests #47748

Merged
merged 99 commits into from
Jan 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
3f61742
Fix no_integrated_as option to work with new codegen architecture.
pftbest Jan 15, 2018
98dee04
Add run-make test for no_integrated_as flag.
pftbest Jan 16, 2018
9b95e91
rustc_trans: ignore trailing padding larger than 8 bytes.
eddyb Jan 14, 2018
cbeebc5
rustc_trans: take into account primitives larger than 8 bytes.
eddyb Jan 14, 2018
072c3da
track recursion limit when expanding existential impl trait
nikomatsakis Jan 17, 2018
8447f4f
Add CGU size heuristic for partitioning
varkor Jan 13, 2018
e60b0f8
Refactor CodegenUnit size estimates
varkor Jan 15, 2018
c8e9da4
Update comments about the partitioning inefficiency
varkor Jan 15, 2018
5c9a8b5
Add instance_def_size_estimate query
varkor Jan 19, 2018
62703cf
Estimate size of InstanceDef::DropGlue more accurately
varkor Jan 19, 2018
768cbbc
Fix type inhabitedness check for arrays
varkor Jan 19, 2018
c4d0bb3
Fix tidy error
varkor Jan 19, 2018
7188706
Teach rustc about DW_AT_noreturn and a few more DIFlags
mrhota Jan 20, 2018
51fe2fe
rustc_trans: remove an unwrap by replacing a bool with Result.
eddyb Jan 20, 2018
f7f6598
Simplify and fix test
mrhota Jan 21, 2018
e0f9b26
Ensure test doesn't run with llvm 3.9
mrhota Jan 21, 2018
0bbc422
Use std based dedup in projection
ishitatsuyuki Jan 22, 2018
2d56abf
AST/HIR: Add a separate structure for labels
petrochenkov Jan 15, 2018
215d66b
do not ICE when return type includes unconstrained anon region
nikomatsakis Jan 22, 2018
9adf2b2
Add `--explain` for extended error explanations
estebank Jan 22, 2018
4e68e2a
Mark `--explain` as unstable
estebank Jan 22, 2018
fdfb9a2
Add explanation for E0607
estebank Jan 22, 2018
e76d3f6
Fix test for variadic error change
estebank Jan 22, 2018
864f6d1
Only emit expanded diagnostic information once
estebank Jan 22, 2018
ffb827a
Fix test redux
estebank Jan 22, 2018
c6772b4
Implement Ord as necessary
ishitatsuyuki Jan 22, 2018
7d41cba
Don't make it necessary to enable `unstable-options`
estebank Jan 23, 2018
2e81ce7
rustdoc: Hide methods from #[doc(masked)] crates from the search index
ollie27 Jan 23, 2018
a084cd0
incr.comp.: Cache type_of and some other queries.
michaelwoerister Jan 15, 2018
a5d7aae
Make ty::Generics::type_param_to_index use DefId instead of DefIndex …
michaelwoerister Jan 17, 2018
0a4f347
incr.comp.: Cache generics_of query.
michaelwoerister Jan 17, 2018
3dac0f5
Create `StructuredDiagnostic`
estebank Jan 23, 2018
482f7f1
Rename `-Z explain` to `-Z teach`
estebank Jan 23, 2018
7eb7d45
Let LLVM 5 add DW_OP_deref to indirect args itself
cuviper Jan 23, 2018
8bde2ac
rustc: Add `-C lto=val` option
alexcrichton Jan 16, 2018
734ee0f
Rename check.rs to test.rs
Mark-Simulacrum Jan 15, 2018
6aeb1cf
Add ./x.py check src/{libstd,libtest,rustc}.
Mark-Simulacrum Jan 15, 2018
f7ba00c
Turn error into warning
Manishearth Jan 24, 2018
6b26b74
Return Err() if resolve() is called before modules are set up
Manishearth Jan 24, 2018
f0e7677
Return Def from resolve()
Manishearth Jan 24, 2018
5a89f40
Handle methods
Manishearth Jan 24, 2018
62afc43
Make use of the implemented red/green algorithm for variance
Zoxc Jan 24, 2018
a4d3692
Make it work for traits
Manishearth Jan 24, 2018
5faba28
Fix ICE when use trees have multiple empty nested groups
pietroalbini Jan 24, 2018
03f86ae
llvm6: CodeModel::{JIT,}Default no longer exists
alexcrichton Jan 23, 2018
2a7ed74
llvm6: Missing include for LLVM 6 in PassWrapper.cpp
alexcrichton Jan 23, 2018
9eeecd2
llvm6: Tweak fast math intrinsics
alexcrichton Jan 23, 2018
b6fe112
llvm6: Remove MIPS64 archive variant
alexcrichton Jan 23, 2018
caedb36
llvm6: Different return value for writeArchive
alexcrichton Jan 23, 2018
63b3168
llvm6: Don't clone LLVM modules on wasm
alexcrichton Jan 24, 2018
5c5d9dd
Add powerpc to run-pass/conditional-compile-arch.rs
malbarbo Jan 24, 2018
e9a6499
llvm6: Update FreeBSD images to Ubuntu 18.04
alexcrichton Jan 23, 2018
54462f5
Update compiler-builtins submodule
alexcrichton Jan 24, 2018
c26f887
Handle variants
Manishearth Jan 24, 2018
08ca4fd
Add tests
Manishearth Jan 25, 2018
77bc826
Fix rustdoc-js test
ollie27 Jan 25, 2018
3b24033
Rollup merge of #47415 - varkor:cgu-partition-heuristic, r=michaelwoe…
alexcrichton Jan 25, 2018
fe2fb24
Rollup merge of #47437 - eddyb:issue-38763, r=nagisa
alexcrichton Jan 25, 2018
6eb1430
Rollup merge of #47439 - eddyb:issue-45662, r=nagisa
alexcrichton Jan 25, 2018
1bdef2f
Rollup merge of #47453 - pftbest:nointas, r=alexcrichton
alexcrichton Jan 25, 2018
304885d
Rollup merge of #47460 - Mark-Simulacrum:bootstrap-check, r=alexcrichton
alexcrichton Jan 25, 2018
98b3754
Rollup merge of #47502 - petrochenkov:label, r=eddyb
alexcrichton Jan 25, 2018
31f1aa5
Rollup merge of #47529 - nikomatsakis:impl-trait-issue-38064, r=cramertj
alexcrichton Jan 25, 2018
9852b23
Rollup merge of #47600 - varkor:empty-never-array, r=eddyb
alexcrichton Jan 25, 2018
6006b67
Fix regression: account for impl methods in arg count mismatch error
estebank Jan 25, 2018
2b73733
Add description to field and method
estebank Jan 25, 2018
502de01
rustc: SIMD types use pointers in Rust's ABI
alexcrichton Jan 25, 2018
c199cb5
Make 3 run-pass tests works on android (aarch64 and x86)
malbarbo Jan 25, 2018
4856f07
Rollup merge of #47618 - mrhota:dw_at_noreturn, r=michaelwoerister
alexcrichton Jan 25, 2018
8dd36af
Rollup merge of #47626 - eddyb:one-less-unwrap, r=nagisa
alexcrichton Jan 25, 2018
014931b
Rollup merge of #47656 - ishitatsuyuki:patch-1, r=nikomatsakis
alexcrichton Jan 25, 2018
0ee698e
Rollup merge of #47668 - nikomatsakis:issue-47511, r=eddyb
alexcrichton Jan 25, 2018
024e3aa
Rollup merge of #47696 - Zoxc:variance-rg, r=nikomatsakis
alexcrichton Jan 25, 2018
b335b10
Rollup merge of #47701 - Manishearth:intra-fixes, r=QuietMisdreavus
alexcrichton Jan 25, 2018
f7706d5
Rollup merge of #47705 - pietroalbini:fix-47673, r=petrochenkov
alexcrichton Jan 25, 2018
8a9381d
Rollup merge of #47710 - alexcrichton:llvm-6-compat, r=nikomatsakis
alexcrichton Jan 25, 2018
2c7cd60
Rollup merge of #47711 - alexcrichton:update-compiler-builtins, r=nik…
alexcrichton Jan 25, 2018
ad8b313
Rollup merge of #47719 - malbarbo:run-pass-arch-powerpc, r=alexcrichton
alexcrichton Jan 25, 2018
ab623f2
Merge branch 'cache-ty-collect' of https://github.com/michaelwoeriste…
alexcrichton Jan 25, 2018
e61c609
Merge branch 'configure-lto' of https://github.com/alexcrichton/rust …
alexcrichton Jan 25, 2018
cd4b23e
Remove stray src/llvm-emscripten module
alexcrichton Jan 25, 2018
beb756f
Revert update of the i686-freebsd builder
alexcrichton Jan 25, 2018
a76bb88
Call non-git beta builds simply x.y.z-beta
cuviper Jan 26, 2018
6e1cebb
Shorten a filename for MSVC
alexcrichton Jan 26, 2018
9a8d6b8
Do not capture stderr in the compiler. Instead just panic silently fo…
Zoxc Jan 21, 2018
68f2e1e
Ignore an i128 test on emscripten
alexcrichton Jan 26, 2018
aca88e1
Upgrade LLVM to incorporate a fix for #47364
dotdash Jan 26, 2018
ac774e7
Shorten another test path for MSVC
alexcrichton Jan 26, 2018
9594215
Merge branch 'no-stderr-sink' of https://github.com/Zoxc/rust into ro…
alexcrichton Jan 26, 2018
6da912e
Merge branch 'explain' of https://github.com/estebank/rust into rollup
alexcrichton Jan 26, 2018
a7f4156
Merge branch 'llvm5-indirect-deref' of https://github.com/cuviper/rus…
alexcrichton Jan 26, 2018
a910109
Merge branch 'simd-always-mem' of https://github.com/alexcrichton/rus…
alexcrichton Jan 26, 2018
1dc8576
Merge branch 'rustdoc_masked' of https://github.com/ollie27/rust into…
alexcrichton Jan 26, 2018
e684525
Merge branch 'fix-regression' of https://github.com/estebank/rust int…
alexcrichton Jan 26, 2018
afc977f
Merge branch 'android-run-pass' of https://github.com/malbarbo/rust i…
alexcrichton Jan 26, 2018
b741d7d
Merge branch 'beta-prerelease' of https://github.com/cuviper/rust int…
alexcrichton Jan 26, 2018
c915e3a
Merge branch 'mlsm' of https://github.com/dotdash/rust into rollup
alexcrichton Jan 26, 2018
9bb1823
Fix a test case on Windows
alexcrichton Jan 26, 2018
a06d333
Ignore a test on emscripten
alexcrichton Jan 26, 2018
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
5 changes: 0 additions & 5 deletions src/bootstrap/bin/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,6 @@ fn main() {
cmd.arg(format!("-Clinker={}", target_linker));
}

// Pass down incremental directory, if any.
if let Ok(dir) = env::var("RUSTC_INCREMENTAL") {
cmd.arg(format!("-Zincremental={}", dir));
}

let crate_name = args.windows(2)
.find(|a| &*a[0] == "--crate-name")
.unwrap();
Expand Down
1 change: 1 addition & 0 deletions src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ def build_bootstrap(self):
env["LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \
(os.pathsep + env["LIBRARY_PATH"]) \
if "LIBRARY_PATH" in env else ""
env["RUSTFLAGS"] = "-Cdebuginfo=2"
env["PATH"] = os.path.join(self.bin_root(), "bin") + \
os.pathsep + env["PATH"]
if not os.path.isfile(self.cargo()):
Expand Down
23 changes: 13 additions & 10 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use util::{exe, libdir, add_lib_path};
use {Build, Mode};
use cache::{INTERNER, Interned, Cache};
use check;
use test;
use flags::Subcommand;
use doc;
use tool;
Expand Down Expand Up @@ -230,6 +231,7 @@ impl<'a> ShouldRun<'a> {
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub enum Kind {
Build,
Check,
Test,
Bench,
Dist,
Expand All @@ -251,13 +253,13 @@ impl<'a> Builder<'a> {
tool::Compiletest, tool::RemoteTestServer, tool::RemoteTestClient,
tool::RustInstaller, tool::Cargo, tool::Rls, tool::Rustdoc, tool::Clippy,
native::Llvm, tool::Rustfmt, tool::Miri),
Kind::Test => describe!(check::Tidy, check::Bootstrap, check::DefaultCompiletest,
check::HostCompiletest, check::Crate, check::CrateLibrustc, check::Rustdoc,
check::Linkcheck, check::Cargotest, check::Cargo, check::Rls, check::Docs,
check::ErrorIndex, check::Distcheck, check::Rustfmt, check::Miri, check::Clippy,
check::RustdocJS),

Kind::Bench => describe!(check::Crate, check::CrateLibrustc),
Kind::Check => describe!(check::Std, check::Test, check::Rustc),
Kind::Test => describe!(test::Tidy, test::Bootstrap, test::DefaultCompiletest,
test::HostCompiletest, test::Crate, test::CrateLibrustc, test::Rustdoc,
test::Linkcheck, test::Cargotest, test::Cargo, test::Rls, test::Docs,
test::ErrorIndex, test::Distcheck, test::Rustfmt, test::Miri, test::Clippy,
test::RustdocJS),
Kind::Bench => describe!(test::Crate, test::CrateLibrustc),
Kind::Doc => describe!(doc::UnstableBook, doc::UnstableBookGen, doc::TheBook,
doc::Standalone, doc::Std, doc::Test, doc::Rustc, doc::ErrorIndex, doc::Nomicon,
doc::Reference, doc::Rustdoc, doc::RustByExample, doc::CargoBook),
Expand Down Expand Up @@ -304,6 +306,7 @@ impl<'a> Builder<'a> {
pub fn run(build: &Build) {
let (kind, paths) = match build.config.cmd {
Subcommand::Build { ref paths } => (Kind::Build, &paths[..]),
Subcommand::Check { ref paths } => (Kind::Check, &paths[..]),
Subcommand::Doc { ref paths } => (Kind::Doc, &paths[..]),
Subcommand::Test { ref paths, .. } => (Kind::Test, &paths[..]),
Subcommand::Bench { ref paths, .. } => (Kind::Bench, &paths[..]),
Expand Down Expand Up @@ -493,13 +496,14 @@ impl<'a> Builder<'a> {
cargo.env("RUSTC_CODEGEN_UNITS", n.to_string());
}


if let Some(host_linker) = self.build.linker(compiler.host) {
cargo.env("RUSTC_HOST_LINKER", host_linker);
}
if let Some(target_linker) = self.build.linker(target) {
cargo.env("RUSTC_TARGET_LINKER", target_linker);
}
if cmd != "build" {
if cmd != "build" && cmd != "check" {
cargo.env("RUSTDOC_LIBDIR", self.rustc_libdir(self.compiler(2, self.build.build)));
}

Expand Down Expand Up @@ -566,8 +570,7 @@ impl<'a> Builder<'a> {
// not guaranteeing correctness across builds if the compiler
// is changing under your feet.`
if self.config.incremental && compiler.stage == 0 {
let incr_dir = self.incremental_dir(compiler);
cargo.env("RUSTC_INCREMENTAL", incr_dir);
cargo.env("CARGO_INCREMENTAL", "1");
}

if let Some(ref on_fail) = self.config.on_fail {
Expand Down
Loading