Commit Graph

89443 Commits

Author SHA1 Message Date
Oliver Scherer
7017927aaf Indent fixup 2019-01-30 15:24:41 +01:00
James Munns
9004b44b99 Remove stable feature 2019-01-30 09:13:17 -05:00
James Munns
b98a1e1710 No consumers of MdBook2 yet 2019-01-30 09:13:17 -05:00
James Munns
7389f97cde Only the compatibility items from the embedded book PR
PR: https://github.com/rust-lang/rust/pull/56291
2019-01-30 09:13:17 -05:00
Felix S. Klock II
1a18336808 proc_macro: make TokenStream::from_streams pre-allocate its vector.
This requires a pre-pass over the input streams. But that is cheap
compared to the quadratic blowup associated with reallocating the
accumulating vector on-the-fly.
2019-01-30 15:12:41 +01:00
Oliver Scherer
ab708f5c6f The return place's layout is only used once per frame, so caching doesn't help 2019-01-30 15:08:59 +01:00
Oliver Scherer
4165c890ed Can't use layout_of_local for the frame currently being created 2019-01-30 15:05:50 +01:00
Oliver Scherer
154c54c875 Make priroda happy again 2019-01-30 15:01:42 +01:00
Oliver Scherer
bc528d93ec Allow layout_of_local to also use cached layouts 2019-01-30 14:55:31 +01:00
bors
e4a9b5c623 Auto merge of #57988 - RalfJung:miri, r=oli-obk
update miri

r? @oli-obk
2019-01-30 13:20:32 +00:00
Oliver Scherer
7cfb05fd23 Merge locals and local_layouts fields 2019-01-30 14:16:18 +01:00
Niklas Fiekas
c6f6101180 Allow #[repr(align(x))] on enums (#57996) 2019-01-30 14:15:38 +01:00
Ralf Jung
c397ba0420 update miri 2019-01-30 12:58:33 +01:00
bors
43b4c4a36b Auto merge of #57932 - matthiaskrgr:clippy_submodule_upd, r=oli-obk
submodules: update clippy from f1753522 to 6ce78d12

Should fix clippy toolstate

