Skip to content

Build is broken on master: function or associated item not found in proc_macro2::Literal #1498

@alamb

Description

@alamb

Describe the bug

After cargo updating the build is broken:

alamb@MacBook-Pro-2 arrow-datafusion % cargo update
cargo update
    Updating crates.io index
    Updating anyhow v1.0.51 -> v1.0.52
    Updating quote v1.0.10 -> v1.0.11
    Updating typenum v1.14.0 -> v1.15.0
    Updating zstd v0.9.0+zstd.1.5.0 -> v0.9.1+zstd.1.5.1
    Updating zstd-safe v4.1.1+zstd.1.5.0 -> v4.1.2+zstd.1.5.1
    Updating zstd-sys v1.6.1+zstd.1.5.0 -> v1.6.2+zstd.1.5.1
alamb@MacBook-Pro-2 arrow-datafusion %
error[E0599]: no function or associated item named `from_str_unchecked` found for struct `proc_macro2::Literal` in the current scope
   --> /Users/alamb/.cargo/registry/src/github.zerozr99.workers.dev-1ecc6299db9ec823/quote-1.0.11/src/runtime.rs:301:41
    |
301 |         let literal = unsafe { Literal::from_str_unchecked(repr) };
    |                                         ^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro2::Literal`

error[E0599]: no function or associated item named `from_str_unchecked` found for struct `proc_macro2::Literal` in the current scope
   --> /Users/alamb/.cargo/registry/src/github.zerozr99.workers.dev-1ecc6299db9ec823/quote-1.0.11/src/runtime.rs:310:45
    |
310 |         let mut literal = unsafe { Literal::from_str_unchecked(repr) };
    |                                             ^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro2::Literal`

Also happens on CI: https://github.com/apache/arrow-datafusion/runs/4649830794?check_suite_focus=true

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions