Commit graph

1957 commits

Author SHA1 Message Date
Who? Me?!
4eb492db54
Add spastorino for rustc-guide toolstate 2019-07-09 13:58:32 -05:00
bors
dbeed58ade Auto merge of #62434 - Manishearth:clippyup, r=Manishearth
Update clippy

r? @ghost
2019-07-07 08:07:54 +00:00
Manish Goregaokar
e2885eb656 Update clippy 2019-07-06 21:41:57 -07:00
bors
b0bd5f236d Auto merge of #62452 - Centril:rollup-5jww3h7, r=Centril
Rollup of 5 pull requests

Successful merges:

 - #60081 (Refactor unicode.py script)
 - #61862 (Make the Weak::{into,as}_raw methods)
 - #62243 (Improve documentation for built-in macros)
 - #62422 (Remove some uses of mem::uninitialized)
 - #62436 (normalize use of backticks/lowercase in compiler messages for librustc_mir)

Failed merges:

r? @ghost
2019-07-06 21:47:45 +00:00
André Luis Leal Cardoso Junior
b5cd962be8 Don't return an error from linkcheck when it's not supported' 2019-07-06 11:05:22 -03:00
André Luis Leal Cardoso Junior
43cb7d08e4 Ignore unused variable for non-linux builds 2019-07-06 11:05:22 -03:00
Mark Mansi
f0e45bfe81 fix macos build 2019-07-06 11:05:22 -03:00
Mark Mansi
1de42ff95a cfg: linkcheck only on x86-64 linux 2019-07-06 11:05:22 -03:00
André Luis Leal Cardoso Junior
9ca5dee0ad Add 'Apache-2.0 OR MIT' license variation to tidy/tools check 2019-07-06 11:05:22 -03:00
André Luis Leal Cardoso Junior
f80697215f Add linkcheck command to rustbook tool 2019-07-06 11:05:22 -03:00
André Luis Leal Cardoso Junior
d8a6ccfb4a Track rustc-guide on toolstate 2019-07-06 11:05:22 -03:00
Vadim Petrochenkov
987be89db3 Fix tidy issues 2019-07-06 16:59:08 +03:00
Yuki Okushi
ce77031e96 Remove compile-pass from compiletest
Also change annotations in some tests
2019-07-06 02:06:00 +09:00
Alex Crichton
2fb2e00f20 Update the rust-installer submodule
This pulls in a commit which uses parallel xz encoding which should
hopefully help shave some time off the dist builders which spend an
inordinate amount of time compressing this data.
2019-07-04 11:59:09 -07:00
Pietro Albini
dc9d2b34df
bump miri to fix line endings on azure 2019-07-01 17:12:31 +02:00
Igor Matuszewski
8c96088853
Update RLS to disable spurious client_find_definitions test
Since switching CI to Azure Pipelines it seems that this test seems
to fail more consistently, so let's disable that for now. It helps
that we have less than a week before release - we disallow PRs that
break the tools to land in this period, so this makes landing critical
PRs smoother  now.

r? @alexcrichton
2019-07-01 17:12:29 +02:00
varkor
400fd6055f Update miri 2019-06-30 18:19:28 +01:00
Mazdak Farrokhzad
a4cf85e958
Rollup merge of #62023 - RalfJung:miri-toolstate, r=kennytm
publish_toolstate: don't use 'new' from inside the loop

I think I made a mistake in https://github.com/rust-lang/rust/pull/61938 by using `new` outside the inner loop. This PR fixes that.

However, no issue got created at all for https://github.com/rust-lang/rust/pull/62003#issuecomment-504356964, and I don't know why that is.   The script should be [triggered by Traivs](56a12b2ad0/.travis.yml (L240)), and I can find no trace of that in [the build log](https://travis-ci.com/rust-lang/rust/jobs/209880042).
2019-06-29 11:18:10 +02:00
Mazdak Farrokhzad
0721364f0d
Rollup merge of #61755 - Centril:compiletest-force-check, r=petrochenkov
Add `--pass $mode` to compiletest through `./x.py`

Adds a flag `--pass $mode` to compiletest, which is exposed through `./x.py`.

When `--pass $mode` is passed, `{check,build,compile,run}-pass` tests will be forced to run under the given `$mode` unless the directive `// ignore-pass` exists in the test file.

The modes are explained in https://github.com/rust-lang/rust/pull/61778:
- `check` has the same effect as `cargo check`
- `build` or `compile` have the same effect as `cargo build`
- `run` has the same effect as `cargo run`

On my machine, `./x.py -i test src/test/run-pass --stage 1 --pass check` takes 38 seconds whereas it takes 2 min 7 seconds without `--pass check`.

cc https://github.com/rust-lang/rust/issues/61712

r? @petrochenkov
2019-06-29 11:18:07 +02:00
bors
8ec39423dd Auto merge of #62105 - JohnTitor:update-miri, r=RalfJung
Update miri

Fixes #62101

r? @RalfJung
2019-06-29 05:05:32 +00:00
Mazdak Farrokhzad
65f1ff41d2
Rollup merge of #62176 - Xanewok:update-rls, r=alexcrichton
Update RLS

