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
8 changes: 4 additions & 4 deletions cast_checks/tests/inner_attribute_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
",
);
});
Expand All @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion inner_attribute_example/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(custom_inner_attributes, proc_macro_hygiene)]
#![feature(custom_inner_attributes)]

mod a;

Expand Down