about summary refs log tree commit diff
path: root/src/test/run-pass
AgeCommit message (Collapse)AuthorLines
2018-06-16rustc_codegen_llvm: don't treat i1 as signed, even for #[repr(i8)] enums.Eduard-Mihai Burtescu-0/+27
2018-06-11Remove some '#[feature]' attributes for stabilized featuresSimon Sapin-5/+2
2018-06-11Remove some unneeded castsSimon Sapin-2/+2
2018-06-11Replace `impl GlobalAlloc for Global` with a set of free functionsMike Hommey-3/+3
2018-06-11Remove alloc::Opaque and use *mut u8 as pointer type for GlobalAllocMike Hommey-8/+8
2018-06-10Enable fall through past $:lifetime matcherDavid Tolnay-0/+43
2018-06-10Auto merge of #51196 - Havvy:remove-keywords, r=petrochenkovbors-0/+22
Implement RFC 2421, 'Keyword unreservations (pure, sizeof, alignof, offsetof) On my local machine I was getting failures in `test/ui-fulldeps`, but I was also getting them again after reverting the change, so I'm hoping that this works. I removed the test because that's what the other PR that unreserved a keyword did and I feel that it doesn't make sense/keep value to keep a test for something removed years ago.
2018-06-10Auto merge of #51320 - tmccombs:step-by, r=SimonSapinbors-3/+0
Stabilize Iterator::step_by Fixes #27741
2018-06-09Test keyword unreservationsHavvy-0/+22
2018-06-09Auto merge of #51400 - xfix:patch-6, r=kennytmbors-16/+19
Increase number of usages of `u8` in weird expressions u8 test
2018-06-08Rollup merge of #51276 - Havvy:dyn-trait-send-send, r=nikomatsakisMark Rousskov-0/+53
Dedup auto traits in trait objects. Fixes #47010 Note that the test file `run-pass/trait-object-auto-dedup.rs` passes before and after this change. It's the `ui` test that changed from compiling to not compiling. Which does make this a breaking change, but I cannot imagine anybody actually being broken by it.
2018-06-08Rollup merge of #50143 - petrochenkov:mexuniq, r=nikomatsakisMark Rousskov-2/+17
Add deprecation lint for duplicated `macro_export`s cc https://github.com/rust-lang/rust/issues/35896#issuecomment-381370556
2018-06-07Revert "Auto merge of #49719 - mark-i-m:no_sep, r=petrochenkov"Pietro Albini-6/+23
This reverts commit d6ba1b9b021c408fcad60ee52acf8af5e1b2eb00, reversing changes made to 8de5353f75dcde04abe947e0560dc5edd861cf3a.
2018-06-06Auto merge of #51263 - cramertj:futures-in-core, r=aturonbors-0/+95
Add Future and task system to the standard library This adds preliminary versions of the `std::future` and `std::task` modules in order to unblock development of async/await (https://github.com/rust-lang/rust/issues/50547). These shouldn't be considered as final forms of these libraries-- design questions about the libraries should be left on https://github.com/rust-lang/rfcs/pull/2418. Once that RFC (or a successor) is merged, these APIs will be adjusted as necessary. r? @aturon
2018-06-06Add Future and task system to the standard libraryTaylor Cramer-0/+95
2018-06-06Increase number of usages of `u8` in weird expressions u8 testKonrad Borowski-16/+19
2018-06-05Rollup merge of #51358 - barzamin:tests-39963, r=oli-obkMark Simulacrum-0/+29
Tests that #39963 is fixed on MIR borrowck As title. fixes #39963
2018-06-04tests that #39963 is fixed on MIR borrowckErin Moon-0/+29
2018-06-04test: Ignore some problematic tests on sparc and sparc64John Paul Adrian Glaubitz-0/+4
2018-06-04Auto merge of #51328 - oli-obk:no_union_promotion, r=eddybbors-48/+11
Do not promote union field accesses r? @eddyb technically a breaking change, but the code errored on the previous stable and produces UB + a warning on the current stable. I don't think we need a crater run in that case.
2018-06-03Deduplicate and fix a testOliver Schneider-48/+11
2018-06-03Ignore i128 test on asmjsLinus Färnstrand-4/+9
2018-06-02Stabilize Iterator::step_byThayne McCombs-3/+0
Fixes #27741
2018-06-03Pass literal through black_boxLinus Färnstrand-4/+8
2018-06-02Add test for const endianess conversionLinus Färnstrand-0/+23
2018-06-01Dedup auto traits in trait objectsHavvy-0/+53
2018-06-01Auto merge of #51181 - mbrubeck:prelude, r=petrochenkovbors-0/+49
Add std/core to prelude if extern_prelude enabled Fixes #50605
2018-05-31Add test for intrinsics::bswapLinus Färnstrand-0/+23
2018-05-31Add std/core to prelude if extern_prelude enabledMatt Brubeck-0/+49
Fixes #50605
2018-05-30rustc: don't visit lifetime parameters through visit_lifetime.Eduard-Mihai Burtescu-0/+17
2018-05-30Prohibit duplicate `macro_export`sVadim Petrochenkov-2/+17
2018-05-30Auto merge of #50880 - glandium:oom, r=SimonSapinbors-7/+7
OOM handling changes As discussed in https://github.com/rust-lang/rust/issues/49668#issuecomment-384893456 and subsequent. This does have codegen implications. Even without the hooks, and with a handler that ignores the arguments, the compiler doesn't eliminate calling `rust_oom` with the `Layout`. Even if it managed to eliminate that, with the hooks, I don't know if the compiler would be able to figure out it can skip it if the hook is never set. A couple implementation notes: - I went with explicit enums rather than bools because it makes it clearer in callers what is being requested. - I didn't know what `feature` to put the hook setting functions behind. (and surprisingly, the compile went through without any annotation on the functions) - There's probably some bikeshedding to do on the naming. Cc: @Simonsapin, @sfackler
2018-05-29Tests illustrating the bug fixes for #27282 and #24535.Felix S. Klock II-0/+68
2018-05-30Pass a `Layout` to `oom`Mike Hommey-7/+7
As discussed in https://github.com/rust-lang/rust/issues/49668#issuecomment-384893456 and subsequent, there are use-cases where the OOM handler needs to know the size of the allocation that failed. The alignment might also be a cause for allocation failure, so providing it as well can be useful.
2018-05-28Auto merge of #50521 - gnzlbg:simd_float, r=alexcrichtonbors-0/+301
Add simd math intrinsics and gather/scatter This PR adds simd math intrinsics for floating-point vectors (sqrt, sin, cos, pow, exp, log, fma, abs, etc.) and the generic simd gather/scatter intrinsics.
2018-05-25Don't use a char that's already used within the exprJaro Fietz-1/+1
2018-05-25Call itJaro Fietz-0/+1
2018-05-25What does an expression look like, that consists only of special characters?Jaro Fietz-0/+6
2018-05-24add comment explaining ignore androidgnzlbg-0/+4
2018-05-24just ignore androidgnzlbg-1/+1
2018-05-24ignore arm-androidgnzlbg-0/+1
2018-05-24refactorgnzlbg-1/+0
2018-05-24add gather/scatter tests for pointers of pointersgnzlbg-0/+71
2018-05-24add gather/scatter run-time testgnzlbg-0/+80
2018-05-24add run-time test and missing codegen testgnzlbg-0/+90
2018-05-24move simd-minmax-test to run-pass; require llvm 7gnzlbg-0/+56
2018-05-22Fix a typo in a commentOliver Schneider-1/+1
2018-05-22Report let bindings and statements as unstableOliver Schneider-1/+1
2018-05-22Allow let bindings in const fn and constantsOliver Schneider-0/+118
2018-05-21Auto merge of #50812 - kennytm:fix-50756-miri-bad-float-behavior, r=oli-obkbors-0/+65
Fix issue #50811 (`NaN > NaN` was true). Fix #50811 Make sure the float comparison output is consistent with the expected behavior when NaN is involved. ---- Note: This PR is a **BREAKING CHANGE**. If you have used `>` or `>=` to compare floats, and make the result as the length of a fixed array type, like: ```rust use std::f64::NAN; let x: [u8; (NAN > NAN) as usize] = [1]; ``` then the code will no longer compile. Previously, all float comparison involving NaN will just return "Greater", i.e. `NAN > NAN` would wrongly return `true` during const evaluation. If you need to retain the old behavior (why), you may replace `a > b` with `a != a || b != b || a > b`.