about summary refs log tree commit diff
path: root/tests/ui/compiletest-self-test/compile-flags-incremental.rs
blob: 62a1ad84d8f7d627bd2921c9f47e02cc88dc8561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ revisions: good bad bad-space
//@ check-pass

//@[bad] compile-flags: -Cincremental=true
//@[bad] should-fail

//@[bad-space] compile-flags:  -C  incremental=dir
//@[bad-space] should-fail

fn main() {}

// Tests should not try to manually enable incremental compilation with
// `-Cincremental`, because that typically results in stray directories being
// created in the repository root.
//
// Instead, use the `//@ incremental` directive, which instructs compiletest
// to handle the details of passing `-Cincremental` with a fresh directory.