about summary refs log tree commit diff
path: root/src/test/run-pass
AgeCommit message (Collapse)AuthorLines
2017-08-11Rollup merge of #43752 - arshiamufti:union-test, r=estebankGuillaume Gomez-0/+5
Add IRC's `!union union` as a test, addresses #43553 This pull request adds a new test, `union` to `weird-exprs.rs`.
2017-08-11Auto merge of #43745 - kennytm:fix-43162, r=aturonbors-0/+6
Type-check `break value;` even outside of `loop {}`. Fix #43162, fix #43727.
2017-08-11Auto merge of #43743 - michaelwoerister:gcx-tcx-switcheroo, r=eddybbors-0/+5
Some assorted region hashing fixes. This PR contains three changes. 1. It changes what we implement `HashStable` for. Previously, the trait was implemented for things in the local `TyCtxt`. That was OK, since we only invoked hashing with a `TyCtxt<'_, 'tcx, 'tcx>` where there is no difference. With query result hashing this becomes a problem though. So we now implement `HashStable` for things in `'gcx`. 2. The PR makes the regular `HashStable` implementation *not* anonymize late-bound regions anymore. It's a waste of computing resources and it's not clear that it would always be correct to do so. 3. The PR adds an option for stable hashing to treat all regions as erased and uses this new option when computing the `TypeId`. This should help with https://github.com/rust-lang/rust/issues/41875. I did not add a test case for (3) since that's not possible yet. But it looks like @zackmdavis has something in the pipeline there `:)`. r? @eddyb
2017-08-10Merge remote-tracking branch 'origin/master' into genAlex Crichton-0/+23
2017-08-10For box expressions, use NZ drop instead of a free blockAriel Ben-Yehuda-0/+6
This falls naturally out of making drop elaboration work with `box` expressions, which is probably required for sane MIR borrow-checking. This is a pure refactoring with no intentional functional effects.
2017-08-09Add a failing xcrate generator testAlex Crichton-5/+18
2017-08-09Initial pass review commentsAlex Crichton-2/+57
2017-08-09Merge remote-tracking branch 'origin/master' into genAlex Crichton-7/+79
2017-08-09Erase/anonymize regions while computing TypeId hash.Michael Woerister-0/+5
2017-08-09Type-check `break value;` even outside of `loop {}`.kennytm-0/+6
Fix #43162, fix #43727.
2017-08-08Avoid calling the column!() macro in panicest31-0/+23
2017-08-04Unskip some tests on AArch64Mátyás Mustoha-6/+0
2017-08-04add testarshiamufti-0/+5
2017-08-03Recognize SPARC in more tests where architecture matters.Danek Duvall-0/+4
2017-08-02Remove unecessary test code #43219Mario Idival-1/+0
2017-07-30save the subobligations as wellNiko Matsakis-0/+74
2017-07-29Auto merge of #43492 - lu-zero:master, r=alexcrichtonbors-0/+1
More Altivec Intrinsics
2017-07-28Make LLVMRustHasFeature more robustLuca Barbato-0/+1
The function should accept feature strings that old LLVM might not support. Simplify the code using the same approach used by LLVMRustPrintTargetFeatures. Dummify the function for non 4.0 LLVM and update the tests accordingly.
2017-07-28Fix testsJohn Kåre Alsaker-23/+23
2017-07-28Convert to spacesJohn Kåre Alsaker-4/+4
2017-07-28Remove support for `gen arg`Alex Crichton-71/+25
2017-07-28Fix a bug with yielding subtypes of the yield type.John Kåre Alsaker-0/+23
2017-07-28Add a test case for conditional dropAlex Crichton-0/+65
2017-07-28Fix testsJohn Kåre Alsaker-11/+16
2017-07-28Use FIXME instead of TODOJohn Kåre Alsaker-1/+1
2017-07-28Ensure upvars are dropped when generators have never been resumedJohn Kåre Alsaker-4/+2
2017-07-28Make yield and gen arg outside generator literals an error and update testsJohn Kåre Alsaker-5/+6
2017-07-28Add some generator pass/fail testsAlex Crichton-0/+442
2017-07-28Fix testsAlex Crichton-4/+7
2017-07-28Added some testsJohn Kåre Alsaker-0/+33
2017-07-28Fix tidy warningsAlex Crichton-10/+10
2017-07-28Generator literal supportJohn Kåre Alsaker-0/+44
2017-07-28Auto merge of #43505 - eddyb:poly-const-eval-layout-of, r=nikomatsakisbors-0/+19
rustc_const_eval: always require Substs and a ParamEnv. Fixes #43357 by tracking the `Substs` and `ParamEnv` for const-evaluation in generic contexts.
2017-07-27rustc_const_eval: keep track of the appropriate ParamEnv.Eduard-Mihai Burtescu-0/+19
2017-07-26Rollup merge of #43465 - topecongiro:needs-test, r=Mark-SimulacrumMark Simulacrum-0/+97
Add tests for issues with the E-needstest label Fixes #19181. Fixes #29516. Fixes #29798. Fixes #33504. Fixes #34780. Fixes #39211. Fixes #39467. Fixes #39720.
2017-07-26Rollup merge of #42959 - SimonSapin:nonzero-checked, r=sfacklerMark Simulacrum-1/+1
Make the "main" constructors of NonZero/Shared/Unique return Option Per discussion in https://github.com/rust-lang/rust/issues/27730#issuecomment-303939441. This is a breaking change to unstable APIs. The old behavior is still available under the name `new_unchecked`. Note that only that one can be `const fn`, since `if` is currently not allowed in constant contexts. In the case of `NonZero` this requires adding a new `is_zero` method to the `Zeroable` trait. I mildly dislike this, but it’s not much worse than having a `Zeroable` trait in the first place. `Zeroable` and `NonZero` are both unstable, this can be reworked later.
2017-07-25Auto merge of #43325 - ollie27:overflowing_literals, r=arielb1bors-3/+5
Fix overflowing_literals lint for large f32s Float literals need to be parsed as the correct type so they can be rounded correctly.
2017-07-25Add tests for issues with the E-needstest labeltopecongiro-0/+97
2017-07-23Fix some doc/comment typos.Bruce Mitchener-3/+3
2017-07-23Lambda expressions honor no struct literal restrictionAleksey Kladov-0/+19
2017-07-22Auto merge of #43382 - mmatyas:aarch64_ignore-stack-probes, r=alexcrichtonbors-0/+2
Ignore stack probe tests on AArch64 Stack probes are only implemented for x86, and as such currently fail on AArch64. This patch ignores those tests on this architecture. Fixes #43356. r? @alexcrichton
2017-07-22Use safe conversion instead of unsafe constructor in issue-23433 testSimon Sapin-1/+1
2017-07-22Rename {NonZero,Shared,Unique}::new to new_uncheckedSimon Sapin-1/+1
2017-07-21Auto merge of #43274 - bitshifter:union-align, r=petrochenkovbors-0/+90
Support repr alignment on unions. Requested as part of RFC 1358 https://github.com/rust-lang/rust/issues/33626#issuecomment-309137284.
2017-07-21Ignore stack probe tests on AArch64Mátyás Mustoha-0/+2
2017-07-19Auto merge of #42859 - eddyb:const-size-and-align-of, r=nikomatsakisbors-0/+60
Implement const fn {size,align}_of. Fixes #34078. r? @nikomatsakis
2017-07-19Implement const fn {size,align}_of.Eduard-Mihai Burtescu-0/+60
2017-07-19Fix overflowing_literals lint for large f32sOliver Middleton-3/+5
Float literals need to be parsed as the correct type so they can be rounded correctly.
2017-07-18Ignore pretty-testAleksey Kladov-0/+2
2017-07-18Catch expression does not require semicolon to be a statementAleksey Kladov-0/+6