Vadim Petrochenkov
c6c6cf9515
AST/HIR: Clarify what the optional name in extern crate items mean
2018-03-17 22:12:21 +03:00
Vadim Petrochenkov
ed5ea5c705
Reject _
in ident
matcher
2018-03-17 22:08:18 +03:00
Vadim Petrochenkov
5d06c890fe
syntax: Make _
an identifier
2018-03-17 22:08:07 +03:00
Yukio Siraichi
fab7020bd9
Add span_suggestion while removing TyRefs based on the snippet String.
2018-03-17 15:53:33 -03:00
Niv Kaminer
d5b55c1159
remove FIXME( #27889 ) since the issue is already fixed
2018-03-17 20:25:23 +02:00
Niv Kaminer
c8be5c3174
remove FIXME( #8372 ) since for-loops wont support borrowing iterators
2018-03-17 20:25:23 +02:00
Niv Kaminer
be73a1f963
remove FIXME( #33435 ) and remove the spurious failures counter measure
2018-03-17 20:25:07 +02:00
Niv Kaminer
0d8fa82eab
remove FIXME( #48116 ) and remove the logic to debug the issue
2018-03-17 20:24:49 +02:00
Niv Kaminer
2c6b7b9323
remove FIXME( #2543 ) and avoid bad copies
2018-03-17 20:24:49 +02:00
Niv Kaminer
fd007559db
remove FIXME( #11094 ) and allow make tests to run on targets besides host
2018-03-17 20:24:49 +02:00
Niv Kaminer
69d12a2b97
remove FIXME( #30046 ) and infer moves on pattern matching
2018-03-17 20:24:49 +02:00
Niv Kaminer
622c44510f
remove FIXME( #37712 ) and implement ItemLikeVisitor instead of Visitor
2018-03-17 20:24:49 +02:00
Niv Kaminer
4a06708d30
remove FIXME( #39119 ) and allow running test on emscripten
2018-03-17 20:24:49 +02:00
Niv Kaminer
3753e1a55a
update FIXME( #5244 ) to point to RFC 1109 (Non-Copy array creation ergonomics)
2018-03-17 20:24:49 +02:00
Niv Kaminer
e1b9bf0702
update FIXME( #23442 ) to point to issue 45742 (Blanket impl of AsRef for Deref)
2018-03-17 20:24:49 +02:00
Niv Kaminer
d1dacddfc7
update FIXME( #7622 ) to point to issue 44580 (tracking issue for const generics)
2018-03-17 20:24:49 +02:00
Niv Kaminer
ba836f4b5f
update FIXME( #15760 ) to point to issue 27336 (tracking issue for Default Type Parameter Fallback)
2018-03-17 20:24:49 +02:00
Niv Kaminer
7278e37d38
update FIXME( #6393 ) to point to issue 43234 (tracking issue for non-lexical lifetimes)
2018-03-17 20:24:27 +02:00
Alex Crichton
6fd4d67819
rustbuild: Tweak where timing information goes
...
This commit tweaks where timing and step information is printed out as part of
the build, ensuring that we do it as close to the location where work happens as
possible. In rustbuild various functions may perform long blocking work as
dependencies are assembled, so if we print out timing information early on we
may accidentally time more than just the step we were intending to time!
2018-03-17 10:59:41 -07:00
bors
adf2135adc
Auto merge of #48936 - Zoxc:cstore, r=michaelwoerister
...
Make CrateMetadata and CStore thread-safe
r? @michaelwoerister
2018-03-17 17:30:14 +00:00
csmoe
9f5a356c1d
improve attribute trailing semicolon error
2018-03-17 21:23:41 +08:00
Martin Hoffmann
d664b8954e
Rewrite the documentation for BorrowMut.
2018-03-17 14:09:45 +01:00
Martin Hoffmann
5bef034b19
Bring back the phrase 'borrowing as' for what Borrow does.
2018-03-17 14:05:24 +01:00
John Kåre Alsaker
f53d4af223
Remove unused imports
2018-03-17 14:03:37 +01:00
Simon Sapin
89ecb0d542
Mark deprecated unstable SipHasher13 as a doc-hidden impl detail of HashMap.
...
It stays in libcore rather than being private in HashMap’s module
because it shares code with the deprecated *stable* `SipHasher` type.
2018-03-17 13:04:13 +01:00
bors
61b6bf54fd
Auto merge of #49106 - kennytm:rollup, r=kennytm
...
Rollup of 8 pull requests
- Successful merges: #48943 , #48960 , #48983 , #49055 , #49057 , #49077 , #49082 , #49083
- Failed merges:
2018-03-17 11:39:38 +00:00
Simon Sapin
e09dbbc39e
Add an example of lossy decoding to str::Utf8Error docs
2018-03-17 11:17:11 +01:00
Simon Sapin
c5f020a640
Make the deprecated unstable SipHasher24 type private.
...
It is still used by the deprecated *stable* `SipHasher` type.
2018-03-17 11:07:02 +01:00
kennytm
ef9581e757
Rollup merge of #49083 - oli-obk:mopsgeschwindigkeit, r=michaelwoerister
...
Only generate miri backtraces if explicitly requested
fixes #49072
fixes #48888
r? @michaelwoerister
2018-03-17 17:20:49 +08:00
kennytm
7638c9fd84
Rollup merge of #49082 - SimonSapin:mu, r=alexcrichton
...
Remove deprecated unstable alloc::heap::EMPTY constant
2018-03-17 17:20:48 +08:00
kennytm
f24e35cabd
Rollup merge of #49077 - sinkuu:macro_use_typo, r=estebank
...
Checks for unknown attributes before aborting due to unresolved macros
Fixes #49074
The ``attribute `...` is currently unknown to the compiler`` error was not shown if there are any unresolved macros, which might be caused by mistyped `macro_use`.
2018-03-17 17:20:47 +08:00
kennytm
c78426bfc8
Rollup merge of #49057 - Zoxc:fast-submodules, r=alexcrichton
...
Faster submodule updating
For the common case when there are no submodules which need updating, this takes 0.48 seconds instead of 47 seconds.
r? @alexcrichton
2018-03-17 17:20:46 +08:00
kennytm
a2289dadb0
Rollup merge of #49055 - alexcrichton:ship-more-libs, r=nikomatsakis
...
rustbuild: Add more MinGW libraries to ship
Closes #49044
2018-03-17 17:20:44 +08:00
kennytm
b724c69374
Rollup merge of #48983 - gnzlbg:red, r=alexcrichton
...
add intrinsics for portable packed simd vector reductions
Adds the following portable vector reduction intrinsics:
* fn simd_reduce_add<T, U>(x: T) -> U;
* fn simd_reduce_mul<T, U>(x: T) -> U;
* fn simd_reduce_min<T, U>(x: T) -> U;
* fn simd_reduce_max<T, U>(x: T) -> U;
* fn simd_reduce_and<T, U>(x: T) -> U;
* fn simd_reduce_or<T, U>(x: T) -> U;
* fn simd_reduce_xor<T, U>(x: T) -> U;
I've also added:
* fn simd_reduce_all<T>(x: T) -> bool;
* fn simd_reduce_any<T>(x: T) -> bool;
These produce better code that what we are currently producing in `stdsimd`, but the code is still not optimal due to this LLVM bug: https://bugs.llvm.org/show_bug.cgi?id=36702
r? @alexcrichton
2018-03-17 17:20:43 +08:00
kennytm
c9d06a4a4e
Rollup merge of #48960 - nikomatsakis:issue-48468-dyn-trait-elision, r=cramertj
...
resolve `'_` in `dyn Trait` just like ordinary elision
r? @cramertj
Fixes #48468
2018-03-17 17:20:42 +08:00
kennytm
2a7dac05e7
Rollup merge of #48943 - comex:verbose, r=kennytm
...
Support extra-verbose builds
- The bootstrap crate currently passes -v to Cargo if itself invoked with -vv. But Cargo supports -vv (to show build script output), so make bootstrap pass that if itself invoked with -vvv. (More specifically, pass N '-v's to Cargo if invoked with N+1 of them.)
- bootstrap.py currently tries to pass on up to two '-v's to cargo when building bootstrap, but incorrectly ('-v' is marked as 'store_true', so argparse stores either False or True, ignoring multiple '-v's). Fix this, allow passing any number of '-v's, and make it consistent with bootstrap's invocation of Cargo (i.e. subtract one from the number of '-v's).
- Also improve bootstrap.py's config.toml 'parsing' to support arbitrary verbosity levels, + allow command line to override it.
2018-03-17 17:20:41 +08:00
bors
c3fd5d0dde
Auto merge of #48904 - Zoxc:code-and-file-maps, r=michaelwoerister
...
Make CodeMap and FileMap thread-safe
r? @michaelwoerister
2018-03-17 08:54:22 +00:00
Mike Hommey
b910d6b93c
Use associated consts for GenericRadix base and prefix
2018-03-17 15:49:37 +09:00
bors
8cabda4ce8
Auto merge of #49090 - QuietMisdreavus:test-rustdoc-again, r=Mark-Simulacrum
...
re-enable testing librustdoc
This was originally put in in https://github.com/rust-lang/rust/pull/44274 , but https://github.com/rust-lang/rust/pull/48105 accidentally hid it. This change puts librustdoc unit/doc tests back in the main test listing.
fixes https://github.com/rust-lang/rust/issues/44237 (again)
2018-03-17 03:15:21 +00:00
Mike Hommey
38cbdcd0b1
Use an uninitialized buffer in GenericRadix::fmt_int, like in Display::fmt for numeric types
...
The code using a slice of that buffer is only ever going to use
bytes that are subsequently initialized.
2018-03-17 10:42:34 +09:00
Mike Hommey
9e62681912
Remove core::fmt::num::Decimal
...
Before ebf9e1aaf6
, it was used for Display::fmt, but ebf9e1aaf6
replaced
that with a faster implementation, and nothing else uses it.
2018-03-17 10:32:31 +09:00
bors
cf5cc2e41e
Auto merge of #49088 - michaelwoerister:fix-49070, r=nikomatsakis
...
incr.comp.: Make sanity check in try_mark_green() aware of error conditions.
Before this PR, `DepGraph::try_mark_green()` assumed that forcing a query would always set the color of the corresponding dep-node. However, it did not take into account that queries could also fail (e.g. with a cycle error). This PR makes the method handle that condition gracefully.
Fixes #49070 .
r? @nikomatsakis
2018-03-17 00:48:10 +00:00
Aleksey Kladov
b15b023226
Update Cargo
...
This notably includes
* https://github.com/rust-lang/cargo/pull/5152
* https://github.com/rust-lang/cargo/pull/5188
The first one switches cargo from docopt to clap (
we also update to the latest calp in this repository),
the second one should help us to unify feature flags
for Cargo itself and RLS, and build Cargo libray only
once.
2018-03-17 02:20:22 +03:00
QuietMisdreavus
b5ab5ceb4b
talk about --resource-suffix
2018-03-16 15:06:36 -05:00
Alex Crichton
60eb308b42
ci: Run fewer tests on asmjs
...
Many tests run on the asmjs builder like compile-fail, ui, parse-fail, etc,
aren't actually specific to asm.js. Instead of running redundant test suites
this commit changes things up to only run tests that actually emit JS we then
pass to node.
2018-03-16 12:53:51 -07:00
Alex Crichton
1c4b9c1034
ci: Disable optimized tests for asm.js
...
Since all tests are compiled with LTO effectively in Emscripten this commit
disables optimizations to hopefully squeeze some more time out of the CI
builders.
Closes #48826
2018-03-16 12:47:49 -07:00
bors
55c984ee5d
Auto merge of #48097 - oli-obk:did_you_mean_to_run_rls_with_clippy, r=nrc
...
Automatically enable the `clippy` feature of `rls` if clippy builds
r? @nrc
cc @Manishearth
2018-03-16 19:45:10 +00:00
QuietMisdreavus
6b2906018f
talk about --themes and --theme-checker
2018-03-16 14:41:51 -05:00
QuietMisdreavus
cc4f97e883
talk about --sort-modules-by-appearance
2018-03-16 14:30:56 -05:00
QuietMisdreavus
33ed787b49
talk about --linker
2018-03-16 13:46:10 -05:00