Commit Graph

75967 Commits

Author SHA1 Message Date
kennytm
c144fb79cd
Rollup merge of #48970 - GuillaumeGomez:doc-examples, r=QuietMisdreavus
Add missing examples

r? @QuietMisdreavus
2018-03-15 00:15:49 +08:00
kennytm
57f76783be
Rollup merge of #48964 - QuietMisdreavus:picket-fence, r=GuillaumeGomez
tweak code fences in the rustdoc book

You can stack backticks to create "big code fences" if you're documenting some markdown and need to have code fences inside your code fences. This is especially important in this spot in the Rustdoc Book, because we're showing that using no language specifier on your code blocks is interpreted as using `rust`, but the code blocks here lose their code fences!

`````````markdown
``````markdown
Just showing some recursion, nbd.

```rust
println!("sup");
```
``````

(If you have edit powers in the rust-lang/rust repo, hit the edit button to view the source and see even more recursion :P)
`````````
2018-03-15 00:15:47 +08:00
kennytm
b5f102c7ae
Rollup merge of #48840 - varkor:idxset-cleanup, r=pnkfelix
Remove some unnecessary IdxSet methods

This replaces `IdxSet:: reset_to_empty` with `IdxSet:: clear`, and `IdxSet::elems`/`IdxSet::each_bit` with `IdxSet::iter`. Based on some [comments on #rustc](https://botbot.me/mozilla/rustc/2018-01-23/?msg=96063396).

r? @pnkfelix
2018-03-15 00:15:46 +08:00
kennytm
c65ee94365
Rollup merge of #48831 - GuillaumeGomez:fix-theme-blink, r=QuietMisdreavus
Fix blink when main theme is selected

r? @QuietMisdreavus
2018-03-15 00:15:45 +08:00
kennytm
4ea78d4c84
Rollup merge of #48765 - Phlosioneer:10234-wall-help-message, r=estebank
Add info message for -Wall command

Users coming from other languages (namely C and C++) often expect
to use a -Wall flag. Rustc doesn't support that, and previously it
simply printed that it didn't recognize the "all" lint.

This change makes rustc print out a help message, explaining:
- Why there is no -Wall flag
- How to view all the available warnings
- Point out that the most commonly used warning is -Wunused
- Instead of using a command-line flag, the user should consider
  a !#[warn(unused)] directive in the root of their crate.

I tried to keep the language consistent with the other usage help. Comment if I should change anything.

closes #10234, if accepted.
2018-03-15 00:15:44 +08:00
QuietMisdreavus
017bfc3611 expose #[target_feature] attributes in rustdoc 2018-03-14 10:54:32 -05:00
Boris-Chengbiao Zhou
c21480233e Update RLS 2018-03-14 16:51:41 +01:00
bors
11d9959641 Auto merge of #48864 - oli-obk:miri_incremental_regression, r=eddyb
Cache const eval queries

fixes #48846 (I think, still running more perf tests, but tuple-stress stops recomputing any constants)

r? @michaelwoerister
2018-03-14 15:39:59 +00:00
Aaron Power
f83618b9da
Update RELEASES.md 2018-03-14 14:31:23 +00:00
scalexm
e8f3ed5db2 Add documentation 2018-03-14 15:19:17 +01:00
scalexm
2bbd16de13 Move code into librustc_traits 2018-03-14 14:45:30 +01:00
scalexm
04b228c3e2 Address niko's nits 2018-03-14 14:14:33 +01:00
bors
d089fe974e Auto merge of #48811 - Zoxc:syntax-globals, r=michaelwoerister
Remove syntax and syntax_pos thread locals

This moves `syntax` and `syntax_pos` globals into a struct which are pointed to by thread locals. Most of the changes here are indentation changes in test. It would probably be a good idea to ignore whitespace changes while reviewing. Some indentation is unchanged to avoid merge conflicts.

r? @michaelwoerister
2018-03-14 12:44:17 +00:00
scalexm
1271f0bd25 Add MVP for chalkification 2018-03-14 13:39:58 +01:00
John Kåre Alsaker
cbdf4ec03e Remove syntax and syntax_pos thread locals 2018-03-14 11:56:01 +01:00
snf
06057d9143 try_reserve: updating message for feature-gate-try_reserve.stderr 2018-03-14 03:48:42 -07:00
snf
b08b5ae0ec try_reserve: disabling tests for asmjs, blocked by #48968 2018-03-14 03:48:42 -07:00
snf
92bfcd2b19 implementing fallible allocation API (try_reserve) for Vec, String and HashMap 2018-03-14 03:48:42 -07:00
Vadim Petrochenkov
12ac032c72 Implement import renaming with _ (RFC 2166) 2018-03-14 12:32:53 +03:00
Shotaro Yamada
4a254c0050 Escape stringified expression
Payload of `Literal` token must be escaped.
Also print printable non-ASCII characters.
2018-03-14 18:11:42 +09:00
bors
24e679c375 Auto merge of #48859 - bdrewery:update-libc, r=alexcrichton
Update libc to 0.2.39

CC #42681

r? @alexcrichton
2018-03-14 08:20:23 +00:00
Andrew Cann
a8a0c69191 fix ui test error again 2018-03-14 13:31:02 +08:00
Andrew Cann
b1526ca384 Fixes after rebase 2018-03-14 12:45:14 +08:00
Andrew Cann
81ae93e339 register removed lints 2018-03-14 12:44:52 +08:00
Andrew Cann
00a52a2be3 Fix fallback note 2018-03-14 12:44:52 +08:00
Andrew Cann
5b32211e62 Add note about fallback to !: !Trait error 2018-03-14 12:44:52 +08:00
Andrew Cann
5a6b781266 really actually fix ui test error for real 2018-03-14 12:44:52 +08:00
Andrew Cann
b4f1081af1 really fix ui test errors for real 2018-03-14 12:44:52 +08:00
Andrew Cann
04cad56915 really fix ui test errors 2018-03-14 12:44:51 +08:00
Andrew Cann
a704624ef5 change never_type stabilisation version 2018-03-14 12:44:51 +08:00
Andrew Cann
edb9d2b20d Fix ui test errors 2018-03-14 12:44:51 +08:00
Andrew Cann
59688e119e Make coerce_never lint an error
Remove the coerce_never lint and make the behaviour an error.
2018-03-14 12:44:51 +08:00
Andrew Cann
32ddb30715 Fix version number 2018-03-14 12:44:51 +08:00
Andrew Cann
a9fc3901b0 stabilise feature(never_type)
Replace feature(never_type) with feature(exhaustive_patterns).
feature(exhaustive_patterns) only covers the pattern-exhaustives checks
that used to be covered by feature(never_type)
2018-03-14 12:44:51 +08:00
Andrew Cann
9b15ddb29e remove defaulting to unit
Types will no longer default to `()`, instead always defaulting to `!`.
This disables the associated warning and removes the flag from TyTuple
2018-03-14 12:44:51 +08:00
bors
fab632f975 Auto merge of #48684 - GuillaumeGomez:put-back-ui-json-check, r=petrochenkov
Put back ui json check

r? @petrochenkov
2018-03-14 01:40:42 +00:00
Guillaume Gomez
2e104a77cf update tests 2018-03-14 00:53:24 +01:00
Guillaume Gomez
8c75e18e5d test for putting back check on json 2018-03-14 00:52:17 +01:00
Peter Hrvola
2f2e17341c Speed up SVH computation by using Fingerprint::combine()
Fix #47297

r? @michaelwoerister
2018-03-14 00:10:57 +01:00
Alex Butler
63f654a495
fix #48816 don't print help on indirect compiler ICE 2018-03-13 22:26:29 +00:00
QuietMisdreavus
30adb53f46 talk about intra-links 2018-03-13 17:00:51 -05:00
Jeremy Fitzhardinge
6d534d5880 Clarify usage message for --remap-path-prefix. 2018-03-13 13:26:07 -07:00
bors
c29085761b Auto merge of #48735 - 1011X:master, r=alexcrichton
Move ascii::escape_default to libcore

As requested in #46409, the `ascii::escape_default` method has been added to the core library. All I did was copy over the `std::ascii` module file, remove the (redundant) `AsciiExt` trait, and change some of the documentation to match. None of the tests were changed.

I wasn't sure how to handle the annotations. For `EscapeDefault` and `escape_default()`, I changed them to `#[unstable(feature = "core_ascii", issue = "46409")]`. Is that alright? Or should I leave them as they were?
2018-03-13 19:50:13 +00:00
Michael Lamparski
dc96467e22 Fix ICE on malformed plugin attributes 2018-03-13 15:23:36 -04:00
Michael Lamparski
decbb83f9e Add test for issue 48941
A broken test to be fixed in the next commit.
2018-03-13 15:23:36 -04:00
bobtwinkles
52bb99dcc7 Move 48070 test to ui 2018-03-13 14:52:11 -04:00
bobtwinkles
21a9770d38 Adds a test for #48070
Resolves #48070.
The bug itself was fixed by #48770, but that PR didn't add a test for it.
2018-03-13 14:21:51 -04:00
gnzlbg
01cc5b3e19 add intrinsics for portable packed simd vector reductions 2018-03-13 16:47:48 +01:00
Alex Crichton
0e0f74bcf9 rustc: Embed LLVM bitcode by default on iOS
This commit updates rustc to embed bitcode in each object file generated by
default when compiling for iOS. This was determined in #35968 as a step
towards better compatibility with the iOS toolchain, so let's give it a spin and
see how it turns out!

Note that this also updates the `cc` dependency which should propagate this
change of embedding bitcode for C dependencies as well.
2018-03-13 08:29:19 -07:00
Alex Crichton
1999a3fb41 rustbuild: Tweak CFLAGS to various libstd pieces
* Pass `opt_level(2)` when calculating CFLAGS to get the right flags on iOS
* Unconditionally pass `-O2` when compiling libbacktrace

This should...

Close #48903
Close #48906
2018-03-13 08:28:27 -07:00