Skip to content

Compilation error in git clone #56

@szabgab

Description

@szabgab

I just cloned the repository and ran cargo test

$ git clone git@github.com:BinChengZhao/delay-timer.git
$ cargo test
warning: unexpected `cfg` condition name: `RUSTC_IS_NIGHTLY`
   --> src/lib.rs:238:13
    |
238 | #![cfg_attr(RUSTC_IS_NIGHTLY, feature(linked_list_cursors))]
    |             ^^^^^^^^^^^^^^^^
    |
    = help: expected names are: `docsrs`, `feature`, and `test` and 31 more
    = help: consider using a Cargo feature instead
    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
             [lints.rust]
             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(RUSTC_IS_NIGHTLY)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(RUSTC_IS_NIGHTLY)");` to the top of the `build.rs`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
    = note: `#[warn(unexpected_cfgs)]` on by default

warning: unexpected `cfg` condition value: `status_report`
   --> src/timer/timer_core.rs:175:11
    |
175 |     #[cfg(feature = "status_report")]
    |           ^^^^^^^^^^---------------
    |                     |
    |                     help: there is a expected value with a similar name: `"status-report"`
    |
    = note: expected values for `feature` are: `default`, `full`, and `status-report`
    = help: consider adding `status_report` as a feature in `Cargo.toml`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected `cfg` condition name: `RUSTC_IS_NIGHTLY`
  --> src/timer/runtime_trace/task_handle.rs:43:11
   |
43 |     #[cfg(RUSTC_IS_NIGHTLY)]
   |           ^^^^^^^^^^^^^^^^
   |
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(RUSTC_IS_NIGHTLY)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(RUSTC_IS_NIGHTLY)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected `cfg` condition name: `RUSTC_IS_NIGHTLY`
  --> src/timer/runtime_trace/task_handle.rs:86:15
   |
86 |     #[cfg(not(RUSTC_IS_NIGHTLY))]
   |               ^^^^^^^^^^^^^^^^
   |
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(RUSTC_IS_NIGHTLY)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(RUSTC_IS_NIGHTLY)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected `cfg` condition name: `SPLIT_INCLUSIVE_COMPATIBLE`
   --> src/utils/parse.rs:344:15
    |
344 |     #[cfg(not(SPLIT_INCLUSIVE_COMPATIBLE))]
    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: consider using a Cargo feature instead
    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
             [lints.rust]
             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(SPLIT_INCLUSIVE_COMPATIBLE)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(SPLIT_INCLUSIVE_COMPATIBLE)");` to the top of the `build.rs`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: unexpected `cfg` condition name: `SPLIT_INCLUSIVE_COMPATIBLE`
   --> src/utils/parse.rs:361:11
    |
361 |     #[cfg(SPLIT_INCLUSIVE_COMPATIBLE)]
    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: consider using a Cargo feature instead
    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
             [lints.rust]
             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(SPLIT_INCLUSIVE_COMPATIBLE)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(SPLIT_INCLUSIVE_COMPATIBLE)");` to the top of the `build.rs`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: `delay_timer` (lib) generated 6 warnings
warning: unexpected `cfg` condition name: `replace_shell_command`
   --> tests/simulation.rs:103:7
    |
103 | #[cfg(replace_shell_command)]
    |       ^^^^^^^^^^^^^^^^^^^^^
    |
    = help: expected names are: `docsrs`, `feature`, and `test` and 31 more
    = help: consider using a Cargo feature instead
    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
             [lints.rust]
             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(replace_shell_command)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(replace_shell_command)");` to the top of the `build.rs`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
    = note: `#[warn(unexpected_cfgs)]` on by default

warning: unexpected `cfg` condition name: `replace_shell_command`
   --> tests/simulation.rs:139:7
    |
139 | #[cfg(replace_shell_command)]
    |       ^^^^^^^^^^^^^^^^^^^^^
    |
    = help: consider using a Cargo feature instead
    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
             [lints.rust]
             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(replace_shell_command)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(replace_shell_command)");` to the top of the `build.rs`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

   Compiling delay_timer v0.11.6 (/home/gabor/github/rust/delay-timer)
warning: `delay_timer` (test "simulation") generated 2 warnings
warning: `delay_timer` (lib test) generated 6 warnings (6 duplicates)
error[E0599]: no method named `enable_status_report` found for struct `delay_timer::entity::DelayTimerBuilder` in the current scope
  --> examples/generic.rs:13:52
   |
13 |     let delay_timer = DelayTimerBuilder::default().enable_status_report().build();
   |                                                    ^^^^^^^^^^^^^^^^^^^^ method not found in `delay_timer::entity::DelayTimerBuilder`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `delay_timer` (example "generic") due to 1 previous error
$ rustc -vV
rustc 1.95.0 (59807616e 2026-04-14)
binary: rustc
commit-hash: 59807616e1fa2540724bfbac14d7976d7e4a3860
commit-date: 2026-04-14
host: x86_64-unknown-linux-gnu
release: 1.95.0
LLVM version: 22.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions