]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoAuto merge of #43406 - canndrew:never-impl-clone, r=alexcrichton
bors [Sun, 23 Jul 2017 04:25:39 +0000 (04:25 +0000)]
Auto merge of #43406 - canndrew:never-impl-clone, r=alexcrichton

Add missing `!: Clone` impl

Fixes #43296

(untested because I'm having computer troubles, but a one-liner can't break anything right?)

6 years agoAuto merge of #43387 - TimNN:rustllvm50, r=alexcrichton
bors [Sun, 23 Jul 2017 01:57:37 +0000 (01:57 +0000)]
Auto merge of #43387 - TimNN:rustllvm50, r=alexcrichton

Update Rust LLVM bindings for LLVM 5.0

This is the initial set of changes to update the rust llvm bindings for 5.0. The llvm commits necessitating these changes are linked from the tracking issue, #43370.

6 years agoAuto merge of #43382 - mmatyas:aarch64_ignore-stack-probes, r=alexcrichton
bors [Sat, 22 Jul 2017 23:24:09 +0000 (23:24 +0000)]
Auto merge of #43382 - mmatyas:aarch64_ignore-stack-probes, r=alexcrichton

Ignore stack probe tests on AArch64

Stack probes are only implemented for x86, and as such currently fail on AArch64. This patch ignores those tests on this architecture.

Fixes #43356.

r? @alexcrichton

6 years agoAuto merge of #43059 - Mark-Simulacrum:rustbuild-2.0, r=alexcrichton
bors [Sat, 22 Jul 2017 18:27:29 +0000 (18:27 +0000)]
Auto merge of #43059 - Mark-Simulacrum:rustbuild-2.0, r=alexcrichton

Rework Rustbuild to an eagerly compiling approach

This introduces a new dependency on `serde`; I don't believe that's a problem since bootstrap is compiled with nightly/beta always so proc macros are available. Compile times are slightly longer -- about 2-3x (30 seconds vs. 10 seconds). I don't think this is too big a problem, especially since recompiling bootstrap is somewhat rare. I think we can remove the dependency on Serde if necessary, though, so let me know.

r? @alexcrichton

6 years agoMake distcheck work again.
Mark Simulacrum [Sat, 22 Jul 2017 16:48:29 +0000 (10:48 -0600)]
Make distcheck work again.

6 years agoAuto merge of #43367 - alexcrichton:remove-inline-always, r=sfackler
bors [Sat, 22 Jul 2017 16:06:12 +0000 (16:06 +0000)]
Auto merge of #43367 - alexcrichton:remove-inline-always, r=sfackler

std: Cut down #[inline] annotations where not necessary

This PR cuts down on a large number of `#[inline(always)]` and `#[inline]`
annotations in libcore for various core functions. The `#[inline(always)]`
annotation is almost never needed and is detrimental to debug build times as it
forces LLVM to perform inlining when it otherwise wouldn't need to in debug
builds. Additionally `#[inline]` is an unnecessary annoation on almost all
generic functions because the function will already be monomorphized into other
codegen units and otherwise rarely needs the extra "help" from us to tell LLVM
to inline something.

Overall this PR cut the compile time of a [microbenchmark][1] by 30% from 1s to
0.7s.

[1]: https://gist.github.com/alexcrichton/a7d70319a45aa60cf36a6a7bf540dd3a

6 years agoAdd make_run to distcheck.
Mark Simulacrum [Sat, 22 Jul 2017 13:35:42 +0000 (07:35 -0600)]
Add make_run to distcheck.

6 years agoAuto merge of #43352 - estebank:macro-span-replacement, r=petrochenkov
bors [Sat, 22 Jul 2017 13:30:19 +0000 (13:30 +0000)]
Auto merge of #43352 - estebank:macro-span-replacement, r=petrochenkov

Use the macro structure spans instead of the invocation

Fix #42104, CC #2887.

6 years agoFix StartupObject build
Mark Simulacrum [Sat, 22 Jul 2017 11:50:55 +0000 (05:50 -0600)]
Fix StartupObject build

6 years agoAuto merge of #43344 - tlively:wasm-debug, r=alexcrichton
bors [Sat, 22 Jul 2017 11:02:49 +0000 (11:02 +0000)]
Auto merge of #43344 - tlively:wasm-debug, r=alexcrichton

Pass debugging arguments to emcc

