Skip to content

Commit 343c532

Browse files
committed
Use cfg(any()) instead of cfg(disabled)
Rustbuild uses --check-cfg without allowing disabled as cfg name
1 parent 533f9d8 commit 343c532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ fn codegen_stmt<'tcx>(
477477

478478
fx.set_debug_loc(stmt.source_info);
479479

480-
#[cfg(disabled)]
480+
#[cfg(any())] // This is never true
481481
match &stmt.kind {
482482
StatementKind::StorageLive(..) | StatementKind::StorageDead(..) => {} // Those are not very useful
483483
_ => {

0 commit comments

Comments
 (0)