rust/src/test/ui/consts/const-eval
Mazdak Farrokhzad 0721364f0d
Rollup merge of #61755 - Centril:compiletest-force-check, r=petrochenkov
Add `--pass $mode` to compiletest through `./x.py`

Adds a flag `--pass $mode` to compiletest, which is exposed through `./x.py`.

When `--pass $mode` is passed, `{check,build,compile,run}-pass` tests will be forced to run under the given `$mode` unless the directive `// ignore-pass` exists in the test file.

The modes are explained in https://github.com/rust-lang/rust/pull/61778:
- `check` has the same effect as `cargo check`
- `build` or `compile` have the same effect as `cargo build`
- `run` has the same effect as `cargo run`

On my machine, `./x.py -i test src/test/run-pass --stage 1 --pass check` takes 38 seconds whereas it takes 2 min 7 seconds without `--pass check`.

cc https://github.com/rust-lang/rust/issues/61712

r? @petrochenkov
2019-06-29 11:18:07 +02:00
..
auxiliary
assign-to-static-within-other-static-2.rs
assign-to-static-within-other-static-2.stderr
assign-to-static-within-other-static.rs
assign-to-static-within-other-static.stderr
conditional_array_execution.rs
conditional_array_execution.stderr
const_let.rs Stabilize let bindings and destructuring in constants and const fn 2019-01-09 10:20:12 +01:00
const_let.stderr
const_panic_libcore_main.rs
const_panic_libcore_main.stderr
const_panic_libcore.rs
const_panic_libcore.stderr
const_panic.rs
const_panic.stderr
const_prop_errors.rs
const_raw_ptr_ops.rs
const_raw_ptr_ops.stderr
const_signed_pat.rs
const_transmute.rs compiletest: Validate pass modes harder 2019-06-16 12:23:22 +03:00
const-eval-overflow2.rs
const-eval-overflow2.stderr
const-eval-overflow2b.rs
const-eval-overflow2b.stderr
const-eval-overflow2c.rs
const-eval-overflow2c.stderr
const-eval-overflow-2.rs
const-eval-overflow-2.stderr
const-eval-overflow-3.rs
const-eval-overflow-3.stderr
const-eval-overflow-3b.rs Remove double trailing newlines 2019-04-22 16:57:01 +01:00
const-eval-overflow-3b.stderr Update ui tests 2019-04-22 19:50:11 +01:00
const-eval-overflow-4.rs
const-eval-overflow-4.stderr
const-eval-overflow-4b.rs
const-eval-overflow-4b.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
const-eval-span.rs
const-eval-span.stderr
const-pointer-values-in-various-types.rs
const-pointer-values-in-various-types.stderr
dont_promote_unstable_const_fn_cross_crate.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
dont_promote_unstable_const_fn_cross_crate.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
dont_promote_unstable_const_fn.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
dont_promote_unstable_const_fn.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
double_check2.rs
double_check2.stderr
double_check.rs
double_promotion.rs
duration_conversion.rs
enum_discr.rs compiletest: Validate pass modes harder 2019-06-16 12:23:22 +03:00
extern_fat_pointer.rs
feature-gate-const_fn_union.rs
feature-gate-const_fn_union.stderr Reword tracking issue note 2019-04-11 11:42:06 -07:00
feature-gate-const_panic.rs
feature-gate-const_panic.stderr Reword tracking issue note 2019-04-11 11:42:06 -07:00
ice-generic-assoc-const.rs Make use of ptr::null(_mut) instead of casting zero 2019-06-17 10:52:46 +00:00
ice-packed.rs
index_out_of_bounds_propagated.rs
index_out_of_bounds_propagated.stderr
index_out_of_bounds.rs
index_out_of_bounds.stderr
infinite_loop.rs
infinite_loop.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
issue-43197.rs
issue-43197.stderr
issue-44578.rs
issue-44578.stderr
issue-47971.rs
issue-49296.rs
issue-49296.stderr
issue-50706.rs
issue-50814-2.rs
issue-50814-2.stderr
issue-50814.rs
issue-50814.stderr
issue-51300.rs
issue-52442.rs
issue-52442.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
issue-52475.rs
issue-52475.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
issue-53157.rs
issue-53401.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
issue-55541.rs
match-test-ptr-null.rs Create fewer basic blocks in match MIR lowering 2019-06-13 21:05:21 +01:00
match-test-ptr-null.stderr Create fewer basic blocks in match MIR lowering 2019-06-13 21:05:21 +01:00
mod-static-with-const-fn.rs
mod-static-with-const-fn.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
no_lint_for_statically_known_error.rs
promote_mutable_zst_mir_borrowck.rs Remove feature(nll) when compare mode is sufficient 2019-05-12 18:46:43 +01:00
promoted_const_fn_fail_deny_const_err.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
promoted_const_fn_fail_deny_const_err.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
promoted_const_fn_fail.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
promoted_const_fn_fail.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
promoted_errors.rs promoted_errors: warn -> deny. 2019-06-24 07:58:37 +02:00
promoted_errors.stderr promoted_errors: warn -> deny. 2019-06-24 07:58:37 +02:00
promoted_raw_ptr_ops.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
promoted_raw_ptr_ops.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
pub_const_err_bin.rs
pub_const_err_bin.stderr
pub_const_err.rs
pub_const_err.stderr
ref_to_int_match.rs
ref_to_int_match.stderr
shift_overflow.rs
shift_overflow.stderr
simple_with_undef.rs
strlen.rs
transmute-const-promotion.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
transmute-const-promotion.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
transmute-const.rs
transmute-const.stderr
ub-enum.rs
ub-enum.stderr
ub-nonnull.rs
ub-nonnull.stderr
ub-ref.rs
ub-ref.stderr
ub-uninhabit.rs
ub-uninhabit.stderr
ub-upvars.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
ub-upvars.stderr Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
union_promotion.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
union_promotion.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
union-const-eval-field.rs
union-const-eval-field.stderr
union-ice.rs
union-ice.stderr
union-ub-fat-ptr.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
union-ub-fat-ptr.stderr comment tweaks, better validation errors, update UI tests 2019-06-23 18:03:57 +02:00
union-ub.rs
union-ub.stderr
unused-broken-const.rs
unused-broken-const.stderr compiletest: only use make_exe_name for tests that end up being executed. 2019-05-07 04:49:54 +03:00
valid-const.rs
zst_operand_eval.rs