From 3d6dc3ce579bd1c8f223f67e79b254f194034643 Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Fri, 4 Aug 2023 09:27:56 +0000 Subject: [PATCH] Account for rust-lang/rust#112849 --- cast_checks/tests/inner_attribute_example.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cast_checks/tests/inner_attribute_example.rs b/cast_checks/tests/inner_attribute_example.rs index c47910a..7da90ab 100644 --- a/cast_checks/tests/inner_attribute_example.rs +++ b/cast_checks/tests/inner_attribute_example.rs @@ -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(()) +", )); }); }