Commit graph

97050 commits

Author SHA1 Message Date
Ilija Tovilo
bd8813e52c
Add method disambiguation help for trait implementation
Closes #51046
Closes #40471
2019-07-24 03:03:52 +02:00
Esteban Küber
e26e6749fb Always emit trailing slash error 2019-07-23 17:24:18 -07:00
Nikita Popov
71717b951a Initialize the MSP430 AsmParser if available 2019-07-24 00:05:59 +02:00
Samy Kacimi
66815c613a
normalize use of backticks for compiler messages in remaining modules
https://github.com/rust-lang/rust/issues/60532
2019-07-23 23:09:59 +02:00
Scott Wolchok
a4ff823f5d fix check 2019-07-23 13:37:17 -07:00
Mark Mansi
11a3b742d8 add back check for update prs 2019-07-23 15:37:04 -05:00
Ralf Jung
82d18412d1 more comments 2019-07-23 15:36:51 -05:00
Ralf Jung
92d432a0c7 more callback docs 2019-07-23 15:36:51 -05:00
Ralf Jung
9c48ed4eab more comments for toolstate scripts 2019-07-23 15:36:51 -05:00
Esteban Küber
fe2b5bbe6d review comments 2019-07-23 12:51:34 -07:00
bors
a7f28678bb Auto merge of #62902 - Mark-Simulacrum:rollup-mxfk0mm, r=Mark-Simulacrum
Rollup of 14 pull requests

Successful merges:

 - #60951 (more specific errors in src/librustc/mir/interpret/error.rs)
 - #62523 (Delay bug to resolve HRTB ICE)
 - #62656 (explain how to search in slice without owned data)
 - #62791 (Handle more cases of typos misinterpreted as type ascription)
 - #62804 (rustc_typeck: improve diagnostics for _ const/static declarations)
 - #62808 (Revert "Disable stack probing for gnux32.")
 - #62817 (Tweak span for variant not found error)
 - #62842 (Add tests for issue-58887)
 - #62851 (move unescape module to rustc_lexer)
 - #62859 (Place::as_place_ref is now Place::as_ref)
 - #62869 (add rustc_private as a proper language feature gate)
 - #62880 (normalize use of backticks in compiler messages for librustc_allocator)
 - #62885 (Change "OSX" to "macOS")
 - #62889 (Update stage0.txt)

Failed merges:

