Skip to content

Commit a9d2a6c

Browse files
committed
Fix save-analysis tests
1 parent 7593104 commit a9d2a6c

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

src/test/run-make-fulldeps/save-analysis-fail/foo.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
#![ crate_name = "test" ]
1+
#![crate_name = "test"]
22
#![feature(box_syntax)]
33
#![feature(rustc_private)]
44

5+
#![allow(unused_must_use)]
6+
57
extern crate graphviz;
68
// A simple rust project
79

Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#![ crate_name = "krate2" ]
2-
#![ crate_type = "lib" ]
1+
#![crate_name = "krate2"]
2+
#![crate_type = "lib"]
33

44
use std::io::Write;
55

66
pub fn hello() {
7-
std::io::stdout().write_all(b"hello world!\n");
7+
let _ = std::io::stdout().write_all(b"hello world!\n");
88
}

src/test/run-make-fulldeps/save-analysis/foo.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
#![ crate_name = "test" ]
1+
#![crate_name = "test"]
22
#![feature(box_syntax)]
33
#![feature(rustc_private)]
44
#![feature(associated_type_defaults)]
55
#![feature(external_doc)]
66

7+
#![allow(unused_must_use)]
8+
79
extern crate graphviz;
810
// A simple rust project
911

src/test/run-make-fulldeps/save-analysis/krate2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
use std::io::Write;
55

66
pub fn hello() {
7-
std::io::stdout().write_all(b"hello world!\n");
7+
let _ = std::io::stdout().write_all(b"hello world!\n");
88
}

0 commit comments

Comments
 (0)