Skip to content

Commit

Permalink
chore: bump toolchain, update test
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Jan 23, 2022
1 parent 9b454a5 commit 9e1973f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2021-12-29"
channel = "nightly-2022-01-23"
components = ["rustc-dev"]
5 changes: 4 additions & 1 deletion src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 9e1973f

Please sign in to comment.