about summary refs log tree commit diff
path: root/src/liballoc/vec.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-04-25 14:52:30 +0000
committerbors <bors@rust-lang.org>2018-04-25 14:52:30 +0000
commit25749ad66de71ffb46e6b04fb0cccf1ae4fc5ed5 (patch)
treebede1bef21d4a6cc7b24df6cfb4533f8f1d1bbdd /src/liballoc/vec.rs
parent81135c9dbc92dc78df747d5096ff07d867ef3b02 (diff)
parent00bc634f8f396b7a0e1e6545b05eb117b5ddc7c6 (diff)
downloadrust-25749ad66de71ffb46e6b04fb0cccf1ae4fc5ed5.tar.gz
rust-25749ad66de71ffb46e6b04fb0cccf1ae4fc5ed5.zip
Auto merge of #49321 - ishitatsuyuki:compile-pass, r=alexcrichton
Introduce compile-pass

r? @alexcrichton

The plan is to move things that cannot fail (no assert, unwrap, etc) out so we don't have to run them, and in the long term we can also stop running LLVM for them.

Out of 3215 tests...

```
Language            Files        Lines         Code     Comments       Blanks
Rust                 3215       119254        64688        35135        19431
```

16% of them has an empty main (which is already moved in this PR).

```
grep -rnPzl 'fn main\(\)\s*{\s*}' | xargs rg --files-without-match cfg | wc -l
547
```

And only 50% of the tests contains assertions:

```
rg -e assert -e unwrap -e expect -e panic -l | wc -l
1600
```

The remainder is likely able to get moved, but they need check by a human so I didn't touch them in PR.

cc @rust-lang/compiler

* [ ] Update documentation
Diffstat (limited to 'src/liballoc/vec.rs')
0 files changed, 0 insertions, 0 deletions