Skip to content

Commit bf02d60

Browse files
author
Fahad Zubair
committed
Restore deny warning flags
1 parent 6fc7cbe commit bf02d60

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

buildSrc/src/main/kotlin/CodegenTestCommon.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ fun Project.registerGenerateCargoConfigTomlTask(outputDir: File) {
286286
// is completed, warnings can be prohibited in rustdoc by setting `rustdocflags` to `-D warnings`.
287287
doFirst {
288288
outputDir.resolve(".cargo").mkdirs()
289-
// TODO(MSRV1.82 follow-up): Restore `"--deny", "warnings"` once lints are fixed in the server runtime crates
290289
outputDir.resolve(".cargo/config.toml")
291290
.writeText(
292291
"""

tools/ci-build/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,8 @@ ENV PATH=/opt/cargo/bin:$PATH \
206206
RUST_STABLE_VERSION=${rust_stable_version} \
207207
RUST_NIGHTLY_VERSION=${rust_nightly_version} \
208208
CARGO_INCREMENTAL=0 \
209-
# TODO(MSRV1.82 follow-up): Restore them once lints are fixed in the server runtime crates
210-
# RUSTDOCFLAGS="-D warnings" \
211-
# RUSTFLAGS="-D warnings" \
209+
RUSTDOCFLAGS="-D warnings" \
210+
RUSTFLAGS="-D warnings" \
212211
LANG=en_US.UTF-8 \
213212
LC_ALL=en_US.UTF-8
214213
# 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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ do
3131

3232
echo -e "## ${C_YELLOW}Running 'cargo doc' on ${runtime_path}...${C_RESET}"
3333

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

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

0 commit comments

Comments
 (0)