Niko Matsakis
10f7c11092
re-export assert_test_result
for use when testing libtest itself
2018-02-23 10:11:06 -05:00
Seo Sanghyeon
8e4ad29cb9
Disable NEON on musl ARMv7
2018-02-23 21:48:41 +09:00
Niko Matsakis
068e3832cd
update test -- we now give a slightly different error
2018-02-23 07:34:00 -05:00
bors
063deba92e
Auto merge of #47799 - topecongiro:fix-span-of-visibility, r=petrochenkov
...
Fix span of visibility
This PR
1. adds a closing parenthesis to the span of `Visibility::Crate` (e.g. `pub(crate)`). The current span only covers `pub(crate`.
2. adds a `span` field to `Visibility::Restricted`. This span covers the entire visibility expression (e.g. `pub (in self)`). Currently all we can have is a span for `Path`.
This PR is motivated by the bug found in rustfmt (https://github.com/rust-lang-nursery/rustfmt/issues/2398 ).
The first change is a strict improvement IMHO. The second change may not be desirable, as it adds a field which is currently not used by the compiler.
2018-02-23 11:21:29 +00:00
John Paul Adrian Glaubitz
871e82e7a4
bootstrap: Add openssl configuration for sparc-unknown-linux-gnu
2018-02-23 11:20:23 +01:00
John Paul Adrian Glaubitz
a895d438c2
bootstrap: Add missing cputype matching for sparc
2018-02-23 11:18:29 +01:00
bors
928435305a
Auto merge of #48052 - eddyb:deggregate, r=nikomatsakis
...
rustc_mir: handle all aggregate kinds in, and always run, the deaggregator.
This helps with removing`Rvalue::Aggregate` from the MIR, and with enabling more optimizations.
r? @nikomatsakis
2018-02-23 02:21:06 +00:00
Niko Matsakis
0a5f4aebb1
move test to the proper directory and test #[bench]
2018-02-22 20:16:30 -05:00
Niko Matsakis
a0562ec369
delete this test file: it also appears as
...
src/rfc-1937-termination-trait/termination-trait-for-result-box-error_ok.rs
2018-02-22 20:16:06 -05:00
varkor
8b2037c6fe
Introduce UnpackedKind
...
This adds an `UnpackedKind` type as a typesafe counterpart to `Kind`. This should make future changes to kinds (such as const generics!) more resilient, as the type-checker should catch more potential issues.
2018-02-23 01:13:54 +00:00
Corey Farwell
b1a6c8bdd3
Stabilize [T]::rotate_{left,right}
...
https://github.com/rust-lang/rust/issues/41891
2018-02-22 20:12:38 -05:00
Niko Matsakis
e0ed88df3d
add test for fn main() -> !
2018-02-22 20:10:36 -05:00
Niko Matsakis
067c2e3d03
handle #[bench]
functions better
2018-02-22 20:09:10 -05:00
Niko Matsakis
31f66a060c
reset default binding mode when we pass through a &
pattern
...
Fixes #46688 .
2018-02-22 19:47:03 -05:00
Santiago Pastorino
6a74615fe3
Run rustfmt over bitvec.rs and region_infer/values.rs
2018-02-22 21:27:52 -03:00
Santiago Pastorino
aa3409c898
Fix typo otherwies -> otherwise
2018-02-22 21:27:52 -03:00
Santiago Pastorino
ff9eb56c6e
Use Sparse bitsets instead of dense ones for NLL results
...
Fixes #48170
2018-02-22 21:27:26 -03:00
Manish Goregaokar
d9438c30d5
Add ToString and FromStr impls for Epoch
2018-02-22 15:37:56 -08:00
Niko Matsakis
8f35141fba
remove tokenstream
2018-02-22 18:26:01 -05:00
bors
5de90898de
Auto merge of #48343 - Mark-Simulacrum:release-step, r=kennytm
...
Update nightly to 1.26.0 and bootstrap from beta.
2018-02-22 23:25:39 +00:00
Santiago Pastorino
e5d79c4bc7
Move word type and word size usage to constants & make it of 128 bits
2018-02-22 20:15:53 -03:00
Jeremy Fitzhardinge
56a6828533
Implement --remap-path-prefix
...
Remove experimental -Zremap-path-prefix-from/to, and replace it with
the stabilized --remap-path-prefix=from=to variant.
This is an implementation for issue of #41555 .
2018-02-22 15:13:21 -08:00
kennytm
0d300d4b9d
Split test::Docs into one Step for each book.
...
The *.md at the root directory in src/doc are no longer tested, but this
should be fine since all files there are deprecated.
2018-02-23 07:09:46 +08:00
kennytm
51238c77e6
CI: Fixed the incorrect folder region when building codegen dylib.
2018-02-23 07:09:46 +08:00
kennytm
f6e4751ebe
Disallow toolstate regression at the last week of the 6-week cycle.
2018-02-23 07:09:45 +08:00
Niko Matsakis
5f1e78f19a
move Termination trait to std::process
2018-02-22 17:57:08 -05:00
Niko Matsakis
e446f706a8
put the "unit test" logic into libtest
...
Also make `std::termination` module public and rename feature.
The lib feature needs a different name from the language feature.
2018-02-22 17:56:24 -05:00
Niko Matsakis
0625d4c282
begin crate-relative paths with crate
2018-02-22 17:31:37 -05:00
Niko Matsakis
1eab1b19a3
support unit tests with return values that implement Terminaton
...
Extend `Termination` trait with a method to determine what happens
with a unit test.
This commit incorporates work by Bastian Köcher <git@kchr.de>.
2018-02-22 17:31:37 -05:00
Vadim Petrochenkov
98eb4ddbce
Fix parsing of extern paths in types and poly-traits
2018-02-23 00:54:30 +03:00
Matt Brubeck
311fbc9265
[docs] Minor wording changes to drain_filter docs
...
The docs currently say, "If the closure returns false, it will try
again, and call the closure on the next element." But this happens
regardless of whether the closure returns true or false.
2018-02-22 12:05:30 -08:00
kennytm
e18105079e
Submit a comment to the PR in additional to pushing a commit.
...
Fix rust-lang-nursery/rust-toolstate#2 .
2018-02-23 03:30:10 +08:00
kennytm
1acd3789bb
Provides direct link to the PR when toolstate is changed.
...
Fix rust-lang-nursery/rust-toolstate#1 .
2018-02-23 03:30:10 +08:00
Anthony Deschamps
e88fe1d519
Small grammar fix to docs for String::new().
2018-02-22 14:21:54 -05:00
toidiu
4d8b251835
update tracking issue for nll
...
Point to the new tracing issue for nll
2018-02-22 09:13:44 -05:00
bors
b1f8e6fb06
Auto merge of #48399 - GuillaumeGomez:rollup, r=GuillaumeGomez
...
Rollup of 12 pull requests
- Successful merges: #47379 , #47833 , #48106 , #48198 , #48314 , #48325 , #48335 , #48352 , #48354 , #48360 , #48382 , #48397
- Failed merges:
2018-02-22 11:25:16 +00:00
Tatsuyuki Ishi
5a2bec9f45
impl_or_trait_obligations: deduplicate obligations
2018-02-22 18:40:49 +09:00
Tatsuyuki Ishi
619ad716d1
Fix exponential blowup on nested types
2018-02-22 18:40:49 +09:00
Tatsuyuki Ishi
93e6b0d643
Remove needless dedup from projection
2018-02-22 16:57:39 +09:00
Tatsuyuki Ishi
0e26bb7287
Revert "Implement Ord as necessary"
...
This reverts commit c6772b4dcb
.
2018-02-22 16:57:39 +09:00
QuietMisdreavus
8872e7b593
add test for issue 48414 ICE
2018-02-21 19:58:20 -06:00
QuietMisdreavus
bca3b31ab9
proper early-bail condition
2018-02-21 19:57:48 -06:00
Niko Matsakis
566c6ac6ba
add unwind_attributes
feature
2018-02-21 20:39:01 -05:00
QuietMisdreavus
ef30a8fd1c
track extern traits being inlined
2018-02-21 18:33:42 -06:00
QuietMisdreavus
d98449d110
manually release cx.external_traits
while building the new trait
2018-02-21 17:44:49 -06:00
steveklabnik
ef48e0f2b9
Update the book to promote second edition
...
This updates the book repository, but mostly to include
https://github.com/rust-lang/book/pull/1180
TL;DR: the second edition is close enough to done that we should
universally recommend it over the first edition.
2018-02-21 14:26:09 -05:00
Eduard-Mihai Burtescu
713b05f072
rustc_data_structures: add missing #[inline].
2018-02-21 19:21:26 +02:00
Guillaume Gomez
24c17cb1a8
Rollup merge of #48397 - ordovicia:pow_doc, r=GuillaumeGomez
...
Take 2^5 as examples in document of pow()
Fixes #48396 by taking 2^5 as examples.
2018-02-21 16:29:57 +01:00
Guillaume Gomez
c118d37ac4
Rollup merge of #48382 - GuillaumeGomez:fix-rustdoc-test-panic, r=estebank
...
Fix rustdoc test ICE
Fixes #48377 .
r? @QuietMisdreavus
2018-02-21 16:29:56 +01:00
Guillaume Gomez
d9f5eeb57e
Rollup merge of #48360 - redcape:redcape-count-doc-fix, r=cramertj
...
Fix count usize link typo in docs
The docs point to isize when the link should be going to usize instead. Fix the doc.
2018-02-21 16:29:55 +01:00