summary refs log tree commit diff
path: root/src/test/run-fail
AgeCommit message (Collapse)AuthorLines
2018-04-21Add back missing `#![feature(never_type)]`skennytm-0/+11
2018-04-20add `failure-status: 1` to the testNiko Matsakis-0/+1
2018-04-20Fix ICE with `main`'s return type containing lifetimesShotaro Yamada-0/+36
2018-03-26fix testsgnzlbg-0/+1
2018-03-26set min-llvm-version 6.0, ignore-emscriptengnzlbg-0/+1
2018-03-26add testsgnzlbg-0/+55
2018-03-19Stabilize termination_traitTyler Mandry-4/+0
This stabilizes `main` with non-() return types; see #48453.
2018-03-14stabilise feature(never_type)Andrew Cann-9/+0
Replace feature(never_type) with feature(exhaustive_patterns). feature(exhaustive_patterns) only covers the pattern-exhaustives checks that used to be covered by feature(never_type)
2018-02-22add test for `fn main() -> !`Niko Matsakis-0/+17
2018-02-12changed termination_trait's bound from Error to Debug; added compiletest ↵Brad Gibson-0/+20
header command and appropriate tests
2018-01-02Add 'ignore-cloudabi' to tests that don't and won't build on CloudABI.Ed Schouten-3/+9
It looks like many of these tests are already disabled on emscripten, which also doesn't seem to support environment variables and subprocess spawning. Just add a similar tag for CloudABI. While there, sort some of the lists of operating systems alphabetically.
2017-12-30Remove excessive trailing newlines.kennytm-2/+0
2017-11-30rustc: Prepare to enable ThinLTO by defaultAlex Crichton-2/+2
This commit prepares to enable ThinLTO and multiple codegen units in release mode by default. We've still got a debuginfo bug or two to sort out before actually turning it on by default.
2017-11-26Update tests for -Zborrowck-mir -> -Zborrowck=mode migrationest31-1/+1
2017-11-24Kill the storage for all locals on returning terminatorsKeith Yeung-0/+19
2017-10-31rustc_typeck: use subtyping on the LHS of binops.Eduard-Mihai Burtescu-0/+2
2017-09-28Migrate to eprint/eprintln macros where appropriate.Corey Farwell-26/+14
2017-09-10Relaxed error pattern, and add test for SystemTime as well.kennytm-2/+38
2017-09-07Properly detect overflow in Instance +/- Duration.kennytm-0/+36
Avoid unchecked cast from `u64` to `i64`. Use `try_into()` for checked cast. (On Unix, cast to `time_t` instead of `i64`.)
2017-07-25Add tests for issues with the E-needstest labeltopecongiro-0/+20
2017-06-13updated assert_eq test, fixed incorrect assert_ne message and added test.Giles Cope-1/+20
2017-04-28Unignore tests which work fine now.Mark Simulacrum-1/+0
2016-11-18Warn when a #[should_panic] test has an unexpected messageJosh Driver-0/+38
2016-10-18Fix some pretty printing testsVadim Petrochenkov-41/+0
2016-09-30Unignore some working emscripten testsBrian Anderson-1/+0
2016-09-30TidyBrian Anderson-2/+2
2016-09-30Adding ignore-emscripten to failing tests.Ross Schulman-0/+7
2016-09-19Auto merge of #34942 - porglezomp:master, r=sfacklerbors-0/+16
Fix overflow checking in unsigned pow() The pow() method for unsigned integers produced 0 instead of trapping overflow for certain inputs. Calls such as 2u32.pow(1024) produced 0 when they should trap an overflow. This also adds tests for the correctly handling overflow in unsigned pow(). This was previously fixed for signed integers in #28248, but it seems unsigned integers got missed that time. For issue number #34913
2016-09-14core: Use primitive indexing in slice's Index/IndexMutUlrik Sverdrup-1/+1
[T]'s Index implementation is normally not used for indexing, instead the compiler supplied indexing is used. Use the compiler supplied version in Index/IndexMut. This removes an inconsistency: Compiler supplied bound check failures look like this: thread 'main' panicked at 'index out of bounds: the len is 3 but the index is 4' If you convince Rust to use the Index impl for slices, bounds check failure looks like this instead: thread 'main' panicked at 'assertion failed: index < self.len()' The latter is used if you for example use Index generically:: use std::ops::Index; fn foo<T: ?Sized>(x: &T) where T: Index<usize> { &x[4]; } foo(&[1, 2, 3][..])
2016-08-24Auto merge of #35764 - eddyb:byegone, r=nikomatsakisbors-32/+5
Remove the old AST-based backend from rustc_trans. Starting with Rust 1.13, `--disable-orbit` , `-Z orbit=off` and `#[rustc_no_mir]` have been removed. Only the new MIR backend is left in the compiler, and only early const_eval uses ASTs from other crates. Filling drop (previously "zeroing drop"), `#[unsafe_no_drop_flag]` and associated unstable APIs are gone. Implementing `Drop` doesn't add a flag anymore to the type, all of the dynamic drop is function local. This is a [breaking-change], please use `Option::None` and/or `mem::forget` if you are unsure about your ability to prevent/control the drop of a value. In the future, `union` will be usable in some such cases. **NOTE**: DO NOT MERGE before we get the new beta as the stage0, there's some cruft to remove. All of this will massively simplify any efforts to implement (and as such it blocks) features such as `union`s, safe use of `#[packed]` or new type layout optimizations, not to mention many other experiments.
2016-08-24Disable old trans access via -Z orbit, #[rustc_no_mir] or --disable-orbit.Eduard Burtescu-32/+5
2016-08-23typeck: use NoExpectation to check return type of diverging fnAlex Burka-0/+1
This fixes #35849, a regression introduced by the typeck refactoring around TyNever/!.
2016-08-13Add explanations to testsAndrew Cann-0/+12
2016-08-13Permit `! as T` with testAndrew Cann-0/+18
2016-08-13Add tests for ! typeAndrew Cann-0/+81
2016-08-13Add some tests for ! typeAndrew Cann-0/+26
2016-08-13Rename empty/bang to neverAndrew Cann-3/+1
Split Ty::is_empty method into is_never and is_uninhabited
2016-08-13Control usage of `!` through a feature gate.Andrew Cann-0/+1
Adds the `bang_type` feature gate. `!` in a non-return-type position now relies on that feature.
2016-08-13Add run-fail/adjust_empty.rs testAndrew Cann-0/+18
2016-08-06Change the expected panic message for unsignedCaleb Jones-1/+1
2016-08-06Fix overflow checking in unsigned pow()Caleb Jones-0/+16
The pow() method for unsigned integers produced 0 instead of trapping overflow for certain inputs. Calls such as 2u32.pow(1024) produced 0 when they should trap an overflow. This also adds tests for the correctly handling overflow in unsigned pow(). For issue number #34913
2016-08-04Update wording on E0080Shantanu Raj-17/+17
Change "attempted" to "attempt"
2016-06-07Rollup merge of #33897 - srinivasreddy:runfail_rustfmt, r=nrcSteve Klabnik-107/+278
run rustfmt on test/run-fail folder
2016-06-06run rustfmt on test/run-fail folderSrinivas Reddy Thatiparthy-107/+278
2016-06-05trans: use the same messages for both MIR and old arithmetic checks.Eduard Burtescu-15/+15
2016-06-05Enable the overflow-related tests for MIRJames Miller-32/+0
2016-06-04Auto merge of #33622 - arielb1:elaborate-drops, r=nikomatsakisbors-0/+47
[MIR] non-zeroing drop This enables non-zeroing drop through stack flags for MIR. Fixes #30380. Fixes #5016.
2016-06-04fix translation of terminators in MSVC cleanup blocksAriel Ben-Yehuda-0/+3
MSVC requires unwinding code to be split to a tree of *funclets*, where each funclet can only branch to itself or to to its parent. Luckily, the code we generates matches this pattern. Recover that structure in an analyze pass and translate according to that.
2016-06-03Auto merge of #33803 - WiSaGaN:feature/rename-main-thread, r=alexcrichtonbors-18/+18
Rename main thread from "<main>" to "main". Fix issue #33789 We may need to discuss whether this counts as a breaking change since code may check the main thread name against "\<main\>". Discussion is in #33789
2016-06-03implement drop elaborationAriel Ben-Yehuda-0/+44
Fixes #30380