Skip to content

Commit 3751aae

Browse files
committed
Enable some errors that were suppressed for 1.82
Note we expect some failures here, at least until the following are merged: #4125 #4146
1 parent 28ab1b1 commit 3751aae

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

buildSrc/src/main/kotlin/CodegenTestCommon.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ fun Project.registerGenerateCargoConfigTomlTask(outputDir: File) {
291291
.writeText(
292292
"""
293293
[build]
294-
rustflags = ["--cfg", "aws_sdk_unstable"]
294+
rustflags = ["--deny", "warnings", "--cfg", "aws_sdk_unstable"]
295295
""".trimIndent(),
296296
)
297297
}

tools/ci-build/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ ENV PATH=/opt/cargo/bin:$PATH \
205205
RUST_NIGHTLY_VERSION=${rust_nightly_version} \
206206
CARGO_INCREMENTAL=0 \
207207
# TODO(MSRV1.82 follow-up): Restore them once lints are fixed in the server runtime crates
208-
# RUSTDOCFLAGS="-D warnings" \
209-
# RUSTFLAGS="-D warnings" \
208+
RUSTDOCFLAGS="-D warnings" \
209+
RUSTFLAGS="-D warnings" \
210210
LANG=en_US.UTF-8 \
211211
LC_ALL=en_US.UTF-8
212212
# SMITHY_RS_DOCKER_BUILD_IMAGE indicates to build scripts that they are being built inside of the Docker build image.

tools/ci-scripts/check-rust-runtimes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ do
3333

3434
# TODO(MSRV1.82 follow-up): Restore `-Dwarnings` once lints are fixed in aws-smithy-http-server-python:
3535
# "error: unexpected `cfg` condition name: `addr_of`"
36-
RUSTDOCFLAGS="--cfg docsrs" cargo +"${RUST_NIGHTLY_VERSION}" doc --no-deps --document-private-items --all-features
36+
RUSTDOCFLAGS="--cfg docsrs -Dwarnings" cargo +"${RUST_NIGHTLY_VERSION}" doc --no-deps --document-private-items --all-features
3737

3838
echo -e "## ${C_YELLOW}Running 'cargo minimal-versions check' on ${runtime_path}...${C_RESET}"
3939
# Print out the cargo tree with minimal versions for easier debugging

0 commit comments

Comments
 (0)