Skip to content

Commit 25fb5cd

Browse files
jdrouetXenira
authored andcommitted
fix(lint): rename cfg from docs to doc and enable nightly for embed tests
Signed-off-by: Jérémie Drouet <[email protected]>
1 parent 45f71b3 commit 25fb5cd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/actions/embed/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ ENV RUSTUP_HOME=/rust
1010
ENV CARGO_HOME=/cargo
1111
ENV PATH=/cargo/bin:/rust/bin:$PATH
1212

13-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
13+
RUN (curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly --no-modify-path) && rustup default nightly
1414

1515
ENTRYPOINT [ "/cargo/bin/cargo", "test", "--all", "--release", "--all-features", "--no-fail-fast" ]

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ fn check_php_version(info: &PHPInfo) -> Result<()> {
230230

231231
const PHP_83_API_VER: u32 = 20230831;
232232

233-
println!("cargo::rustc-check-cfg=cfg(php80, php81, php82, php83, php_zts, php_debug, docs)");
233+
println!("cargo::rustc-check-cfg=cfg(php80, php81, php82, php83, php_zts, php_debug)");
234234
println!("cargo:rustc-cfg=php80");
235235

236236
if (PHP_81_API_VER..PHP_82_API_VER).contains(&version) {

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![allow(non_upper_case_globals)]
44
#![allow(non_camel_case_types)]
55
#![allow(non_snake_case)]
6-
#![cfg_attr(docs, feature(doc_cfg))]
6+
#![cfg_attr(doc, feature(doc_cfg))]
77
#![cfg_attr(windows, feature(abi_vectorcall))]
88

99
pub mod alloc;
@@ -20,8 +20,8 @@ pub mod flags;
2020
pub mod macros;
2121
pub mod boxed;
2222
pub mod class;
23-
#[cfg(any(docs, feature = "closure"))]
24-
#[cfg_attr(docs, doc(cfg(feature = "closure")))]
23+
#[cfg(any(doc, feature = "closure"))]
24+
#[cfg_attr(doc, doc(cfg(feature = "closure")))]
2525
pub mod closure;
2626
pub mod constant;
2727
pub mod describe;
@@ -39,8 +39,8 @@ pub mod zend;
3939
pub mod prelude {
4040

4141
pub use crate::builders::ModuleBuilder;
42-
#[cfg(any(docs, feature = "closure"))]
43-
#[cfg_attr(docs, doc(cfg(feature = "closure")))]
42+
#[cfg(any(doc, feature = "closure"))]
43+
#[cfg_attr(doc, doc(cfg(feature = "closure")))]
4444
pub use crate::closure::Closure;
4545
pub use crate::exception::{PhpException, PhpResult};
4646
pub use crate::php_class;

0 commit comments

Comments
 (0)