Commit Graph

75578 Commits

Author SHA1 Message Date
Phlosioneer
c97c7bfcf3 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.
2018-03-06 00:01:30 -05:00
Amanieu d'Antras
88aec91017 Add i128 tests for intrinsics 2018-03-06 03:31:56 +00:00
Amanieu d'Antras
24fb4b7669 Add reverse_bits to integer types 2018-03-06 03:31:53 +00:00
Corey Farwell
2ec47e07ee Remove seemingly unused sugarise-doc-comments Python script.
This Python script converts documentation comments from the
`#[doc = "..."]` attribute to the `///` syntax. It was added six
years ago, presumably to help with the transition when `///` was
implemented and hasn't really been touched since. I don't think there's
much value in keeping it around at this point.
2018-03-05 20:27:02 -05:00
varkor
f69a0999e7 Remove IdxSet::elems 2018-03-06 01:14:38 +00:00
varkor
89d12478ac Remove IdxSet::each_bit 2018-03-06 01:14:36 +00:00
varkor
6701d9020f Remove IdxSet::reset_to_empty 2018-03-06 00:58:01 +00:00
bors
1733a61141 Auto merge of #48456 - mark-i-m:whitelist, r=alexcrichton
Whitelist rustc dependencies

As per https://internals.rust-lang.org/t/rustc-dependency-policy/6537/8?u=nikomatsakis

cc @alexcrichton @nikomatsakis
2018-03-06 00:44:21 +00:00
1011X
aa1ded9286 Remove unnecessary imports 2018-03-05 18:13:56 -05:00
Guillaume Gomez
831009f035 Add resource-suffix option for rustdoc 2018-03-05 23:45:27 +01:00
Guillaume Gomez
a628543891 Don't generate '[+]'/'[-]' on 'empty' traits 2018-03-05 23:39:34 +01:00
1011X
a39b62d838 Copy license into libcore/tests/ascii.rs 2018-03-05 17:02:11 -05:00
1011X
1b3d1fc2aa Move tests, re-export items from core::ascii 2018-03-05 16:39:09 -05:00
Who? Me?!
e5d292013b Add ena to whitelist 2018-03-05 14:43:44 -06:00
Who? Me?!
1423da8b9a Uncomment whitelist 2018-03-05 14:43:44 -06:00
Mark Mansi
bb01f3126d Do check the deps of path deps 2018-03-05 14:43:44 -06:00
Mark Mansi
6180a3f7da enable whitelist 2018-03-05 14:43:44 -06:00
Mark Mansi
1fca9e0430 Don't check in-tree deps 2018-03-05 14:43:44 -06:00
Mark Mansi
18f0533c4c different versions may have different deps 2018-03-05 14:43:44 -06:00
Mark Mansi
0fc5daebfb Add a few missing deps 2018-03-05 14:43:44 -06:00
Mark Mansi
489f2f1206 Remove spurious whitespace 2018-03-05 14:43:44 -06:00
Mark Mansi
f89abd63ca uncomment whitelist 2018-03-05 14:43:44 -06:00
Mark Mansi
e3a374ac7d Fix alexcrichton's comments 2018-03-05 14:43:44 -06:00
Mark Mansi
50876d1ca4 Only check the whitelist for some crates 2018-03-05 14:43:44 -06:00
Mark Mansi
b9b1c378c5 Get the path to cargo from rustbuild 2018-03-05 14:43:44 -06:00
Mark Mansi
6e016c587f Trying to get paths right... 2018-03-05 14:43:44 -06:00
Mark Mansi
3570b9df6a MAKE IT FAILgit statusgit status 2018-03-05 14:43:44 -06:00
Mark Mansi
d62621839a Comments 2018-03-05 14:43:44 -06:00
Mark Mansi
3ee410498d Start adding a whitelist for rustc dependencies 2018-03-05 14:43:44 -06:00
Mark Mansi
2cb8c5fff6 Run rustfmt on tidy/src/deps.rs 2018-03-05 14:43:44 -06:00
leonardo.yvens
2e7e68b762 while let all the things 2018-03-05 15:58:54 -03:00
bors
c9334404f0 Auto merge of #48208 - michaelwoerister:track-features, r=petrochenkov
Turn feature-gate table into a query so it is covered by dependency tracking.

Turn access to feature gates into a query so we handle them correctly during incremental compilation.

Features are still available via `Session` through `features_untracked()`. I wish we had a better way of hiding untracked information. It would be great if we could remove the `sess` field from `TyCtxt`.

Fixes #47003.
2018-03-05 18:39:40 +00:00
Tobias Bucher
88f32d15af Remove a couple of isize references from hashmap docs
Also fix a spelling mistake.
2018-03-05 18:37:05 +01:00
topecongiro
05a9acc3b8 Implement FromStr for PathBuf 2018-03-06 01:03:16 +09:00
Songbird0
6d71aa47fb
Fix spelling error for whitespaces. 2018-03-05 14:33:37 +01:00
Michael Woerister
93625f12e0 Fix some merge fallout. 2018-03-05 11:05:01 +01:00
Michael Woerister
17b72bc1ea Fix procedural_mbe_matching test case after libsyntax change. 2018-03-05 11:05:01 +01:00
Michael Woerister
9f8b9a0d3e incr.comp.: Add regression test for detecting feature gate changes. 2018-03-05 11:05:01 +01:00
Michael Woerister
542bc75dea Turn features() into a query. 2018-03-05 11:05:01 +01:00
bobtwinkles
c0d41fb22c Update issue-48276 test to new stderr format 2018-03-05 04:20:04 -05:00
bobtwinkles
264c2013eb Fix #48276
The ExplicitSelf::determine function expects to be able to compare regions.
However, when the compare_self_type error reporting code runs we haven't
resolved bound regions yet. Thus we replace them with free regions first.
2018-03-05 02:47:08 -05:00
Songbird0
ef1aae1cc2
Modify wording and remove useless whitespaces. 2018-03-05 03:57:33 +01:00
1011X
9bfc062723 Fix doc example, and change fn annotation to stable 2018-03-04 20:32:44 -05:00
1011X
1a4aa1eb6e Fix doc example 2018-03-04 18:36:32 -05:00
bors
e2746d8700 Auto merge of #48736 - alexcrichton:fix-rust-src, r=3
Include stdsimd in rust-src component

Closes #48734
2018-03-04 22:24:20 +00:00
Songbird0
247fc38aeb
Tidy error: add a new line
The error was:

```
[00:05:25] tidy error: /checkout/src/libcore/num/mod.rs:3848: trailing whitespace
[00:05:25] tidy error: /checkout/src/libcore/num/mod.rs:3851: line longer than 100 chars
[00:05:25] tidy error: /checkout/src/libcore/num/mod.rs:3851: trailing whitespace
[00:05:26] some tidy checks failed
```
The line was truncated to 92 characters.
2018-03-04 22:18:42 +01:00
Songbird0
c68440cad4
Add a potential cause raising ParseIntError.
Initially, I wanted to add it directly to the documentation of `str. parse()' method, I finally found that it was more relevant (I hope so?) to directly document the structure in question. I've added a scenario, in which we could all get caught at least once, to make it easier to diagnose the problem when parsing integers.
2018-03-04 21:59:53 +01:00
Alex Crichton
2f2ac9ac47 Include stdsimd in rust-src component
Closes #48734
2018-03-04 12:13:21 -08:00
1011X
bebc34003e Fix unintended rename and a doc example 2018-03-04 14:39:14 -05:00
1011X
16076d4750 Declare ascii module in libcore/lib.rs 2018-03-04 13:44:43 -05:00