Merged PRs:
* fix(cmd): make clear_env_rust_log default to false (https://github.com/rust-lang/rls/pull/1486)
  - Retain `RUST_LOG` in `rls --cli` mode
* Pass --file-lines to rustfmt only if specified (https://github.com/rust-lang/rls/pull/1497)
  - Fix entire-file formatting when using external rustfmt (specified via `rustfmt_path` config)
* Ensure that --error-format is only passed once to `rustc` (https://github.com/rust-lang/rls/pull/1500)
  - Unbreaks RLS when used together with Cargo [pipelining build](https://github.com/rust-lang/rust/issues/60988) feature (@alexcrichton I'd consider this a stabilization blocker, mind adding it to the tracking issue for the record? 🙇‍♂️ )
2019-06-27 23:01:20 +02:00
Igor Matuszewski
d79104bda1 Update RLS 2019-06-27 13:41:00 +02:00
Yuki Okushi
742e851aaa Update miri 2019-06-27 04:45:12 +09:00
Mazdak Farrokhzad
93077f3f39 Hash force_pass_mode when config.mode == Pretty. 2019-06-26 14:32:23 +02:00
Lzu Tao
615347fbf0 submodules: Update clippy from 8c80b65f to e3cb40e4 2019-06-26 02:20:44 +00:00
Eric Huss
342fa2be25 Update cargo 2019-06-24 11:57:20 -07:00
Mazdak Farrokhzad
5eaedda9f5 Address review comments. 2019-06-24 18:32:52 +02:00
Lzu Tao
ca354e9dac submodules: Update clippy from 5a11ed7b to 8c80b65f 2019-06-24 09:42:31 +00:00
Mazdak Farrokhzad
54337fab39 compiletest: support '--pass check' and '// ignore-pass'. 2019-06-24 07:58:37 +02:00
bors
de7c4e4231 Auto merge of #62037 - Mark-Simulacrum:tidy-fast, r=eddyb
Speed up tidy

master:
  Time (mean ± σ):      3.478 s ±  0.033 s    [User: 3.298 s, System: 0.178 s]
  Range (min … max):    3.425 s …  3.525 s    10 runs

This PR:
  Time (mean ± σ):      1.098 s ±  0.006 s    [User: 783.7 ms, System: 310.2 ms]
  Range (min … max):    1.092 s …  1.113 s    10 runs

Alleviates https://github.com/rust-lang/rust/issues/59884. For the most part each commit stands on its own. Timings are on warm filesystem cache.

r? @eddyb
2019-06-23 20:05:01 +00:00
bors
2cd5ed495c Auto merge of #61778 - petrochenkov:pass, r=Mark-Simulacrum
compiletest: Introduce `// {check,build,run}-pass` pass modes

Pass UI tests now have three modes
```
// check-pass
// build-pass
// run-pass
```
mirroring equivalent well-known `cargo` commands.

`// check-pass` will compile the test skipping codegen (which is expensive and isn't supposed to fail in most cases).
`// build-pass` will compile and link the test without running it.
`// run-pass` will compile, link and run the test.
Tests without a "pass" annotation are still considered "fail" tests.

Most UI tests would probably want to switch to `check-pass`.
Tests validating codegen would probably want to run the generated code as well and use `run-pass`.
`build-pass` should probably be rare (linking tests?).

https://github.com/rust-lang/rust/pull/61755 will provide a way to run the tests with any mode, e.g. bump `check-pass` tests to `run-pass` to satisfy especially suspicious people, and be able to make sure that codegen doesn't breaks in some entirely unexpected way.
Tests marked with any mode are expected to pass with any other mode, if that's not the case for some legitimate reason, then the test should be made a "fail" test rather than a "pass" test.
Perhaps some secondary CI can verify this invariant, but that's not super urgent.

`// compile-pass` still works and is equivalent to `build-pass`.
Why is `// compile-pass` bad - 1) it gives an impression that the test is only compiled, but not linked, 2) it doesn't mirror a cargo command.
It can be removed some time in the future in a separate PR.

cc https://github.com/rust-lang/rust/issues/61712
2019-06-23 17:16:22 +00:00
Mark Rousskov
777951c926 Exit early from feature search if no features in file 2019-06-23 09:10:26 -04:00
Mark Rousskov
6c5c78d00c Collect features only once 2019-06-23 09:10:26 -04:00
Mark Rousskov
ebbc662f07 Use Path/PathBuf directly instead of through path:: 2019-06-23 09:10:26 -04:00
Mark Rousskov
7dd7c0ff0a Skip querying each ignore directive if none in file 2019-06-23 09:10:26 -04:00
Mark Rousskov
d619e44a55 Utilize entry.metadata over fs::symlink_metadata 2019-06-23 09:10:26 -04:00
Mark Rousskov
38f0b90e45 Move file-reading into walker loop 2019-06-23 09:10:26 -04:00
Mark Rousskov
c113a3769d Pass contents and DirEntry to walkers 2019-06-23 09:10:26 -04:00
Mark Rousskov
5c33c3e308 Stop calling format! to check feature gate 2019-06-23 09:10:26 -04:00
Mark Rousskov
e17b02d9b9 Use walkdir crate
It's more efficient than the fs::read_dir API
2019-06-23 09:10:24 -04:00
Mark Rousskov
5f1da8e533 Cache Regex's 2019-06-23 09:10:08 -04:00
Mark Rousskov
2b6371dbfb Make tidy quieter by default 2019-06-23 09:09:44 -04:00
Ralf Jung
a1e954e82d update miri 2019-06-22 12:30:05 +02:00
Ralf Jung
02863a3554 do as tidy says 2019-06-21 20:47:42 +02:00
Ralf Jung
ecca52cac1 don't make PR author assignee; that break creating the issue when they are not a team member 2019-06-21 20:25:37 +02:00
Ralf Jung
e10012d037 show HTTP error body 2019-06-21 19:22:46 +02:00
Ralf Jung
8ceab3218e fix long line 2019-06-21 14:07:20 +02:00
Lzu Tao
dfd430e0a5 submodules: Update clippy from 149a988 to 5a11ed7b 2019-06-21 11:54:50 +00:00
Ralf Jung
e02c655194 dump the JSON we are going to submit to GH to create the issue 2019-06-21 13:46:46 +02:00
Ralf Jung
fb2f841867 give a bit more context in the error message 2019-06-21 13:40:57 +02:00