Skip to content

Commit 9e1973f

Browse files
chore: bump toolchain, update test
1 parent 9b454a5 commit 9e1973f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly-2021-12-29"
2+
channel = "nightly-2022-01-23"
33
components = ["rustc-dev"]

src/test/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,10 @@ fn stdin_generated_files_issue_5172() {
572572
assert!(session.has_no_errors());
573573
}
574574
// N.B. this should be changed once `format_generated_files` is supported with stdin
575-
assert_eq!(buf, "stdin:\n\n//@generated\nfn main() {}\n".as_bytes());
575+
assert_eq!(
576+
String::from_utf8(buf).unwrap(),
577+
"<stdin>:\n\n//@generated\nfn main() {}\n",
578+
);
576579
}
577580

578581
#[test]

0 commit comments

Comments
 (0)