From 9478190afc5bbe4bbfe5367673c2f209dddb37e4 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Tue, 17 Jul 2018 17:00:51 +0200 Subject: [PATCH] Fixed the test to match the compiler's output. --- src/test/pretty/issue_12590_c.pp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/test/pretty/issue_12590_c.pp b/src/test/pretty/issue_12590_c.pp index 359b55a735ab..b4751eb66f62 100644 --- a/src/test/pretty/issue_12590_c.pp +++ b/src/test/pretty/issue_12590_c.pp @@ -1,3 +1,9 @@ +#![feature(prelude_import)] +#![no_std] +#[prelude_import] +use std::prelude::v1::*; +#[macro_use] +extern crate std; // Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. @@ -8,17 +14,15 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// pp-exact:issue_12590_c.pp +// pretty-compare-only // pretty-mode:expanded +// pp-exact:issue_12590_c.pp // The next line should be expanded mod issue_12590_b { - - fn b() { } - - fn main() { } + fn b() { } + fn main() { } } - fn main() { }