ci: deny warnings using RUSTFLAGS

This commit is contained in:
David Hewitt 2020-12-26 08:11:19 +00:00
parent 384f32a89c
commit 51d1996218
4 changed files with 5 additions and 2 deletions

View File

@ -124,6 +124,7 @@ jobs:
env:
RUST_BACKTRACE: 1
RUSTFLAGS: "-D warnings"
coverage:
needs: [fmt]

View File

@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
### Fixed
- Stop including `Py_TRACE_REFS` config setting automatically if `Py_DEBUG` is set on Python 3.8 and up. [#1334](https://github.com/PyO3/pyo3/pull/1334)
- Remove `#[deny(warnings)]` attribute (and instead refuse warnings only in CI). [#1340](https://github.com/PyO3/pyo3/pull/1340)
## [0.13.0] - 2020-12-22
### Packaging

View File

@ -49,7 +49,9 @@ Here are a few things to note when you are writing PRs.
The PyO3 repo uses Github Actions. PRs are blocked from merging if CI is not successful.
Formatting, linting and tests are checked for all Rust and Python code. Tests run with all supported Python versions with the latest stable Rust compiler, as well as for Python 3.9 with the minimum supported Rust version.
Formatting, linting and tests are checked for all Rust and Python code. In addition, all warnings in Rust code are disallowed (using `RUSTFLAGS="-D warnings"`).
Tests run with all supported Python versions with the latest stable Rust compiler, as well as for Python 3.9 with the minimum supported Rust version.
### Minimum supported Rust version

View File

@ -1,6 +1,5 @@
#![cfg_attr(feature = "nightly", feature(specialization))]
#![allow(clippy::missing_safety_doc)] // FIXME (#698)
#![deny(warnings)]
//! Rust bindings to the Python interpreter.
//!