From 01556e35dfcc7a4529e088b5cdfc611b31b295e2 Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Fri, 24 Jul 2026 06:02:58 -0400 Subject: [PATCH] Update `inner_attribute_example` tests --- cast_checks/tests/inner_attribute_example.rs | 8 ++++---- inner_attribute_example/src/lib.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cast_checks/tests/inner_attribute_example.rs b/cast_checks/tests/inner_attribute_example.rs index f0ad223..324dff1 100644 --- a/cast_checks/tests/inner_attribute_example.rs +++ b/cast_checks/tests/inner_attribute_example.rs @@ -7,8 +7,8 @@ fn build() { command.env("CAST_CHECKS_LOG", "1"); command.assert().success().stdout( "\ -cast_checks rewriting `x as u16` at src/lib.rs:3:0 -cast_checks not descending into `mod c;` at src/lib.rs:3:0 +cast_checks rewriting `x as u16` at src/a.rs:7:8 +cast_checks not descending into `mod c;` at src/a.rs:11:0 ", ); }); @@ -20,8 +20,8 @@ fn test() { command.assert().failure().stdout( predicates::str::is_match( r"\ -thread 'checked_truncation' \([0-9]*\) panicked at src/lib\.rs:3:1: -invalid cast in `x as u16` at src/lib\.rs:3:0: TryFromIntError\(PosOverflow\) +thread 'checked_truncation' \([0-9]*\) panicked at src/a.rs:7:9: +invalid cast in `x as u16` at src/a.rs:7:8: TryFromIntError\(PosOverflow\) ", ) .unwrap(), diff --git a/inner_attribute_example/src/lib.rs b/inner_attribute_example/src/lib.rs index 76630cf..92f1446 100644 --- a/inner_attribute_example/src/lib.rs +++ b/inner_attribute_example/src/lib.rs @@ -1,4 +1,4 @@ -#![feature(custom_inner_attributes, proc_macro_hygiene)] +#![feature(custom_inner_attributes)] mod a;