1 parent 8bb5edd commit 9e1b082Copy full SHA for 9e1b082
2 files changed
src/runtest.rs
@@ -263,6 +263,12 @@ impl<'test> TestCx<'test> {
263
}
264
265
266
+ #[cfg(feature = "stable")]
267
+ fn run_pretty_test(&self) {
268
+ self.fatal("pretty-printing tests can only be used with nightly Rust".into());
269
+ }
270
+
271
+ #[cfg(not(feature = "stable"))]
272
fn run_pretty_test(&self) {
273
if self.props.pp_exact.is_some() {
274
logv(self.config, "testing for exact pretty-printing".to_owned());
test-project/tests/tests.rs
@@ -19,5 +19,7 @@ fn run_mode(mode: &'static str) {
19
fn compile_test() {
20
run_mode("compile-fail");
21
run_mode("run-pass");
22
23
24
run_mode("pretty");
25
0 commit comments