Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ This will cause `cast_checks` to dump to standard output:
Example:

```text
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
```

Note that `CAST_CHECKS_LOG` requires `--cfg procmacro2_semver_exempt` to be passed to rustc.
Expand Down
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