Skip to content

Commit a52b13f

Browse files
committed
Adjust inner_attribute_example line numbers
I'm not certain, but dtolnay/proc-macro2#472 may be what required them to change.
1 parent baaa4ed commit a52b13f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cast_checks/tests/inner_attribute_example.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ fn build() {
1313
command.env("CAST_CHECKS_LOG", "1");
1414
command.assert().success().stdout(
1515
"\
16-
cast_checks rewriting `x as u16` at src/lib.rs:0:0
17-
cast_checks not descending into `mod c;` at src/lib.rs:0:0
16+
cast_checks rewriting `x as u16` at src/lib.rs:3:0
17+
cast_checks not descending into `mod c;` at src/lib.rs:3:0
1818
",
1919
);
2020
});
@@ -26,7 +26,7 @@ fn test() {
2626
command.assert().failure().stdout(predicates::str::contains(
2727
"\
2828
thread 'checked_truncation' panicked at src/lib.rs:3:1:
29-
invalid cast in `x as u16` at src/lib.rs:0:0: TryFromIntError(())
29+
invalid cast in `x as u16` at src/lib.rs:3:0: TryFromIntError(())
3030
",
3131
));
3232
});

0 commit comments

Comments
 (0)