Skip to content

Commit

Permalink
Adjust inner_attribute_example line numbers
Browse files Browse the repository at this point in the history
I'm not certain, but dtolnay/proc-macro2#472 may
be what required them to change.
  • Loading branch information
smoelius committed Oct 17, 2024
1 parent baaa4ed commit a52b13f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cast_checks/tests/inner_attribute_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ fn build() {
command.env("CAST_CHECKS_LOG", "1");
command.assert().success().stdout(
"\
cast_checks rewriting `x as u16` at src/lib.rs:0:0
cast_checks not descending into `mod c;` at src/lib.rs:0:0
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
",
);
});
Expand All @@ -26,7 +26,7 @@ fn test() {
command.assert().failure().stdout(predicates::str::contains(
"\
thread 'checked_truncation' panicked at src/lib.rs:3:1:
invalid cast in `x as u16` at src/lib.rs:0:0: TryFromIntError(())
invalid cast in `x as u16` at src/lib.rs:3:0: TryFromIntError(())
",
));
});
Expand Down

0 comments on commit a52b13f

Please sign in to comment.