Skip to content

Commit b158800

Browse files
New syntax - violations_coverage
1 parent 67ecf83 commit b158800

File tree

5 files changed

+30
-28
lines changed

5 files changed

+30
-28
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ The pains (that pend [rust-lang/rust#110613](https://github.com/rust-lang/rust/i
6262
## Limitation of lint control for unsafe_method
6363
Macro `unsafe_method` (normally accessed as `crate::prudent::unsafe_method`)
6464

65+
TODO TODO TODO!
66+
6567
# Quality assurance
6668

6769
Checks and tests are run by [GitHub Actions]. See

violations_coverage/in_crate/src/bin/unsafe_method-fn_unused_unsafe-some_args.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ error: unnecessary `unsafe` block
66
|
77
::: violations/unsafe_method-fn_unused_unsafe-some_args.rs:11:5
88
|
9-
11 | unsafe_method!(s, use_it, true);
10-
| ------------------------------- in this macro invocation
9+
11 | unsafe_method!(s =>@ use_it => true);
10+
| ------------------------------------ in this macro invocation
1111
|
1212
note: the lint level is defined here
1313
--> violations/linted.rs
@@ -17,8 +17,8 @@ note: the lint level is defined here
1717
|
1818
::: violations/unsafe_method-fn_unused_unsafe-some_args.rs:11:5
1919
|
20-
11 | unsafe_method!(s, use_it, true);
21-
| ------------------------------- in this macro invocation
20+
11 | unsafe_method!(s =>@ use_it => true);
21+
| ------------------------------------ in this macro invocation
2222
= note: this error originates in the macro `unsafe_method` (in Nightly builds, run with -Z macro-backtrace for more info)
2323

2424
error: unnecessary `unsafe` block
@@ -29,8 +29,8 @@ error: unnecessary `unsafe` block
2929
|
3030
::: violations/unsafe_method-fn_unused_unsafe-some_args.rs:11:5
3131
|
32-
11 | unsafe_method!(s, use_it, true);
33-
| ------------------------------- in this macro invocation
32+
11 | unsafe_method!(s =>@ use_it => true);
33+
| ------------------------------------ in this macro invocation
3434
|
3535
note: the lint level is defined here
3636
--> violations/linted.rs
@@ -40,6 +40,6 @@ note: the lint level is defined here
4040
|
4141
::: violations/unsafe_method-fn_unused_unsafe-some_args.rs:11:5
4242
|
43-
11 | unsafe_method!(s, use_it, true);
44-
| ------------------------------- in this macro invocation
43+
11 | unsafe_method!(s =>@ use_it => true);
44+
| ------------------------------------ in this macro invocation
4545
= note: this error originates in the macro `unsafe_method_internal_build_accessors_check_args_call` which comes from the expansion of the macro `unsafe_method` (in Nightly builds, run with -Z macro-backtrace for more info)

violations_coverage/in_crate/src/bin/unsafe_method-fn_unused_unsafe-zero_args.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ error: unnecessary `unsafe` block
66
|
77
::: violations/unsafe_method-fn_unused_unsafe-zero_args.rs:5:13
88
|
9-
5 | let _ = unsafe_method!("hi", len);
10-
| ------------------------- in this macro invocation
9+
5 | let _ = unsafe_method!("hi" =>@ len);
10+
| ---------------------------- in this macro invocation
1111
|
1212
note: the lint level is defined here
1313
--> violations/linted.rs
@@ -17,8 +17,8 @@ note: the lint level is defined here
1717
|
1818
::: violations/unsafe_method-fn_unused_unsafe-zero_args.rs:5:13
1919
|
20-
5 | let _ = unsafe_method!("hi", len);
21-
| ------------------------- in this macro invocation
20+
5 | let _ = unsafe_method!("hi" =>@ len);
21+
| ---------------------------- in this macro invocation
2222
= note: this error originates in the macro `unsafe_method` (in Nightly builds, run with -Z macro-backtrace for more info)
2323

2424
error: unnecessary `unsafe` block
@@ -29,8 +29,8 @@ error: unnecessary `unsafe` block
2929
|
3030
::: violations/unsafe_method-fn_unused_unsafe-zero_args.rs:5:13
3131
|
32-
5 | let _ = unsafe_method!("hi", len);
33-
| ------------------------- in this macro invocation
32+
5 | let _ = unsafe_method!("hi" =>@ len);
33+
| ---------------------------- in this macro invocation
3434
|
3535
note: the lint level is defined here
3636
--> violations/linted.rs
@@ -40,6 +40,6 @@ note: the lint level is defined here
4040
|
4141
::: violations/unsafe_method-fn_unused_unsafe-zero_args.rs:5:13
4242
|
43-
5 | let _ = unsafe_method!("hi", len);
44-
| ------------------------- in this macro invocation
43+
5 | let _ = unsafe_method!("hi" =>@ len);
44+
| ---------------------------- in this macro invocation
4545
= note: this error originates in the macro `unsafe_method_internal_check_args_etc` which comes from the expansion of the macro `unsafe_method` (in Nightly builds, run with -Z macro-backtrace for more info)

violations_coverage/in_crate/src/bin/unsafe_method-unused_expect_unsafe-some_args.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ error: this lint expectation is unfulfilled
66
|
77
::: violations/unsafe_method-unused_expect_unsafe-some_args.rs:13:13
88
|
9-
13 | let _ = unsafe_method!(~expect_unsafe S_INSTANCE, method, true);
10-
| ------------------------------------------------------- in this macro invocation
9+
13 | let _ = unsafe_method!(~expect_unsafe S_INSTANCE =>@ method => true);
10+
| ------------------------------------------------------------ in this macro invocation
1111
|
1212
note: the lint level is defined here
1313
--> violations/linted.rs
@@ -17,8 +17,8 @@ note: the lint level is defined here
1717
|
1818
::: violations/unsafe_method-unused_expect_unsafe-some_args.rs:13:13
1919
|
20-
13 | let _ = unsafe_method!(~expect_unsafe S_INSTANCE, method, true);
21-
| ------------------------------------------------------- in this macro invocation
20+
13 | let _ = unsafe_method!(~expect_unsafe S_INSTANCE =>@ method => true);
21+
| ------------------------------------------------------------ in this macro invocation
2222
= note: this error originates in the macro `unsafe_method` (in Nightly builds, run with -Z macro-backtrace for more info)
2323

2424
warning: this lint expectation is unfulfilled
@@ -29,8 +29,8 @@ warning: this lint expectation is unfulfilled
2929
|
3030
::: violations/unsafe_method-unused_expect_unsafe-some_args.rs:13:13
3131
|
32-
13 | let _ = unsafe_method!(~expect_unsafe S_INSTANCE, method, true);
33-
| ------------------------------------------------------- in this macro invocation
32+
13 | let _ = unsafe_method!(~expect_unsafe S_INSTANCE =>@ method => true);
33+
| ------------------------------------------------------------ in this macro invocation
3434
|
3535
= note: `#[warn(unfulfilled_lint_expectations)]` on by default
3636
= note: this warning originates in the macro `unsafe_method_internal_build_accessors_check_args_call` which comes from the expansion of the macro `unsafe_method` (in Nightly builds, run with -Z macro-backtrace for more info)

violations_coverage/in_crate/src/bin/unsafe_method-unused_expect_unsafe-zero_args.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ error: this lint expectation is unfulfilled
66
|
77
::: violations/unsafe_method-unused_expect_unsafe-zero_args.rs:13:13
88
|
9-
13 | let _ = unsafe_method!(~expect_unsafe S_INSTANCE, method);
10-
| ------------------------------------------------- in this macro invocation
9+
13 | let _ = unsafe_method!(~expect_unsafe S_INSTANCE =>@ method);
10+
| ----------------------------------------------------- in this macro invocation
1111
|
1212
note: the lint level is defined here
1313
--> violations/linted.rs
@@ -17,8 +17,8 @@ note: the lint level is defined here
1717
|
1818
::: violations/unsafe_method-unused_expect_unsafe-zero_args.rs:13:13
1919
|
20-
13 | let _ = unsafe_method!(~expect_unsafe S_INSTANCE, method);
21-
| ------------------------------------------------- in this macro invocation
20+
13 | let _ = unsafe_method!(~expect_unsafe S_INSTANCE =>@ method);
21+
| ----------------------------------------------------- in this macro invocation
2222
= note: this error originates in the macro `unsafe_method` (in Nightly builds, run with -Z macro-backtrace for more info)
2323

2424
warning: this lint expectation is unfulfilled
@@ -29,8 +29,8 @@ warning: this lint expectation is unfulfilled
2929
|
3030
::: violations/unsafe_method-unused_expect_unsafe-zero_args.rs:13:13
3131
|
32-
13 | let _ = unsafe_method!(~expect_unsafe S_INSTANCE, method);
33-
| ------------------------------------------------- in this macro invocation
32+
13 | let _ = unsafe_method!(~expect_unsafe S_INSTANCE =>@ method);
33+
| ----------------------------------------------------- in this macro invocation
3434
|
3535
= note: `#[warn(unfulfilled_lint_expectations)]` on by default
3636
= note: this warning originates in the macro `unsafe_method_internal_check_args_etc` which comes from the expansion of the macro `unsafe_method` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)