Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account for rust-lang/rust#112849 #20

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cast_checks/tests/inner_attribute_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ cast_checks not descending into `mod c ;` at src/lib.rs:0:0
fn test() {
run_command("test", |mut command| {
command.assert().failure().stdout(predicates::str::contains(
"thread 'checked_truncation' panicked at 'invalid cast in `x as u16` at src/lib.rs:0:0: TryFromIntError(())', src/lib.rs:3:1"
"\
thread 'checked_truncation' panicked at src/lib.rs:3:1:
invalid cast in `x as u16` at src/lib.rs:0:0: TryFromIntError(())
",
));
});
}
Expand Down