Tells emcc to enable assertions and debugging information for
wasm32-experimental-emscripten. This makes the codegen issues caused by
LLVM bug 33824 manifest more frequently at runtime and improves the wasm
debugging experience.

6 years agoAdd !: Clone impl
Andrew Cann [Sat, 22 Jul 2017 09:20:57 +0000 (17:20 +0800)]
Add !: Clone impl

6 years agoAuto merge of #43343 - petrochenkov:methlife3, r=estebank
bors [Sat, 22 Jul 2017 08:36:11 +0000 (08:36 +0000)]
Auto merge of #43343 - petrochenkov:methlife3, r=estebank

Add an extra note to `late_bound_lifetime_arguments` error/lint

Fixes https://github.com/rust-lang/rust/issues/42868#issuecomment-316368538

6 years agoAuto merge of #43323 - perryprog:master, r=estebank
bors [Sat, 22 Jul 2017 04:41:10 +0000 (04:41 +0000)]
Auto merge of #43323 - perryprog:master, r=estebank

Less verbose output for unused arguments

Closes #37718

This is my first contribution to rust, so sorry if I'm missing anything!

The output now looks like this:
<img width="831" alt="screen shot 2017-07-18 at 5 01 32 pm" src="https://user-images.githubusercontent.com/12972285/28347566-dbfa9962-6c05-11e7-8730-c2e8062a04cc.png">

It's not the prettiest, but whenever #41850 gets resolved, this should be able to be improved.

**EDIT:** This also does not seem
r? @Mark-Simulacrum

6 years agoAuto merge of #42973 - zackmdavis:json_byte_position_to_start_at_top_of_file, r=nrc
bors [Sat, 22 Jul 2017 02:16:00 +0000 (02:16 +0000)]
Auto merge of #42973 - zackmdavis:json_byte_position_to_start_at_top_of_file, r=nrc

make JSON error byte position start at top of file

The `hi` and `lo` offsets in a span are relative to a `CodeMap`, but this
doesn't seem to be terribly useful for tool consumers who don't have the
codemap, but might want the byte offset within an actual file?

