-
Notifications
You must be signed in to change notification settings - Fork 650
error: expected item after attributes using Rust 1.41 #2061
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
Comments
This appears to be an incompatibility introduced with @cramertj worth yanking 0.3.2 (maybe just |
Tested with > cargo download -x futures==0.3.1
INFO: cargo-download v0.1.2
INFO: Crate `futures==0.3.1` downloaded successfully
INFO: Crate content extracted to ./futures-0.3.1/
> cd futures-0.3.1
> cargo +1.41.0 build
Compiling proc-macro2 v1.0.8
Compiling unicode-xid v0.2.0
Compiling syn v1.0.14
Compiling proc-macro-nested v0.1.3
Compiling memchr v2.3.0
Compiling futures-sink v0.3.2
Compiling futures-core v0.3.2
Compiling slab v0.4.2
Compiling futures-io v0.3.2
Compiling futures-task v0.3.2
Compiling pin-utils v0.1.0-alpha.4
Compiling futures-channel v0.3.2
Compiling quote v1.0.2
Compiling proc-macro-hack v0.5.11
Compiling futures-macro v0.3.2
Compiling futures-util v0.3.2
Compiling futures-executor v0.3.2
Compiling futures v0.3.1 (/private/var/folders/0p/5yvmrvhj5w3_vy1y8x7dvk7m0000gn/T/tmp.hJzVLqqR/futures-0.3.1)
error: expected item after attributes
--> src/lib.rs:529:19
|
529 | #[macro_export]
| ^
error: aborting due to previous error
error: could not compile `futures`.
To learn more, run the command again with --verbose.
> cargo update -p futures-util -p futures-executor --precise 0.3.1
Updating crates.io index
Updating futures-executor v0.3.2 -> v0.3.1
Updating futures-util v0.3.2 -> v0.3.1
> cargo +1.41.0 build
Compiling futures-util v0.3.1
Compiling futures-executor v0.3.1
Compiling futures v0.3.1 (/private/var/folders/0p/5yvmrvhj5w3_vy1y8x7dvk7m0000gn/T/tmp.hJzVLqqR/futures-0.3.1)
Finished dev [unoptimized + debuginfo] target(s) in 5.53s |
Sure, I'll publish 0.3.3 once #2062 is in. In general, though, using old |
Good catch, we do actually pin in the app. But we can't do that for 3rd party crates obviously. May be it's time to re-evalutate Cargo.lock for pinning. |
thanks for the update, it works perfectly |
Our app fails to compile because of the following error given by rustc 1.41.0 (5e1a79984 2020-01-27)
The text was updated successfully, but these errors were encountered: