about summary refs log tree commit diff
path: root/src/test/run-pass
AgeCommit message (Collapse)AuthorLines
2018-08-14Auto merge of #52895 - draganmladjenovic:minmax_qnan, r=alexcrichtonbors-0/+7
run-pass/simd-intrinsic-float-minmax: Force use of qNaN on Mips Workaround for #52746. r? @gnzlbg
2018-08-14#[feature(uniform_paths)]: allow `use x::y;` to resolve through `self::x`, ↵Taylor Cramer-0/+301
not just `::x`.
2018-08-14rustc_resolve: fix special-case for one-segment import paths.Eduard-Mihai Burtescu-0/+110
2018-08-09Don't panic on std::env::vars() when env in null.BurntPizza-0/+29
Fixes #53200
2018-08-09Added regression test for NLL raw pointer cast bugSunjay Varma-0/+35
2018-08-07Rollup merge of #53093 - 0e4ef622:issue-52169-fix, r=petrochenkovkennytm-0/+24
Enable macros to pass $:literal to another macro Fixes #52169.
2018-08-07Rollup merge of #53068 - MajorBreakfast:spawn, r=cramertjkennytm-13/+13
Rename Executor trait to Spawn Renames the `Executor` trait to `Spawn` and the method on `Context` to `spawner`. Note: Best only merge this after we've the alpha 3 announcement post ready. r? @cramertj
2018-08-07Record adjustments and original type for expressions in the generator interiorJohn Kåre Alsaker-0/+35
2018-08-07Auto merge of #51007 - AstralSorcerer:master, r=nagisabors-1/+1
Make globals with private linkage unnamed. Fixes #50862. cc @oli-obk @nagisa
2018-08-06Rename Executor trait to SpawnJosef Reinhard Brandl-13/+13
2018-08-05Enable macros to pass $:literal to another macroMatthew Tran-0/+24
2018-08-05Fix 2018 edition testsvarkor-12/+1
2018-08-05Remove references to unknown feature `io`varkor-7/+1
2018-08-05Fix stage 2 testsvarkor-0/+3
2018-08-05Fix run-pass-fulldeps testsvarkor-68/+2
2018-08-05Convert unknown_features lint into an errorvarkor-312/+3
2018-08-05Remove panic-runtime opt-outvarkor-9/+0
2018-08-05Fix test/run-passvarkor-85/+36
2018-08-05Remove unnecessary or invalid feature attributesvarkor-1/+1
2018-08-02Auto merge of #52890 - djrenren:test-visibility, r=petrochenkovbors-0/+38
Reexport tests without polluting namespaces This should fix issue #52557. Basically now we gensym a new name for the test function and reexport that. That way the test function's reexport name can't conflict because it was impossible for the test author to write it down. We then use a `use` statement to expose the original name using the original visibility.
2018-08-01Rollup merge of #52915 - Zoxc:refine-gen-borrow-analysis, r=eddybPietro Albini-0/+25
Don't count MIR locals as borrowed after StorageDead when finding locals live across a yield terminator This should fix https://github.com/rust-lang/rust/issues/52792. r? @eddyb
2018-08-01Rollup merge of #52876 - cuviper:const-endianness-be, r=kennytmPietro Albini-1/+1
run-pass/const-endianness: negate before to_le() `const LE_I128` needs parentheses to negate the value *before* calling `to_le()`, otherwise it doesn't match the operations performed in the black-boxed part of the test. This only makes a tangible difference on big-endian targets.
2018-08-01Make sure we prepare for thin LTO whenever we are emitting bitcodeColin Pronovost-1/+1
Emitting LLVM bitcode uses ThinLTOBuffers, so we need to prepare for thin LTO or we will likely cause errors in LLVM.
2018-07-31Auto merge of #52234 - petrochenkov:macuse2, r=Mark-Simulacrumbors-0/+22
resolve: Modularize crate-local `#[macro_export] macro_rules` Based on https://github.com/rust-lang/rust/pull/50911, cc https://github.com/rust-lang/rust/pull/50911#issuecomment-401151270 `#[macro_export] macro_rules` items are collected from the whole crate and are planted into the root module as items, so the external view of the crate is symmetric with its internal view and something like `$crate::my_macro` where `my_macro` is `#[macro_export] macro_rules` works both locally and from other crates. Closes https://github.com/rust-lang/rust/issues/52726
2018-07-31Don't count MIR locals as borrowed after StorageDead when finding locals ↵John Kåre Alsaker-0/+25
live across a yield terminator
2018-07-31run-pass/simd-intrinsic-float-minmax: Force use of qNaN on Mipsdragan.mladjenovic-0/+7
Workaround for #52746.
2018-07-30Just tidying upJohn Renner-3/+8
2018-07-30Reexport tests without polluting namespacesJohn Renner-0/+33
2018-07-30run-pass/const-endianness: negate before to_le()Josh Stone-1/+1
`const LE_I128` needs parentheses to negate the value *before* calling `to_le()`, otherwise it doesn't match the operations performed in the black-boxed part of the test. This only makes a tangible difference on big-endian targets.
2018-07-30Auto merge of #52823 - RalfJung:test, r=eddybbors-2/+21
invalid_const_promotion: check if we get the right signal r? @eddyb
2018-07-29resolve: Modularize crate-local `#[macro_export] macro_rules`Vadim Petrochenkov-0/+22
2018-07-29invalid_const_promotion: check if we get the right signalRalf Jung-2/+21
2018-07-27Add the -Zcrate-attr=foo nightly rustc flag to inject crate attributesPietro Albini-0/+21
2018-07-26Rollup merge of #52635 - yodaldevoid:issue_18804, r=oli-obkMark Rousskov-0/+43
Fix #[linkage] propagation though generic functions Fixes #18804 In the non-local branch of `get_static` (where the fix was implemented) `span_fatal` had to be replaced with `bug!` as we have no span in that case.
2018-07-26Rollup merge of #52558 - wesleywiser:ice_melting, r=estebankMark Rousskov-0/+106
Add tests for ICEs which no longer repro Adds tests for some ICEs which no longer repro and closes the associated issues.
2018-07-25Place the ignore comments in the correct file for test issue-18804Gabriel Smith-3/+3
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
2018-07-24Disable regression test for issue #18804 on Emscripten and AsmjsGabriel Smith-0/+3
The Emscripten compiler does not support weak symbols at the moment. Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
2018-07-24Add regression test for issue #18804Gabriel Smith-0/+40
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
2018-07-23Implement 2015 vs 2018 `?` kleene op + testmark-47/+2
2018-07-23Add run-pass test for #44005Wesley Wiser-0/+39
Closes #44005
2018-07-23Add test for #33264Wesley Wiser-0/+39
Closes #33264
2018-07-23Add tests for #34784Wesley Wiser-0/+28
Closes #34784
2018-07-23Auto merge of #50494 - F001:as_cell, r=alexcrichtonbors-0/+21
Implement rfc 1789: Conversions from `&mut T` to `&Cell<T>` I'm surprised that RFC 1789 has not been implemented for several months. Tracking issue: https://github.com/rust-lang/rust/issues/43038 Please note: when I was writing tests for `&Cell<[i32]>`, I found it is not easy to get the length of the contained slice. So I designed a `get_with` method which might be useful for similar cases. This method is not designed in the RFC, and it certainly needs to be reviewed by core team. I think it has some connections with `Cell::update` https://github.com/rust-lang/rust/issues/50186 , which is also in design phase.
2018-07-23use inherent method insteadF001-3/+2
2018-07-23Auto merge of #52571 - oli-obk:promotion_abort, r=nagisabors-0/+38
Abort if a promoted fails to be const evaluable and its runtime checks didn't trigger r? @eddyb cc @RalfJung @nagisa cc https://github.com/rust-lang/rust/issues/49760
2018-07-22Use correct exclusion commentOliver Schneider-1/+2
2018-07-21don't spawn processes on wasmOliver Schneider-0/+2
2018-07-21Rollup merge of #52527 - ljedrz:cleanup_13973, r=oli-obkkennytm-10/+0
Remove duplicate E0396 tests Resolves FIXME #13973 (erroneously marked as #13972). A test for E0396 already exists in `test/ui/const-deref-ptr.rs`.
2018-07-21Rollup merge of #52526 - ljedrz:cleanup_18800, r=alexcrichtonkennytm-1/+0
Enable run-pass/sepcomp-lib-lto.rs on Android #18800 is fixed, so it should be safe to restore this test.
2018-07-20Add trailing newlineOliver Schneider-1/+1