Skip to content

Commit 84c943d

Browse files
fix
1 parent 1acf514 commit 84c943d

File tree

1 file changed

+2
-2
lines changed
  • codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/testutil

1 file changed

+2
-2
lines changed

codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/testutil/Rust.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ fun TestWriterDelegator.compileAndTest(
369369
// cargo fmt errors are useless, ignore
370370
}
371371

372-
val env = Commands.cargoEnvDDeadCode(enableUnstableFlag)
372+
val env = Commands.cargoEnvAllowDeadCode(enableUnstableFlag)
373373
val testOutput = Commands.cargoTest(enableUnstableFlag).runCommand(baseDir, env)
374374
if (runClippy) {
375375
Commands.CargoClippy.runCommand(baseDir, env)
@@ -522,4 +522,4 @@ fun TestWriterDelegator.unitTest(test: Writable): TestWriterDelegator {
522522
return this
523523
}
524524

525-
fun String.runWithWarnings(crate: Path, enableUnstableFlag: Boolean = true) = this.runCommand(crate, Commands.cargoEnvDWarnings(enableUnstableFlag))
525+
fun String.runWithWarnings(crate: Path, enableUnstableFlag: Boolean = true) = this.runCommand(crate, Commands.cargoEnvDenyWarnings(enableUnstableFlag))

0 commit comments

Comments
 (0)