Skip to content

Commit d609000

Browse files
committed
Add proper allow(dead_code)
1 parent ce5780d commit d609000

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_span/src/source_map/tests.rs

+1
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ fn t10() {
266266
}
267267

268268
/// Returns the span corresponding to the `n`th occurrence of `substring` in `source_text`.
269+
#[allow(dead_code)]
269270
trait SourceMapExtension {
270271
fn span_substr(
271272
&self,

library/core/tests/macros.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[allow(dead_code)]
12
trait Trait {
23
fn blah(&self);
34
}

0 commit comments

Comments
 (0)