Skip to content

Commit ba84bf3

Browse files
authored
Merge pull request #1696 from rust-lang/pa-reuse
Make REUSE ignore `valgrind` copyright statements
2 parents 4a9228f + 5ebe420 commit ba84bf3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/scope/raii.md

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ fn main() {
4141

4242
Of course, we can double check for memory errors using [`valgrind`][valgrind]:
4343

44+
<!-- REUSE-IgnoreStart -->
45+
<!-- Prevent REUSE from parsing the copyright statement in the sample code -->
4446
```shell
4547
$ rustc raii.rs && valgrind ./raii
4648
==26873== Memcheck, a memory error detector
@@ -58,6 +60,7 @@ $ rustc raii.rs && valgrind ./raii
5860
==26873== For counts of detected and suppressed errors, rerun with: -v
5961
==26873== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2)
6062
```
63+
<!-- REUSE-IgnoreEnd -->
6164
6265
No leaks here!
6366

src/std/panic.md

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ fn main() {
3434

3535
Let's check that `panic!` doesn't leak memory.
3636

37+
<!-- REUSE-IgnoreStart -->
38+
<!-- Prevent REUSE from parsing the copyright statement in the sample code -->
3739
```shell
3840
$ rustc panic.rs && valgrind ./panic
3941
==4401== Memcheck, a memory error detector
@@ -52,3 +54,4 @@ thread '<main>' panicked at 'division by zero', panic.rs:5
5254
==4401== For counts of detected and suppressed errors, rerun with: -v
5355
==4401== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
5456
```
57+
<!-- REUSE-IgnoreEnd -->

0 commit comments

Comments
 (0)