about summary refs log tree commit diff
path: root/src/test/run-fail
AgeCommit message (Collapse)AuthorLines
2019-04-22Remove double trailing newlinesvarkor-4/+0
2019-04-22update tests for migrate mode by defaultMatthew Jasper-1/+1
2019-03-03Use the correct state for poisoning a generatorMatthew Jasper-0/+22
2018-12-25Remove licensesMark Rousskov-1404/+0
2018-11-04Fix two run-fail tests for asmjsNikita Popov-2/+2
Use eprintln!() to make sure stdio is flushed.
2018-10-05Stabilize `min_const_fn`Oliver Schneider-1/+0
2018-08-31Restrict most uses of `const_fn` to `min_const_fn`Oliver Schneider-1/+1
2018-08-19Fix typos found by codespell.Matthias Krüger-2/+2
2018-08-05Convert unknown_features lint into an errorvarkor-2/+0
2018-08-05Fix test/run-failvarkor-6/+0
2018-07-04Ensure that borrows wind up unactivated.David Wood-0/+18
2018-06-05Fix testsFabian Zaiser-0/+3
2018-05-24move simd-minmax-test to run-pass; require llvm 7gnzlbg-57/+0
2018-05-19Overflows only panic in debug modeOliver Schneider-0/+1
2018-05-19Release mode overflows should not cause const eval to errorOliver Schneider-0/+34
2018-05-18Auto merge of #50653 - oli-obk:bad_const, r=cramertjbors-0/+8
Make the `const_err` lint `deny`-by-default At best these things are runtime panics (debug mode) or overflows (release mode). More likely they are public constants that are unused in the crate declaring them. This is not a breaking change, as dependencies won't break and root crates can `#![warn(const_err)]`, though I don't know why anyone would do that.
2018-05-17Rename trans to codegen everywhere.Irina Popa-1/+1
2018-05-12Make the `const_err` lint `deny`-by-defaultOliver Schneider-0/+8
2018-04-27dyn_trait feature-gate just for stage0Christian Poveda-2/+0
2018-04-21Add back missing `#![feature(never_type)]`skennytm-0/+11
2018-04-13Rename must-compile-successfully into compile-passGuillaume Gomez-2/+2
2018-04-05add `failure-status: 1` to the testNiko Matsakis-0/+1
2018-04-06Fix 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.