Skip to content

nightly feature broken in newest nightly #2

@EliasHolzmann

Description

@EliasHolzmann

rust-lang/rust#149400 moved some names of the proc-macro path tracking feature around. As a consequence of this, the build for this crate on the newest nightly is broken if the nightly feature flag is set:

error[E0433]: failed to resolve: could not find `tracked_path` in `proc_macro`
   --> /home/xxx/include_optional/src/lib.rs:149:37
    |
149 |                         proc_macro::tracked_path::path(file_lit.value());
    |                                     ^^^^^^^^^^^^ could not find `tracked_path` in `proc_macro`
...
169 | gen_include_optional_macro!(include_optional! using include! with example file ending ".rs");
    | -------------------------------------------------------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `gen_include_optional_macro` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `tracked_path` in `proc_macro`
   --> /home/xxx/include_optional/src/lib.rs:149:37
    |
149 |                         proc_macro::tracked_path::path(file_lit.value());
    |                                     ^^^^^^^^^^^^ could not find `tracked_path` in `proc_macro`
...
170 | gen_include_optional_macro!(include_str_optional! using include_str! with example file ending ".txt" inline);
    | ------------------------------------------------------------------------------------------------------------ in this macro invocation
    |
    = note: this error originates in the macro `gen_include_optional_macro` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `tracked_path` in `proc_macro`
   --> /home/xxx/include_optional/src/lib.rs:149:37
    |
149 |                         proc_macro::tracked_path::path(file_lit.value());
    |                                     ^^^^^^^^^^^^ could not find `tracked_path` in `proc_macro`
...
171 | gen_include_optional_macro!(include_bytes_optional! using include_bytes! with example file ending ".bin" and example file content "`0xDEADBEEF`. ");
    | --------------------------------------------------------------------------------------------------------------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `gen_include_optional_macro` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0635]: unknown feature `track_path`
 --> /home/xxx/include_optional/src/lib.rs:4:42
  |
4 | #![cfg_attr(feature = "nightly", feature(track_path))]
  |                                          ^^^^^^^^^^

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