chore: bump toolchain, update test

This commit is contained in:
Caleb Cartwright 2022-01-23 11:18:17 -06:00
parent 9b454a5990
commit 9e1973f1d9
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2021-12-29"
channel = "nightly-2022-01-23"
components = ["rustc-dev"]

View File

@ -572,7 +572,10 @@ fn stdin_generated_files_issue_5172() {
assert!(session.has_no_errors());
}
// N.B. this should be changed once `format_generated_files` is supported with stdin
assert_eq!(buf, "stdin:\n\n//@generated\nfn main() {}\n".as_bytes());
assert_eq!(
String::from_utf8(buf).unwrap(),
"<stdin>:\n\n//@generated\nfn main() {}\n",
);
}
#[test]