Changes:
````
wildcard_match_arm: Update lint count.
wildcard_match_arm: add nesting issue to known.
wildcard_match_arm: lint only enum matches.
wildcard_match_arm: update ui test stderr
wildcard_match_arm: format test.
wilcard_match_arm: run rustfmt.
wildcard_match_arm: add lint properly.
wildcard_match_arm: rename function.
wildcard_match_arm: add simple ui test.
wildcard_match_arm: expand lint scope.
Change match_wild lint name to WILDCARD_MATCH_ARM.
Add match_wild lint (#3649).
fetch_prs_between: add .sh file ending
cargo fmt
Update various docs
Use built-in entry_fn detection over self-built
cargo fmt
Reorganize conditionals: Run faster checks first
Maybe fix ICE?
Add initial version of const_fn lint
Fix `unit_arg` false positive
Rustfmt
Check hypothetically failing conversion
Remove tests for deprecated items
Update more changed iterator paths
Atomics constants are now handled by the deprecation lint
Update changed iterator paths
Update const slice processing
update test stderr
run cargo fmt
rustup https://github.com/rust-lang/rust/pull/57907/
Fix documentation for `slow_vector_initialization`
rustup https://github.com/rust-lang/rust/pull/57726
Remove unsafe_vector_initialization from added lints
Prevent incorrect cast_lossless suggestion in const_fn
Incorporate review suggestions
Fix dogfood tests on Appveyor
test(versioncheck): Use .no_deps()
test(versioncheck): Fix version equality check
chore(cargo/dependencies/cargo-metadata): Upgrade to 0.7.1
dependencies: update itertools from 0.7 to 0.8
Add script to fetch GitHub PRs between two commits
gitattributes: Treat .fixed files as rust files
Update changelog with all changes since 0.0.212
Fix `expect_fun_call` lint suggestions
````

r? @oli-obk
2019-01-30 09:30:30 +00:00
Andre Bogus
b062b75559 override VecDeque's Iter::try_fold 2019-01-30 09:11:17 +01:00
Knium_
62867b4992 Suggest to add each of | and () when unexpected , is found in pattern 2019-01-30 13:50:44 +09:00
bors
d3d0bf0e9f Auto merge of #57975 - alexcrichton:debug-exit-appveyor, r=pietroalbini
Attempt to debug 259 exit code on AppVeyor

Let's try to dig in a bit more and see where this is coming from, it
looks like AppVeyor is also unsure where this is coming from!
2019-01-30 03:44:11 +00:00
Matthias Krüger
a27cf8a281 submodules: update clippy from f1753522 to 6ce78d12
Changes:
````
wildcard_match_arm: Update lint count.
wildcard_match_arm: add nesting issue to known.
wildcard_match_arm: lint only enum matches.
wildcard_match_arm: update ui test stderr
wildcard_match_arm: format test.
wilcard_match_arm: run rustfmt.
wildcard_match_arm: add lint properly.
wildcard_match_arm: rename function.
wildcard_match_arm: add simple ui test.
wildcard_match_arm: expand lint scope.
Change match_wild lint name to WILDCARD_MATCH_ARM.
Add match_wild lint (#3649).
fetch_prs_between: add .sh file ending
cargo fmt
Update various docs
Use built-in entry_fn detection over self-built
cargo fmt
Reorganize conditionals: Run faster checks first
Maybe fix ICE?
Add initial version of const_fn lint
Fix `unit_arg` false positive
Rustfmt
Check hypothetically failing conversion
Remove tests for deprecated items
Update more changed iterator paths
Atomics constants are now handled by the deprecation lint
Update changed iterator paths
Update const slice processing
update test stderr
run cargo fmt
rustup https://github.com/rust-lang/rust/pull/57907/
Fix documentation for `slow_vector_initialization`
rustup https://github.com/rust-lang/rust/pull/57726
Remove unsafe_vector_initialization from added lints
Prevent incorrect cast_lossless suggestion in const_fn
Incorporate review suggestions
Fix dogfood tests on Appveyor
test(versioncheck): Use .no_deps()
test(versioncheck): Fix version equality check
chore(cargo/dependencies/cargo-metadata): Upgrade to 0.7.1
dependencies: update itertools from 0.7 to 0.8
Add script to fetch GitHub PRs between two commits
gitattributes: Treat .fixed files as rust files
Update changelog with all changes since 0.0.212
Fix `expect_fun_call` lint suggestions
````
2019-01-30 01:25:05 +01:00
bors
40e6a0bd76 Auto merge of #57953 - mati865:cc-fix, r=alexcrichton
Do not set CC, CFLAGS, CXX, CXXFLAGS, AR, RANLIB in bootstrap, it breaks cross compilation

Fixes https://github.com/rust-lang/rust/issues/57812

I tested it in AArch64 Ubuntu container with several days old tree to have all the tools buildable.

I did **not** test native builds (amd64 -> amd64), leaving it to CI.

r? @alexcrichton
2019-01-29 22:34:19 +00:00
Siddhartha Sahu
84a89aa666
Add link to the edition guide. 2019-01-29 17:30:49 -05:00
Jonas Schievink
0d314f08af Add tracking issue to unstable attribute 2019-01-29 22:34:35 +01:00
Nikita Popov
4a4186e4d1 Use LLVM intrinsics for saturating add/sub 2019-01-29 22:32:13 +01:00
Jonas Schievink
b664341d91 Make weak_count return an Option<usize> 2019-01-29 21:58:17 +01:00
John Kåre Alsaker
0e2ad51e36 Fix tests 2019-01-29 21:10:36 +01:00
John Kåre Alsaker
9bdf054dc8 Only store the result of mir_borrowck for closures 2019-01-29 21:10:36 +01:00
John Kåre Alsaker
219f818c1b Skip some test passes 2019-01-29 21:10:35 +01:00
John Kåre Alsaker
edf0cac94b Use ensure for borrowck 2019-01-29 21:10:35 +01:00
John Kåre Alsaker
8d76060785 Add some time statements 2019-01-29 21:10:35 +01:00
John Kåre Alsaker
eb8fb53425 Use an ItemLikeVisitor for CheckTypeWellFormedVisitor 2019-01-29 21:10:34 +01:00
John Kåre Alsaker
2a4eeba70f Make impl_wf_check incremental 2019-01-29 21:10:34 +01:00
John Kåre Alsaker
73b8f1d90c Optimize match checking 2019-01-29 21:10:33 +01:00
John Kåre Alsaker
0c2bf6fe2a Add an ensure() method to TyCtxt used to ensure queries are run 2019-01-29 21:10:33 +01:00
Jonas Schievink
7e0edb39ba Implement a slightly racy sync::Weak::weak_count 2019-01-29 21:07:35 +01:00
Jonas Schievink
2fe3b3b486 Implement Weak::{strong_count, weak_count} 2019-01-29 21:07:35 +01:00
Denys Zariaiev
49931fda56 Use correct CI test image for WASM and NVPTX 2019-01-29 21:00:07 +01:00
Denys Zariaiev
3f624456e6 Provide PTXLinker with fallback to internal target-cpu 2019-01-29 20:55:09 +01:00
bors
c1c3c4e95b Auto merge of #57808 - gnzlbg:ustdsimd, r=gnzlbg
Update stdsimd

This is the companion PR to https://github.com/rust-lang-nursery/stdsimd/pull/640

r? @alexcrichton
2019-01-29 19:40:51 +00:00
Denys Zariaiev
899d936dee Merge NVPTX and WASM test images into test-various 2019-01-29 19:06:42 +01:00
bors
7425663011 Auto merge of #57901 - lqd:issue_57362, r=nikomatsakis
Add information to higher-ranked lifetimes conflicts error messages

Make these errors go through the new "placeholder error" code path, to have self tys displayed and make them hopefully less confusing.

Should fix #57362.

r? @nikomatsakis — so we can iterate on the specific wording you wanted.
2019-01-29 16:58:15 +00:00
Alex Crichton
ce279a8e53 Attempt to debug 259 exit code on AppVeyor
Let's try to dig in a bit more and see where this is coming from, it
looks like AppVeyor is also unsure where this is coming from!
2019-01-29 07:45:54 -08:00
bors
ae1ba150a2 Auto merge of #57948 - Zoxc:parallel, r=michaelwoerister
Use multiple threads by default. Limits tests to one thread. Do some renaming.

r? @michaelwoerister
2019-01-29 13:32:13 +00:00
Jethro Beekman
a75ae00c63 SGX target: improve panic & exit handling 2019-01-29 17:12:56 +05:30
gnzlbg
938a814e87 Update stdsimd 2019-01-29 10:48:54 +01:00
bors
106b3e9fa4 Auto merge of #57862 - hsivonen:buildneon, r=alexcrichton
Build the standard library for thumbv7neon-unknown-linux-gnueabihf in CI

Using the `dist-armv7-linux` image instead of `dist-various-1` in order to use the ARMv7 toolchain available in `dist-armv7-linux`.

Closes #57030.
2019-01-29 09:42:13 +00:00
bors
5f60208ba1 Auto merge of #57957 - Centril:rollup, r=Centril
Rollup of 7 pull requests

Successful merges:

 - #57045 (Kill remaining uses of mem::uninitialized in libcore, liballoc)
 - #57674 (Avoid erase_regions_ty queries if there are no regions to erase)
 - #57833 (Print a slightly clearer message when failing to launch a thread)
 - #57859 (Fix invalid background color)
 - #57904 (add typo suggestion to unknown attribute error)
 - #57915 (Pretty print `$crate` as `crate` or `crate_name` in more cases)
 - #57950 (Extend E0106, E0261)

Failed merges:

r? @ghost
2019-01-29 05:22:51 +00:00
Ariel Ben-Yehuda
927d01fdb9 avoid committing to autoderef in object method probing 2019-01-29 01:00:42 +02:00
Ariel Ben-Yehuda
0ceb30de6d add tests to a few edge cases in method lookup
These aren't fixed by this PR, but were broken in a few older attempts
at it. Make sure they don't regress.
2019-01-29 01:00:25 +02:00
Ariel Ben-Yehuda
8d26c75043 add some comments to method::probe::Candidate 2019-01-29 00:59:13 +02:00
Denys Zariaiev
6f86a70ea1 Adjust PTXLinker LTO logic and CLI 2019-01-28 23:56:37 +01:00
Dale Wijnand
1e577269da
Introduce into_raw_non_null on Rc and Arc 2019-01-28 22:24:26 +00:00