Skip to content

Possible regression at nightly-2016-06-15 for include_str! macro #34431

@kbknapp

Description

@kbknapp

I have an example which internally uses include_str! to pull in the contents of a file in the same directory. This example fails to buid on all nightlies after 2016-06-14 (ab0b87458), yet passes on ab0b87458 and all prior (including stable).

The error message I get is:

error: couldn't read 17_yaml.yml: No such file or directory (os error 2)
 --> <clap macros>:2:44
  |>
2 |> & :: clap :: YamlLoader :: load_from_str ( include_str ! ( $ yml ) ) . expect
  |>                                            ^^^^^^^^^^^^^^^^^^^^^^^
examples/17_yaml.rs:32:15: 32:40: note: in this expansion of load_yaml! (defined in <clap macros>)

error: aborting due to previous error
error: Could not compile `clap`.

To learn more, run the command again with --verbose.

The only commit that seems even somewhat related is 4259fba7e6?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions