about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2018-03-21Auto merge of #49200 - oli-obk:extern_static_metadata, r=michaelwoeristerbors-0/+21
Encode/decode extern statics in metadata and incremental cache fixes #49153 cc @abonander r? @michaelwoerister incremental ICE
2018-03-21Rollup merge of #49196 - Phlosioneer:49123-sort-where-conditions, ↵kennytm-2/+0
r=QuietMisdreavus Fix ordering of auto-generated trait bounds in rustdoc output While the order of the where clauses was deterministic, the ordering of bounds and lifetimes was not. This made the order flip- flop randomly when new traits and impls were added to libstd. This PR makes the ordering of bounds and lifetimes deterministic, and re-enables the test that was causing the issue. Fixes #49123
2018-03-20Auto merge of #49190 - kennytm:rollup, r=kennytmbors-3/+165
Rollup of 17 pull requests - Successful merges: #46518, #48810, #48834, #48902, #49004, #49092, #49096, #49099, #49104, #49125, #49139, #49152, #49157, #49161, #49166, #49176, #49184 - Failed merges:
2018-03-20Encode/decode extern statics in metadata and incremental cacheOliver Schneider-0/+21
2018-03-20Auto merge of #48516 - petrochenkov:stabsl, r=nikomatsakisbors-151/+97
Stabilize slice patterns without `..` And merge `feature(advanced_slice_patterns)` into `feature(slice_patterns)`. The detailed description can be found in https://github.com/rust-lang/rust/issues/48836. Slice patterns were unstable for long time since before 1.0 due to many bugs in the implementation, now this stabilization is possible primarily due to work of @arielb1 who [wrote the new MIR-based implementation of slice patterns](https://github.com/rust-lang/rust/pull/32202) and @mikhail-m1 who [fixed one remaining class of codegen issues](https://github.com/rust-lang/rust/pull/47926). Reference PR https://github.com/rust-lang-nursery/reference/pull/259 cc https://github.com/rust-lang/rust/issues/23121 fixes #48836
2018-03-19Fix ordering of auto-generated trait bounds in rustdoc outputPhlosioneer-2/+0
While the order of the where clauses was deterministic, the ordering of bounds and lifetimes was not. This made the order flip- flop randomly when new traits and impls were added to libstd. This PR makes the ordering of bounds and lifetimes deterministic, and re-enables the test that was causing the issue. Fixes #49123
2018-03-20Rollup merge of #49166 - dileepbapat:pr-49133, r=nikomatsakiskennytm-3/+3
#49133 - Reworded the Error message: "`pub` not needed here" message
2018-03-20Rollup merge of #49157 - estebank:const-into, r=oli-obkkennytm-0/+36
Do not suggest `.into()` in `const`s Fix #49100.
2018-03-20Stabilize slice patterns without `..`Vadim Petrochenkov-151/+97
Merge `feature(advanced_slice_patterns)` into `feature(slice_patterns)`
2018-03-20Rollup merge of #49104 - csmoe:semicolon_error, r=petrochenkovkennytm-0/+20
improve error message of inner attribute syntax Fixes #49040
2018-03-20Rollup merge of #48834 - ysiraichi:suggest-remove-ref, r=estebankkennytm-0/+106
Suggest removing `&`s This implements the error message discussed in #47744. We check whether removing each `&` yields a type that satisfies the requested obligation. Also, it was created a new `NodeId` field in `ObligationCause` in order to iterate through the `&`s. The way it's implemented now, it iterates through the obligation snippet and counts the number of `&`. r? @estebank
2018-03-19Auto merge of #49058 - withoutboats:pin, r=cramertjbors-0/+2
Pin, Unpin, PinBox Implementing rust-lang/rfcs#2349 (do not merge until RFC is merged) @bors r? @cramertj
2018-03-19Okay this is the right way.boats-3/+1
2018-03-19Comment out entire test.boats-1/+3
2018-03-19Ignore properly.boats-3/+1
2018-03-19Comment out flakey test.boats-0/+4
2018-03-19Do not suggest `.into()` in `const`sEsteban Küber-0/+36
2018-03-19#49133 - Reworded the Error message: "`pub` not needed here" messageDileep Bapat-3/+3
2018-03-19Auto merge of #49079 - oli-obk:cross_miri, r=michaelwoeristerbors-0/+18
Cleanup metadata and incremental cache processing of constants fixes #49033 fixes #49081 we really need tests for this. do we have any cross compilation tests? I couldn't find any
2018-03-19Auto merge of #49091 - nikomatsakis:issue-49043-ty-infer-hash, ↵bors-0/+22
r=michaelwoerister extend stable hasher to support `CanonicalTy` Fixes #49043 r? @michaelwoerister
2018-03-19Auto merge of #49095 - alexcrichton:debug-asmjs, r=kennytmbors-3/+24
Try to reduce amount of time on the asmjs builder This PR has two commits for two separate strategies: * First it disables optimizations for all tests, hopefully saving time by not optimizing the test code. This caused a number of run-pass tests to fail which are switched to being ignored here. * Next it disables a number of test suites which aren't asm.js specific and already run elsewhere cc #48826
2018-03-18Review fixes.Yukio Siraichi-16/+13
- `span_suggestion` changed to `span_suggestion_short`; - `Span` used changed to contain only `&` refs; - Tests passing.
2018-03-18Rebased with master.Yukio Siraichi-3/+3
2018-03-18Created multiple line test.Yukio Siraichi-0/+43
2018-03-18New test added.Yukio Siraichi-2/+35
2018-03-18Test added.Yukio Siraichi-0/+33
2018-03-18Auto merge of #48985 - scalexm:lowering, r=nikomatsakisbors-0/+28
MVP for chalkification r? @nikomatsakis
2018-03-18Auto merge of #48917 - petrochenkov:import, r=oli-obkbors-2/+2
syntax: Make imports in AST closer to the source and cleanup their parsing This is a continuation of https://github.com/rust-lang/rust/pull/45846 in some sense.
2018-03-17Auto merge of #48842 - petrochenkov:under, r=nikomatsakisbors-6/+32
syntax: Make `_` a reserved identifier Why: - Lexically `_` is an identifier. - Internally it makes implementation of `use Trait as _;` (https://github.com/rust-lang/rust/issues/48216) and some other things cleaner. - We prevent the externally observable effect of `_` being accepted by macros expecting `ident` by treating `_` specially in the `ident` matcher: ```rust macro_rules! m { ($i: ident) => { let $i = 10; } } m!(_); // Still an error ```
2018-03-17AST: Make renames in imports closer to the sourceVadim Petrochenkov-2/+2
Fix `unused_import_braces` lint false positive on `use prefix::{self as rename}`
2018-03-17Reject `_` in `ident` matcherVadim Petrochenkov-2/+27
2018-03-17syntax: Make `_` an identifierVadim Petrochenkov-6/+7
2018-03-17Auto merge of #48936 - Zoxc:cstore, r=michaelwoeristerbors-1/+1
Make CrateMetadata and CStore thread-safe r? @michaelwoerister
2018-03-17improve attribute trailing semicolon errorcsmoe-0/+20
2018-03-17Rollup merge of #49077 - sinkuu:macro_use_typo, r=estebankkennytm-0/+43
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-17Rollup merge of #48983 - gnzlbg:red, r=alexcrichtonkennytm-0/+254
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-17Rollup merge of #48960 - nikomatsakis:issue-48468-dyn-trait-elision, r=cramertjkennytm-0/+59
resolve `'_` in `dyn Trait` just like ordinary elision r? @cramertj Fixes #48468
2018-03-16ci: Disable optimized tests for asm.jsAlex Crichton-3/+24
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-16extend stable hasher to support `CanonicalTy`Niko Matsakis-0/+22
2018-03-16Cleanup metadata and incremental cache processing of constantsOliver Schneider-0/+18
2018-03-16Auto merge of #48818 - michaelwoerister:issue-47309, r=eddybbors-0/+31
Properly handle collecting default impls of methods with lifetime parameters. r? @eddyb Fixes #47309.
2018-03-16ignore emscriptengnzlbg-0/+2
2018-03-16Auto merge of #48813 - sinkuu:build_in_assert_macro, r=alexcrichtonbors-2/+14
Make `assert` a built-in procedural macro Makes `assert` macro a built-in one without touching its functionality. This is a prerequisite for RFC 2011 (#44838).
2018-03-16Checks for unknown attributes before abortingShotaro Yamada-0/+43
...due to unresolved macros.
2018-03-16Auto merge of #48524 - abonander:check-macro-stability, r=petrochenkovbors-0/+78
check stability of macro invocations I haven't implemented tests yet but this should be a pretty solid prototype. I think as-implemented it will also stability-check macro invocations in the same crate, dunno if we want that or not. I don't know if we want this to go through `rustc::middle::stability` or not, considering the information there wouldn't be available at the time of macro expansion (even for external crates, right?). r? @nrc closes #34079 cc @petrochenkov @durka @jseyfried #38356
2018-03-16Auto merge of #49051 - kennytm:rollup, r=kennytmbors-133/+400
Rollup of 17 pull requests - Successful merges: #48706, #48875, #48892, #48922, #48957, #48959, #48961, #48965, #49007, #49024, #49042, #49050, #48853, #48990, #49037, #49049, #48972 - Failed merges:
2018-03-16Rollup merge of #49037 - estebank:coherence-tweaks, r=nikomatsakiskennytm-10/+43
Coherence diagnostic tweaks
2018-03-16Rollup merge of #48990 - ExpHP:dont-drop-the-bomb, r=estebankkennytm-0/+39
Fix ICE on malformed plugin attributes See #48941 for some discussion. This bug had several duplicate reports which were never closed as dupes: Fixes #47612 Fixes #48387 Fixes #48941 Fixes #48982
2018-03-16Rollup merge of #49042 - kennytm:fix-e0307-typo, r=rkruppekennytm-1/+1
Remove unnecessary "`" in error message E0307 (invalid self type).
2018-03-16Rollup merge of #49007 - estebank:follow-up-47574, r=oli-obkkennytm-8/+9
Some tweaks to "type parameters from outer function" diagnostic Follow up to #47574.