r? @ghost
2019-07-23 19:50:46 +00:00
Josh Stone
1aeadcc0d5 Require a value for configure --debuginfo-level
In `configure.py`, using the `o` function creates an enable/disable
boolean setting, and writes `true` or `false` in `config.toml`. However,
rustbuild is expecting to parse a `u32` debuginfo level. We can change
to the `v` function to have the options require a value.
2019-07-23 12:04:31 -07:00
Nikita Popov
fe4cdd3078 Disable d32 on armv6 hf targets 2019-07-23 20:30:57 +02:00
Esteban Küber
f56c8f6ea4 Fix another case 2019-07-23 11:19:13 -07:00
Samy Kacimi
ca8420c61f
Normalize use of backticks in compiler messages for doc
https://github.com/rust-lang/rust/issues/60532
2019-07-23 20:06:00 +02:00
Samy Kacimi
2083a123a5
Normalize use of backticks in compiler messages for libsyntax/*
https://github.com/rust-lang/rust/issues/60532
2019-07-23 20:03:20 +02:00
Nathan
b70f217262 Use raw pointers in std::sys::cloudabi when passing MaybeUninit values 2019-07-23 13:51:28 -04:00
Nathan
0ac6afafa6 Cleanup std::sys::cloudabi 2019-07-23 13:49:37 -04:00
Mark Rousskov
c939db7404
Rollup merge of #62889 - git-iso:patch-1, r=jonas-schievink
Update stage0.txt

Grammar.
2019-07-23 12:51:22 -04:00
Mark Rousskov
f1b267bef4
Rollup merge of #62885 - atouchet:macos, r=alexcrichton
Change "OSX" to "macOS"

Apple no longer uses the OS X branding.
2019-07-23 12:51:21 -04:00
Mark Rousskov
32e5f985eb
Rollup merge of #62880 - fakenine:normalize_use_of_backticks_compiler_messages_p14, r=Centril
normalize use of backticks in compiler messages for librustc_allocator

https://github.com/rust-lang/rust/issues/60532
2019-07-23 12:51:19 -04:00
Mark Rousskov
f11ffd3a6a
Rollup merge of #62869 - matklad:feature-gate, r=Mark-Simulacrum
add rustc_private as a proper language feature gate

At the moment, `rustc_private` as a (library) feature exists by
accident: `char::is_xid_start`, `char::is_xid_continue` methods in
libcore define it.

cc https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/How.20to.20declare.20new.20langauge.20feature.3F

I don't know if this is at all reasonable, but at least tests seem to pass locally. That probably means that we can remove/rename to something more resonable the feature in libcore in the next release?
2019-07-23 12:51:18 -04:00
Mark Rousskov
b2155dd747
Rollup merge of #62859 - spastorino:rename-to-as-ref, r=Centril
Place::as_place_ref is now Place::as_ref

r? @oli-obk
2019-07-23 12:51:16 -04:00
Mark Rousskov
4cb3586db9
Rollup merge of #62851 - matklad:unescape, r=petrochenkov
move unescape module to rustc_lexer

It makes sense to keep the definition of escape sequences closer to the lexer itself, and it is also a bit of code that I would like to share with rust-analyzer.

r? @petrochenkov
2019-07-23 12:51:15 -04:00
Mark Rousskov
8afc53c195
Rollup merge of #62842 - JohnTitor:test-for-58887, r=alexreg
Add tests for issue-58887

Closes #58887
2019-07-23 12:51:13 -04:00
Mark Rousskov
24a8065c30
Rollup merge of #62817 - estebank:variant-sp, r=matthewjasper
Tweak span for variant not found error
2019-07-23 12:51:12 -04:00
Mark Rousskov
66c2965ac2
Rollup merge of #62808 - crlf0710:gnux32_stack_probe, r=nikic
Revert "Disable stack probing for gnux32."

This reverts commit 42d652ecd6. (#59686)

Closes #59674.
2019-07-23 12:51:10 -04:00
Mark Rousskov
13775d2304
Rollup merge of #62804 - lundibundi:help-infer-const-static, r=eddyb
rustc_typeck: improve diagnostics for _ const/static declarations

This continues https://github.com/rust-lang/rust/pull/62694 and adds type suggestions to const/static declarations with `_` type.

r? @eddyb
2019-07-23 12:51:09 -04:00
Mark Rousskov
ab7149bdc5
Rollup merge of #62791 - estebank:type-ascription, r=petrochenkov
Handle more cases of typos misinterpreted as type ascription

Fix #60933, #54516.

CC #47666, #34255, #48016.
2019-07-23 12:51:07 -04:00
Mark Rousskov
4264f8376a
Rollup merge of #62656 - RalfJung:contains-no-own, r=Dylan-DPC
explain how to search in slice without owned data

Cc https://github.com/rust-lang/rust/issues/62367
2019-07-23 12:51:05 -04:00
Mark Rousskov
ad575978af
Rollup merge of #62523 - pnkfelix:delay-bug-to-resolve-issue-62203-ice, r=varkor
Delay bug to resolve HRTB ICE

Fix #62203
2019-07-23 12:51:04 -04:00
Mark Rousskov
52e9e44c7f
Rollup merge of #60951 - saleemjaffer:mir_better_error_enum, r=oli-obk
more specific errors in src/librustc/mir/interpret/error.rs

Implements [this](https://github.com/rust-rfcs/const-eval/issues/4)
2019-07-23 12:51:02 -04:00
Vadim Petrochenkov
614037171b cleanup: Remove extern crate serialize as rustc_serializes 2019-07-23 19:20:16 +03:00
Jonas Schievink
218ab4cd7f Update test 2019-07-23 17:57:54 +02:00
bors
299ef86e1f Auto merge of #62823 - RalfJung:miri, r=oli-obk
update Miri

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

r? @oli-obk @eddyb
2019-07-23 15:55:26 +00:00
Ralf Jung
65cf10d902 word things more like we usually do 2019-07-23 17:51:52 +02:00
Ralf Jung
dd5045ed63
Apply suggestions from code review
Co-Authored-By: gnzlbg <gnzlbg@users.noreply.github.com>
2019-07-23 17:48:01 +02:00
Jonas Schievink
7c42259d03 Update stdarch submodule 2019-07-23 17:19:32 +02:00
Jonas Schievink
edb21873cc Make path::resolve a method on ExtCtxt 2019-07-23 17:17:31 +02:00
Jonas Schievink
8ccf52c1c6 stage0 -> bootstrap 2019-07-23 17:17:31 +02:00
Jonas Schievink
1cc7c211f5 Adjust docs to new #[doc(include)] behaviour 2019-07-23 17:17:31 +02:00
Jonas Schievink
138e08ccf6 Make #[doc(include)] paths behave like other paths
This makes them relative to the containing file instead of the crate
root
2019-07-23 17:17:31 +02:00
Jonas Schievink
ba78db310b libsyntax: factor out file path resolving
This allows the same logic used by `include_X!` macros to be used by
`#[doc(include)]`.
2019-07-23 17:17:31 +02:00
git-iso
f48ee09f04
Update stage0.txt
Fix columns.
2019-07-23 11:07:06 -04:00
Nathan
82dd54baf3 Modify CloudABI ReentrantMutex to use MaybeUninit
Remove uses of mem::uninitialized, which is now deprecated
2019-07-23 10:14:46 -04:00
Saleem Jaffer
3730ed9e5b renames EvalErrorPanic to PanicMessage 2019-07-23 16:42:46 +05:30
bors
3ebca72a11 Auto merge of #61779 - Zoxc:sharded, r=oli-obk
Use sharded maps for interning

Cuts down runtime from 5.5s to 3.8s for non-incremental `syntex_syntax` check builds with 16 threads / 8 cores.

r? @eddyb
2019-07-23 09:58:48 +00:00
Saleem Jaffer
90426ed642 moving some variants from InterpError to EvalErrorPanic 2019-07-23 13:37:04 +05:30
Aleksey Kladov
7e612c19be
Update src/librustc_lexer/src/lib.rs
Co-Authored-By: Ralf Jung <post@ralfj.de>
2019-07-23 10:38:18 +03:00
git-iso
1ed375c689
Update stage0.txt
Grammar.
2019-07-22 23:30:21 -04:00