I couldn't get @killercup's [example](https://github.com/rust-lang/rust/issues/35164#issuecomment-301436519) to run, perhaps due to the limitations of the merely-stage-1 compiler that I built (error was `libproc_macro-456500c7095d8fbe.so: cannot open shared object file: No such file or directory`)??—but a dummy project confirms that the byte offsets have successfully been changed to be file-relative—

**Before:**

```
$ cargo run --message-format json
   Compiling byte_json v0.1.0 (file:///home/ubuntu/byte_json)
{"message":{"children":[{"children":[],"code":null,"level":"note","message":"#[warn(dead_code)] on by default","rendered":null,"spans":[]}],"code":null,"level":"warning","message":"function is never used: `rah`","rendered":null,"spans":[{"byte_end":100,"byte_start":67,"column_end":2,"column_start":1,"expansion":null,"file_name":"src/foo.rs","is_primary":true,"label":null,"line_end":5,"line_start":3,"suggested_replacement":null,"text":[{"highlight_end":11,"highlight_start":1,"text":"fn rah() {"},{"highlight_end":21,"highlight_start":1,"text":"    println!(\"rah!\")"},{"highlight_end":2,"highlight_start":1,"text":"}"}]}]},"package_id":"byte_json 0.1.0 (path+file:///home/ubuntu/byte_json)","reason":"compiler-message","target":{"crate_types":["bin"],"kind":["bin"],"name":"byte_json","src_path":"/home/ubuntu/byte_json/src/main.rs"}}
{"message":{"children":[{"children":[],"code":null,"level":"note","message":"#[warn(dead_code)] on by default","rendered":null,"spans":[]}],"code":null,"level":"warning","message":"function is never used: `alas`","rendered":null,"spans":[{"byte_end":137,"byte_start":102,"column_end":2,"column_start":1,"expansion":null,"file_name":"src/bar.rs","is_primary":true,"label":null,"line_end":3,"line_start":1,"suggested_replacement":null,"text":[{"highlight_end":12,"highlight_start":1,"text":"fn alas() {"},{"highlight_end":22,"highlight_start":1,"text":"    println!(\"alas\");"},{"highlight_end":2,"highlight_start":1,"text":"}"}]}]},"package_id":"byte_json 0.1.0 (path+file:///home/ubuntu/byte_json)","reason":"compiler-message","target":{"crate_types":["bin"],"kind":["bin"],"name":"byte_json","src_path":"/home/ubuntu/byte_json/src/main.rs"}}
{"features":[],"filenames":["/home/ubuntu/byte_json/target/debug/byte_json"],"fresh":false,"package_id":"byte_json 0.1.0 (path+file:///home/ubuntu/byte_json)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["bin"],"kind":["bin"],"name":"byte_json","src_path":"/home/ubuntu/byte_json/src/main.rs"}}
    Finished dev [unoptimized + debuginfo] target(s) in 0.36 secs
     Running `target/debug/byte_json`
Hello, world!
```

**After:**

```
$ RUSTC=../rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc cargo run --message-format json
   Compiling byte_json v0.1.0 (file:///home/ubuntu/byte_json)
{"message":{"children":[{"children":[],"code":null,"level":"note","message":"#[warn(dead_code)] on by default","rendered":null,"spans":[]}],"code":null,"level":"warning","message":"function is never used: `rah`","rendered":null,"spans":[{"byte_end":35,"byte_start":2,"column_end":2,"column_start":1,"expansion":null,"file_name":"src/foo.rs","is_primary":true,"label":null,"line_end":5,"line_start":3,"suggested_replacement":null,"text":[{"highlight_end":11,"highlight_start":1,"text":"fn rah() {"},{"highlight_end":21,"highlight_start":1,"text":"    println!(\"rah!\")"},{"highlight_end":2,"highlight_start":1,"text":"}"}]}]},"package_id":"byte_json 0.1.0 (path+file:///home/ubuntu/byte_json)","reason":"compiler-message","target":{"crate_types":["bin"],"kind":["bin"],"name":"byte_json","src_path":"/home/ubuntu/byte_json/src/main.rs"}}
{"message":{"children":[{"children":[],"code":null,"level":"note","message":"#[warn(dead_code)] on by default","rendered":null,"spans":[]}],"code":null,"level":"warning","message":"function is never used: `alas`","rendered":null,"spans":[{"byte_end":35,"byte_start":0,"column_end":2,"column_start":1,"expansion":null,"file_name":"src/bar.rs","is_primary":true,"label":null,"line_end":3,"line_start":1,"suggested_replacement":null,"text":[{"highlight_end":12,"highlight_start":1,"text":"fn alas() {"},{"highlight_end":22,"highlight_start":1,"text":"    println!(\"alas\");"},{"highlight_end":2,"highlight_start":1,"text":"}"}]}]},"package_id":"byte_json 0.1.0 (path+file:///home/ubuntu/byte_json)","reason":"compiler-message","target":{"crate_types":["bin"],"kind":["bin"],"name":"byte_json","src_path":"/home/ubuntu/byte_json/src/main.rs"}}
{"features":[],"filenames":["/home/ubuntu/byte_json/target/debug/byte_json"],"fresh":false,"package_id":"byte_json 0.1.0 (path+file:///home/ubuntu/byte_json)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["bin"],"kind":["bin"],"name":"byte_json","src_path":"/home/ubuntu/byte_json/src/main.rs"}}
    Finished dev [unoptimized + debuginfo] target(s) in 2.59 secs
     Running `target/debug/byte_json`
Hello, world!
```

Resolves #35164.

r? @jonathandturner

6 years agorun-make test for JSON error byte start/end
Zack M. Davis [Wed, 19 Jul 2017 23:32:20 +0000 (16:32 -0700)]
run-make test for JSON error byte start/end

This is in the matter of #35164.

6 years agomake JSON error byte position start at top of file
Zack M. Davis [Thu, 29 Jun 2017 19:07:30 +0000 (12:07 -0700)]
make JSON error byte position start at top of file

The `hi` and `lo` offsets in a span are relative to a `CodeMap`, but this
doesn't seem to be terribly useful for tool consumers who don't have the
codemap, but might want the byte offset within an actual file?

Resolves #35164.

6 years agoReview comments
Esteban Küber [Fri, 21 Jul 2017 23:44:23 +0000 (16:44 -0700)]
Review comments

6 years agoAuto merge of #43274 - bitshifter:union-align, r=petrochenkov
bors [Fri, 21 Jul 2017 23:46:05 +0000 (23:46 +0000)]
Auto merge of #43274 - bitshifter:union-align, r=petrochenkov

Support repr alignment on unions.

Requested as part of RFC 1358 https://github.com/rust-lang/rust/issues/33626#issuecomment-309137284.

6 years agoMore tests
Perry Fraser [Fri, 21 Jul 2017 22:11:44 +0000 (18:11 -0400)]
More tests

6 years agoRelax a codegen test to be compatible with LLVM 5.0
Alex Crichton [Fri, 21 Jul 2017 21:13:47 +0000 (14:13 -0700)]
Relax a codegen test to be compatible with LLVM 5.0

6 years agoAuto merge of #43319 - SimonSapin:cargoup, r=alexcrichton
bors [Fri, 21 Jul 2017 20:57:37 +0000 (20:57 +0000)]
Auto merge of #43319 - SimonSapin:cargoup, r=alexcrichton

Update Cargo to ffab51954ec32d55631c37a8730bb24915fc090b

https://github.com/rust-lang/cargo/pull/4123 added the `[patch]` section of the manifest

6 years agoFix archive member names on 5.0
Alex Crichton [Fri, 21 Jul 2017 16:41:29 +0000 (09:41 -0700)]
Fix archive member names on 5.0

6 years agoupdate attributes API usage
Alex Crichton [Fri, 21 Jul 2017 16:15:03 +0000 (18:15 +0200)]
update attributes API usage

6 years agorustllvm: split DebugLoc in UnpackOptimizationDiagnostic
Tim Neumann [Fri, 21 Jul 2017 12:29:23 +0000 (14:29 +0200)]
rustllvm: split DebugLoc in UnpackOptimizationDiagnostic

6 years agoAuto merge of #43313 - pftbest:fix_asm, r=alexcrichton
bors [Fri, 21 Jul 2017 15:42:17 +0000 (15:42 +0000)]
Auto merge of #43313 - pftbest:fix_asm, r=alexcrichton

[LLVM] Fix an assertion when a weak symbol is defined in global_asm.

This change will fix the issue from
https://github.com/japaric/svd2rust/pull/130

cc @japaric
r? @alexcrichton

6 years agorustllvm: update to SyncScope::ID
Tim Neumann [Fri, 21 Jul 2017 12:02:52 +0000 (14:02 +0200)]
rustllvm: update to SyncScope::ID

6 years agorustllvm: adjust usage of createNameSpace
Tim Neumann [Fri, 21 Jul 2017 11:31:19 +0000 (13:31 +0200)]
rustllvm: adjust usage of createNameSpace

6 years agorustllvm: adjust usage of createPointerType
Tim Neumann [Fri, 21 Jul 2017 11:26:41 +0000 (13:26 +0200)]
rustllvm: adjust usage of createPointerType

6 years agorustllvm: use LLVMMetadataRef
Tim Neumann [Fri, 21 Jul 2017 11:15:36 +0000 (13:15 +0200)]
rustllvm: use LLVMMetadataRef

6 years agorustllvm: define LLVM_VERSION_LT
Tim Neumann [Fri, 21 Jul 2017 11:13:37 +0000 (13:13 +0200)]
rustllvm: define LLVM_VERSION_LT

6 years agoUpdate Cargo to ffab51954ec32d55631c37a8730bb24915fc090b
Simon Sapin [Tue, 18 Jul 2017 21:26:55 +0000 (23:26 +0200)]
Update Cargo to ffab51954ec32d55631c37a8730bb24915fc090b

https://github.com/rust-lang/cargo/pull/4123 added the [patch] section of the manifest

6 years agoIgnore stack probe tests on AArch64
Mátyás Mustoha [Fri, 21 Jul 2017 08:21:42 +0000 (10:21 +0200)]
Ignore stack probe tests on AArch64

6 years agoAuto merge of #43318 - jhjourdan:jh/fix_weak_cound_MAX, r=alexcrichton
bors [Fri, 21 Jul 2017 04:49:00 +0000 (04:49 +0000)]
Auto merge of #43318 - jhjourdan:jh/fix_weak_cound_MAX, r=alexcrichton

Fix in weak_count in Arc in the case the weak count is locked.

In the case the weak count was locked, the weak_count function could
return usize::MAX. We need to test this condition manually.

6 years agoFix test
Esteban Küber [Fri, 21 Jul 2017 04:28:53 +0000 (21:28 -0700)]
Fix test

6 years agoUse the macro structure spans instead of the invocation
Esteban Küber [Thu, 20 Jul 2017 04:54:01 +0000 (21:54 -0700)]
Use the macro structure spans instead of the invocation

6 years agoAuto merge of #43183 - michaelwoerister:internalize-symbols-without-llvm, r=eddyb
bors [Fri, 21 Jul 2017 02:24:18 +0000 (02:24 +0000)]
Auto merge of #43183 - michaelwoerister:internalize-symbols-without-llvm, r=eddyb

trans: Internalize symbols without relying on LLVM

This PR makes the compiler use the information gather by the trans collector in order to determine which symbols/trans-items can be made internal. This has the advantages:
+ of being LLVM independent,
+ of also working in incremental mode, and
+ of allowing to not keep all LLVM modules in memory at the same time.

This is in preparation for fixing issue #39280.

cc @rust-lang/compiler

6 years agoChange make_run signature to taking a RunConfig struct for refactorability.
Mark Simulacrum [Thu, 20 Jul 2017 23:51:07 +0000 (17:51 -0600)]
Change make_run signature to taking a RunConfig struct for refactorability.

6 years agoAuto merge of #43368 - Aaronepower:patch-3, r=alexcrichton
bors [Thu, 20 Jul 2017 23:41:31 +0000 (23:41 +0000)]
Auto merge of #43368 - Aaronepower:patch-3, r=alexcrichton

Update release notes for 1.19.0

This is just #42503 there is some problems with submodules I can't seem to fix so I just created a new PR.

6 years agoAdd an optional condition to constrain defaults.
Mark Simulacrum [Thu, 20 Jul 2017 23:24:11 +0000 (17:24 -0600)]
Add an optional condition to constrain defaults.

Utilized primarily to not be a default rule unless some configuration is
given (e.g., compiler docs are enabled).

6 years agoRemove step.rs
Mark Simulacrum [Thu, 20 Jul 2017 22:41:46 +0000 (16:41 -0600)]
Remove step.rs

6 years agoRemove step.rs comments
Mark Simulacrum [Thu, 20 Jul 2017 22:41:26 +0000 (16:41 -0600)]
Remove step.rs comments

6 years agoCheck RLS tests
Mark Simulacrum [Thu, 20 Jul 2017 22:33:04 +0000 (16:33 -0600)]
Check RLS tests

6 years agoChange default documentation rules to correspond with previous state.
Mark Simulacrum [Thu, 20 Jul 2017 22:16:31 +0000 (16:16 -0600)]
Change default documentation rules to correspond with previous state.

6 years agoDon't include lldb/gdb in default tests
Mark Simulacrum [Thu, 20 Jul 2017 17:23:29 +0000 (11:23 -0600)]
Don't include lldb/gdb in default tests

6 years agotrans: Make the collector search const fn invocations.
Michael Woerister [Thu, 20 Jul 2017 12:10:50 +0000 (14:10 +0200)]
trans: Make the collector search const fn invocations.

6 years agostd: Cut down #[inline] annotations where not necessary
Alex Crichton [Thu, 20 Jul 2017 18:14:13 +0000 (11:14 -0700)]
std: Cut down #[inline] annotations where not necessary

This PR cuts down on a large number of `#[inline(always)]` and `#[inline]`
annotations in libcore for various core functions. The `#[inline(always)]`
annotation is almost never needed and is detrimental to debug build times as it
forces LLVM to perform inlining when it otherwise wouldn't need to in debug
builds. Additionally `#[inline]` is an unnecessary annoation on almost all
generic functions because the function will already be monomorphized into other
codegen units and otherwise rarely needs the extra "help" from us to tell LLVM
to inline something.

Overall this PR cut the compile time of a [microbenchmark][1] by 30% from 1s to
0.7s.

[1]: https://gist.github.com/alexcrichton/a7d70319a45aa60cf36a6a7bf540dd3a

6 years agoUpdate release notes for 1.19.0
Aaron Power [Thu, 20 Jul 2017 18:42:15 +0000 (19:42 +0100)]
Update release notes for 1.19.0

6 years agoDon't run host-only tests when targeting another platform
Mark Simulacrum [Thu, 20 Jul 2017 15:42:18 +0000 (09:42 -0600)]
Don't run host-only tests when targeting another platform

6 years agoFix a few issues found by comparing past/present
Mark Simulacrum [Thu, 20 Jul 2017 12:27:13 +0000 (06:27 -0600)]
Fix a few issues found by comparing past/present

6 years agoAllow iterating over step descriptions.
Mark Simulacrum [Wed, 19 Jul 2017 12:55:46 +0000 (06:55 -0600)]
Allow iterating over step descriptions.

This simplifies code and allows working mostly with normal Rust instead
of macros.

6 years agoImplement available paths list.
Mark Simulacrum [Wed, 19 Jul 2017 00:03:38 +0000 (18:03 -0600)]
Implement available paths list.

6 years agoUse a single line for serde annotations.
Mark Simulacrum [Tue, 18 Jul 2017 22:14:44 +0000 (16:14 -0600)]
Use a single line for serde annotations.

6 years agoKrate -> Crate
Mark Simulacrum [Tue, 18 Jul 2017 21:28:53 +0000 (15:28 -0600)]
Krate -> Crate

6 years agoRemove outdated code.
Mark Simulacrum [Tue, 18 Jul 2017 00:03:31 +0000 (18:03 -0600)]
Remove outdated code.

Relevant sys crates handle this properly.

6 years agoRemove TypeId from stack in Builder
Mark Simulacrum [Tue, 18 Jul 2017 00:01:48 +0000 (18:01 -0600)]
Remove TypeId from stack in Builder

6 years agoRemove deserialize
Aidan Hobson Sayers [Sun, 16 Jul 2017 22:46:27 +0000 (23:46 +0100)]
Remove deserialize

6 years agoResolve rebase errors
Mark Simulacrum [Mon, 17 Jul 2017 15:52:05 +0000 (09:52 -0600)]
Resolve rebase errors

6 years agofail in case nothing to run was found
Guillaume Gomez [Mon, 10 Jul 2017 14:27:46 +0000 (16:27 +0200)]
fail in case nothing to run was found

6 years agoFix tidy
Mark Simulacrum [Fri, 14 Jul 2017 23:59:03 +0000 (17:59 -0600)]
Fix tidy

6 years agoRemove outdated FIXME from cache
Mark Simulacrum [Fri, 14 Jul 2017 15:37:30 +0000 (09:37 -0600)]
Remove outdated FIXME from cache

6 years agoImplement keep-stage support
Mark Simulacrum [Fri, 14 Jul 2017 15:28:06 +0000 (09:28 -0600)]
Implement keep-stage support

6 years agoRequire should_run to be implemented.
Mark Simulacrum [Fri, 14 Jul 2017 12:30:16 +0000 (06:30 -0600)]
Require should_run to be implemented.

6 years agoMake the book default.
Mark Simulacrum [Fri, 14 Jul 2017 04:37:33 +0000 (22:37 -0600)]
Make the book default.

6 years agoUtilize interning to allow Copy/Clone steps
Mark Simulacrum [Fri, 14 Jul 2017 00:48:44 +0000 (18:48 -0600)]
Utilize interning to allow Copy/Clone steps

6 years agoRemove core_intrinsics feature gate
Mark Simulacrum [Thu, 13 Jul 2017 17:12:57 +0000 (11:12 -0600)]
Remove core_intrinsics feature gate

6 years agoClean up install
Mark Simulacrum [Thu, 13 Jul 2017 12:25:40 +0000 (06:25 -0600)]
Clean up install

6 years agoCleanups and fixes throughout
Mark Simulacrum [Thu, 13 Jul 2017 00:52:31 +0000 (18:52 -0600)]
Cleanups and fixes throughout

6 years agoFix more incorrectly transitioned code
Mark Simulacrum [Wed, 12 Jul 2017 16:12:47 +0000 (10:12 -0600)]
Fix more incorrectly transitioned code

6 years agoFix a few errors introduced during rebase.
Mark Simulacrum [Wed, 12 Jul 2017 15:15:00 +0000 (09:15 -0600)]
Fix a few errors introduced during rebase.

6 years agoCherry pick changes from ce3abc5801f94292be9bc5fbe00b52f1ccb28672.
Mark Simulacrum [Sat, 8 Jul 2017 03:00:38 +0000 (23:00 -0400)]
Cherry pick changes from ce3abc5801f94292be9bc5fbe00b52f1ccb28672.

Fix stage 2 builds with a custom libdir.

When copying libstd for the stage 2 compiler, the builder ignores the
configured libdir/libdir_relative configuration parameters.  This causes
the compiler to fail to find libstd, which cause any tools built with the
stage 2 compiler to fail.

To fix this, make the copy steps of rustbuild aware of the libdir_relative
parameter when the stage >= 2.  Also update the dist target to be aware of
the new location of libstd.

6 years agoUpdate to toml 0.4
Mark Simulacrum [Tue, 4 Jul 2017 16:03:01 +0000 (10:03 -0600)]
Update to toml 0.4

6 years agoMigrate to serde_json entirely
Mark Simulacrum [Tue, 4 Jul 2017 13:31:05 +0000 (07:31 -0600)]
Migrate to serde_json entirely

6 years agoFix a nit.
Mark Simulacrum [Fri, 7 Jul 2017 18:37:55 +0000 (12:37 -0600)]
Fix a nit.

6 years agoRework compiletest implementation.
Mark Simulacrum [Fri, 7 Jul 2017 18:31:29 +0000 (12:31 -0600)]
Rework compiletest implementation.

6 years agoMove compiletest config into a struct
Mark Simulacrum [Fri, 7 Jul 2017 17:51:57 +0000 (11:51 -0600)]
Move compiletest config into a struct

6 years agoDocument the process more thoroughly
Mark Simulacrum [Tue, 4 Jul 2017 00:20:46 +0000 (18:20 -0600)]
Document the process more thoroughly

6 years agoAdd documentation to Step and related methods on Builder.
Mark Simulacrum [Fri, 7 Jul 2017 17:17:37 +0000 (11:17 -0600)]
Add documentation to Step and related methods on Builder.

6 years agoPacify tidy
Mark Simulacrum [Thu, 6 Jul 2017 15:42:50 +0000 (09:42 -0600)]
Pacify tidy

6 years agoMove code out of macro and into generic method.
Mark Simulacrum [Thu, 6 Jul 2017 15:15:08 +0000 (09:15 -0600)]
Move code out of macro and into generic method.

6 years agoFinish fixing warnings and errors. Bootstrap builds.
Mark Simulacrum [Wed, 5 Jul 2017 17:21:33 +0000 (11:21 -0600)]
Finish fixing warnings and errors. Bootstrap builds.

6 years agoMove cargo() to Builder
Mark Simulacrum [Wed, 5 Jul 2017 17:14:54 +0000 (11:14 -0600)]
Move cargo() to Builder

6 years agoFix tool_cmd
Mark Simulacrum [Wed, 5 Jul 2017 16:54:19 +0000 (10:54 -0600)]
Fix tool_cmd

6 years agoMove tool_cmd to tool.rs
Mark Simulacrum [Wed, 5 Jul 2017 16:48:02 +0000 (10:48 -0600)]
Move tool_cmd to tool.rs

6 years agoFixes warnings and errors introduced while moving code around
Mark Simulacrum [Wed, 5 Jul 2017 16:46:41 +0000 (10:46 -0600)]
Fixes warnings and errors introduced while moving code around

6 years agoAdd Builder and Step definitions.
Mark Simulacrum [Wed, 5 Jul 2017 16:20:20 +0000 (10:20 -0600)]
Add Builder and Step definitions.

6 years agoChange code to work with the new system
Mark Simulacrum [Wed, 5 Jul 2017 12:41:27 +0000 (06:41 -0600)]
Change code to work with the new system

6 years agoMove code into Step trait implementations.
Mark Simulacrum [Wed, 5 Jul 2017 01:41:43 +0000 (19:41 -0600)]
Move code into Step trait implementations.

No changes are introduced to code body. This commit will not build; it
is done to permit a better diff in later commits.

6 years agoMove rule configs out of step
Mark Simulacrum [Tue, 4 Jul 2017 23:53:53 +0000 (17:53 -0600)]
Move rule configs out of step

6 years agoAuto merge of #43281 - mmatyas:remotetest_env, r=alexcrichton
bors [Thu, 20 Jul 2017 13:58:03 +0000 (13:58 +0000)]
Auto merge of #43281 - mmatyas:remotetest_env, r=alexcrichton

Allow remote testing remotely when `TEST_DEVICE_ADDR` is set

Remote testing was added in #41268, but at the moment it's only enabled if QEMU is also available or we're testing Android. This patch also allows remote testing if the environment variable `TEST_DEVICE_ADDR` is set, as required by `remote-test-client` [[1](https://github.com/rust-lang/rust/blob/master/src/tools/remote-test-client/src/main.rs#L28), [2](https://github.com/rust-lang/rust/blob/master/src/tools/remote-test-client/src/main.rs#L61)]

6 years agoAuto merge of #43271 - Nashenas88:nll, r=nikomatsakis
bors [Thu, 20 Jul 2017 11:31:30 +0000 (11:31 +0000)]
Auto merge of #43271 - Nashenas88:nll, r=nikomatsakis

Add empty MIR pass for non-lexical lifetimes

This is the first step for #43234.

6 years agoAuto merge of #43270 - petrochenkov:fixstab, r=alexcrichton
bors [Thu, 20 Jul 2017 09:01:58 +0000 (09:01 +0000)]
Auto merge of #43270 - petrochenkov:fixstab, r=alexcrichton

Fix checking for missing stability annotations

This was a regression from https://github.com/rust-lang/rust/pull/37676 causing "unmarked API" ICEs like https://github.com/rust-lang/rust/issues/43027.

r? @alexcrichton

6 years agoAuto merge of #43260 - zackmdavis:print_target_spec_json_unstable_options_error,...
bors [Thu, 20 Jul 2017 06:38:41 +0000 (06:38 +0000)]
Auto merge of #43260 - zackmdavis:print_target_spec_json_unstable_options_error, r=arielb1

explanatory error on `--print target-spec-json` without unstable options

![unstable_target_spec](https://user-images.githubusercontent.com/1076988/28243342-9731a45c-697a-11e7-9852-bad7ca1802b7.png)

Resolves #41683.

6 years agoAuto merge of #43251 - gaurikholkar:span_reorder, r=nikomatsakis
bors [Thu, 20 Jul 2017 03:36:14 +0000 (03:36 +0000)]
Auto merge of #43251 - gaurikholkar:span_reorder, r=nikomatsakis

Reorder span suggestions to appear below main labels

A fix to #41698

r? @nikomatsakis

6 years agoAuto merge of #43247 - est31:master, r=alexcrichton
bors [Thu, 20 Jul 2017 00:11:40 +0000 (00:11 +0000)]
Auto merge of #43247 - est31:master, r=alexcrichton

Tidy: allow common lang+lib features

This allows changes to the Rust language that have both library
and language components share one feature gate.

The feature gates need to be "about the same change", so that both
library and language components must either be both unstable, or
both stable, and share the tracking issue.

Removes the ugly "proc_macro" exception added by #40939.

Closes #43089

6 years agoAdd test test_weak_count_locked
Jacques-Henri Jourdan [Wed, 19 Jul 2017 23:59:01 +0000 (01:59 +0200)]
Add test test_weak_count_locked

6 years agoexplanatory error on `--print target-spec-json` without unstable options
Zack M. Davis [Sat, 15 Jul 2017 19:32:31 +0000 (12:32 -0700)]
explanatory error on `--print target-spec-json` without unstable options

Resolves #41683.

6 years agoAdd an extra note to `late_bound_lifetime_arguments` error/lint
Vadim Petrochenkov [Wed, 19 Jul 2017 20:12:58 +0000 (23:12 +0300)]
Add an extra note to `late_bound_lifetime_arguments` error/lint

6 years agoAuto merge of #43178 - zackmdavis:some_suggestion, r=eddyb
bors [Wed, 19 Jul 2017 20:12:56 +0000 (20:12 +0000)]
Auto merge of #43178 - zackmdavis:some_suggestion, r=eddyb

suggest one-argument enum variant to fix type mismatch when applicable

Following @est31's [suggestion](https://github.com/rust-lang/rust/issues/42764#issuecomment-309680886).

![some_suggestion](https://user-images.githubusercontent.com/1076988/28101064-ee83f51e-667a-11e7-9e4f-d8f9eb2fb6c3.png)

Resolves #42764.

6 years agoPass debugging arguments to emcc
Thomas Lively [Wed, 19 Jul 2017 17:55:12 +0000 (10:55 -0700)]
Pass debugging arguments to emcc

Tells emcc to enable assertions and debugging information for
wasm32-experimental-emscripten. This makes the codegen issues caused by
LLVM bug 33824 manifest more frequently at runtime and improves the wasm
debugging experience.

6 years agoAuto merge of #42859 - eddyb:const-size-and-align-of, r=nikomatsakis
bors [Wed, 19 Jul 2017 16:58:02 +0000 (16:58 +0000)]
Auto merge of #42859 - eddyb:const-size-and-align-of, r=nikomatsakis

Implement const fn {size,align}_of.

Fixes #34078.

r? @nikomatsakis