Skip to content

fix compile error with rustc 1.45.0 #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2020
Merged

fix compile error with rustc 1.45.0 #16

merged 1 commit into from
Aug 4, 2020

Conversation

kazuk
Copy link
Contributor

@kazuk kazuk commented Jul 31, 2020

fixing compile(lint) error with rustc 1.45.0

~/async-attributes$ cargo build
    Blocking waiting for file lock on build directory
   Compiling async-attributes v1.1.1 (/home/kazuk/async-attributes)
error: unused extern crate
  --> src/lib.rs:30:1
   |
30 | extern crate proc_macro;
   | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
   |
note: the lint level is defined here
  --> src/lib.rs:26:45
   |
26 | #![forbid(unsafe_code, future_incompatible, rust_2018_idioms)]
   |                                             ^^^^^^^^^^^^^^^^
   = note: `#[forbid(unused_extern_crates)]` implied by `#[forbid(rust_2018_idioms)]`

error: aborting due to previous error

error: could not compile `async-attributes`.

```
~/async-attributes$ cargo build
    Blocking waiting for file lock on build directory
   Compiling async-attributes v1.1.1 (/home/kazuk/async-attributes)
error: unused extern crate
  --> src/lib.rs:30:1
   |
30 | extern crate proc_macro;
   | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
   |
note: the lint level is defined here
  --> src/lib.rs:26:45
   |
26 | #![forbid(unsafe_code, future_incompatible, rust_2018_idioms)]
   |                                             ^^^^^^^^^^^^^^^^
   = note: `#[forbid(unused_extern_crates)]` implied by `#[forbid(rust_2018_idioms)]`

error: aborting due to previous error

error: could not compile `async-attributes`.
```
Copy link
Collaborator

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@yoshuawuyts yoshuawuyts merged commit c1cebc8 into async-rs:master Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants