Commit Graph

89359 Commits

Author SHA1 Message Date
Matthew Jasper
6fe370c7ce Pass correct arguments to places_conflict
The borrow place *must* be a place that we track borrows for, otherwise
we will likely ICE.
2019-01-30 19:49:31 +00:00
Esteban Küber
74675fed68 Don't panic when accessing enum variant ctor using Self in match 2019-01-30 11:39:56 -08:00
Oliver Scherer
8c26c590b4 Failure resistent trait implementing 2019-01-30 19:29:10 +01:00
Philipp Hansch
037fdb8213
Improve bug message in check_ty
This branch was hit in Clippy and I think it would be nice to
show the thing that was unexpected in the bug message.

It's also in line with the other `bug!` messages in `check_ty`.
2019-01-30 19:17:06 +01:00
Rett Berg
4a3caca978 fix #57686: update docs for fix_start/end_matches 2019-01-30 10:12:49 -08:00
Oliver Scherer
765fa81a6e Swap the names of LocalValue and LocalState 2019-01-30 17:51:59 +01:00
Oliver Scherer
a7a5cb620f Prefer macro over manual implementation 2019-01-30 17:50:46 +01:00
Oliver Scherer
4056b575e2 Add suggestions to deprecation lints 2019-01-30 17:49:04 +01:00
bors
d9a2e3b1cc Auto merge of #57495 - jamesmunns:mdbook-compat, r=steveklabnik
Support multiple versions of MdBook for docs

Only the compatibility items from the embedded book PR. PR with embedded book components: https://github.com/rust-lang/rust/pull/56291

CC @steveklabnik, @ehuss, and https://github.com/rust-lang-nursery/edition-guide/pull/134
2019-01-30 16:20:15 +00:00
Jethro Beekman
a3f0af2e67 Add MOVBE feature 2019-01-30 21:07:48 +05:30
Michael Woerister
b17c10de46 CI: Use lld for linking LLVM in the x86_64-gnu-debug image. 2019-01-30 16:21:43 +01:00
Michael Woerister
dc20c8cc25 bootstrap: Expose LLVM_USE_LINKER cmake option to config.toml. 2019-01-30 16:21:43 +01:00
Michael Woerister
4f534ffbdb ci: Use clang as the C++ compiler for x86_64-gnu-debug. 2019-01-30 16:21:43 +01:00
Michael Woerister
9c29517af9 bootstrap: Make LLD available to run-make tests. 2019-01-30 16:21:43 +01:00
Michael Woerister
4460e7c919 Add missing packages. 2019-01-30 16:21:43 +01:00
Oliver Scherer
5aa713e1c3 Eliminate an unwrap 2019-01-30 15:51:20 +01:00
Oliver Scherer
4e0af1fee1 Monomorphize types when not going through layout_of_local 2019-01-30 15:42:00 +01:00
James Munns
f8a9a28421 Add exception for new dependency in license checker 2019-01-30 09:25:12 -05:00
James Munns
de76369f93 Update to newer version of mdbook(2) 2019-01-30 09:25:12 -05:00
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