Skip to content

Fails to compile with unknown feature track_path in recent nightlies #118

@mischnic

Description

@mischnic

In recent nightlies, e.g. nightly-2026-01-04, there's a compile error:

Probably related to rust-lang/rust#149400

error[E0433]: failed to resolve: could not find `tracked_env` in `proc_macro`
   --> /Users/niklas/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/include_dir_macros-0.7.4/src/lib.rs:255:17
    |
255 |     proc_macro::tracked_env::var(variable).ok()
    |                 ^^^^^^^^^^^ could not find `tracked_env` in `proc_macro`

    Checking notify v8.1.0
error[E0433]: failed to resolve: could not find `tracked_path` in `proc_macro`
   --> /Users/niklas/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/include_dir_macros-0.7.4/src/lib.rs:265:17
    |
265 |     proc_macro::tracked_path::path(_path.to_string_lossy());
    |                 ^^^^^^^^^^^^ could not find `tracked_path` in `proc_macro`

error[E0635]: unknown feature `track_path`
 --> /Users/niklas/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/include_dir_macros-0.7.4/src/lib.rs:4:42
  |
4 | #![cfg_attr(feature = "nightly", feature(track_path, proc_macro_tracked_env))]
  |                                          ^^^^^^^^^^

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