Skip to content
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

Regression in crate ipfs-api on 1.30 beta #54386

Closed
leoyvens opened this issue Sep 20, 2018 · 9 comments
Closed

Regression in crate ipfs-api on 1.30 beta #54386

leoyvens opened this issue Sep 20, 2018 · 9 comments
Assignees
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-resolve Area: Name resolution E-needs-bisection Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc P-high High priority regression-from-stable-to-beta Performance or correctness regression from stable to beta. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@leoyvens
Copy link
Contributor

The crate ipfs-api on version 0.5.0-alpha2 builds fine on stable. On beta and nightly fails with 84 name resolution errors. There are multiple instances of this error:

error: cannot determine resolution for the attribute macro `serde`
  --> ipfs-api/src/response/pin.rs:22:3
   |
22 | #[serde(rename_all = "PascalCase")]
   |   ^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports

Ping @petrochenkov who is an expert here.
Ping crate author @ferristseng.

@leoyvens leoyvens added A-attributes Area: Attributes (`#[…]`, `#![…]`) A-resolve Area: Name resolution A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. regression-from-stable-to-beta Performance or correctness regression from stable to beta. labels Sep 20, 2018
@pnkfelix
Copy link
Member

visiting for triage. P-high.

@pnkfelix pnkfelix added the P-high High priority label Sep 20, 2018
@nikomatsakis nikomatsakis added the E-needs-bisection Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc label Sep 20, 2018
@nikomatsakis
Copy link
Contributor

It would be great to bisect this with https://github.com/rust-lang-nursery/cargo-bisect-rustc

@pnkfelix
Copy link
Member

Assigning @petrochenkov (but they should feel free to unassign themselves if they are unable to commit time to this.)

@eddyb
Copy link
Member

eddyb commented Sep 20, 2018

It might be caused by the explicit import of something named serde:

use response::serde;
// ...
#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct PinAddResponse {

EDIT: response glob-imports all of their children's contents.

@pietroalbini
Copy link
Member

Crater found more regressions similar to this.

 error: cannot determine resolution for the attribute macro `serde`
   --> src/response/bitswap.rs:12:3
    |
 12 | #[serde(rename_all = "PascalCase")]
    |   ^^^^^
    |
    = note: import resolution is stuck, try simplifying macro imports
 error: cannot determine resolution for the macro `json`
    --> src/models/data.rs:179:19
     |
 179 |         let obj = json!({
     |                   ^^^^
     |
     = note: import resolution is stuck, try simplifying macro imports

cc @petrochenkov

@devnought
Copy link

devnought commented Sep 22, 2018

I was surprised to wake up to this today as I thought crater only ran against crates published on crates.io, which gitplz isn't.

In any case, I have a rust-2018 branch that uses the edition and compiles on the latest nightly.

EDIT I've merged my rust-2018 changes over to master. This crate shouldn't be a problem on the next crater run.

@pietroalbini
Copy link
Member

I was surprised to wake up to this today as I thought crater only ran against crates published on crates.io, which gitplz isn't.

We also test repositories on GitHub :D

@petrochenkov
Copy link
Contributor

Minimized in #54471 (comment)

@petrochenkov
Copy link
Contributor

Closing as duplicate of #54471

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-resolve Area: Name resolution E-needs-bisection Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc P-high High priority regression-from-stable-to-beta Performance or correctness regression from stable to beta. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

7 participants