Merge pull request #3548 from davidhewitt/nightly-code

ci: fix nightly unused import warning
This commit is contained in:
Adam Reichold 2023-10-26 06:01:18 +00:00 committed by GitHub
commit 2b91fea94f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View File

@ -1,2 +1,4 @@
#[cfg(Py_LIMITED_API)]
// This header doesn't exist in CPython, but Include/cpython/code.h does. We add
// this here so that PyCodeObject has a definition under the limited API.
opaque_struct!(PyCodeObject);

View File

@ -262,6 +262,7 @@ pub use self::boolobject::*;
pub use self::bytearrayobject::*;
pub use self::bytesobject::*;
pub use self::ceval::*;
#[cfg(Py_LIMITED_API)]
pub use self::code::*;
pub use self::codecs::*;
pub use self::compile::*;
@ -326,6 +327,7 @@ mod bytesobject;
// skipped cellobject.h
mod ceval;
// skipped classobject.h
#[cfg(Py_LIMITED_API)]
mod code;
mod codecs;
mod compile;

View File

@ -439,6 +439,7 @@ pub mod once_cell {
pub use crate::sync::{GILOnceCell, Interned};
}
#[allow(unused_imports)] // with no features enabled this module has no public exports
pub use crate::conversions::*;
#[cfg(feature = "macros")]

View File

@ -149,4 +149,5 @@ mod inner {
}
}
#[allow(unused_imports)] // some tests use just the macros and none of the other functionality
pub use inner::*;