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

Only pass --extern flags for rlibs in target deps directory #4800

Merged
merged 1 commit into from
Nov 10, 2019

Conversation

msizanoen1
Copy link
Contributor

It seems like there are proc macros/build scripts using serde: rust-lang/rust#66207 (comment)
This fix the build error by only passing --extern flags for rlibs in target deps directory (if available, otherwise host deps directory).

r? @Manishearth

changelog: none

@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Nov 10, 2019

📌 Commit dd4e76a has been approved by Manishearth

@bors
Copy link
Collaborator

bors commented Nov 10, 2019

⌛ Testing commit dd4e76a with merge ba280b0...

bors added a commit that referenced this pull request Nov 10, 2019
Only pass `--extern` flags for rlibs in target deps directory

It seems like there are proc macros/build scripts using serde: rust-lang/rust#66207 (comment)
This fix the build error by only passing `--extern` flags for rlibs in target deps directory (if available, otherwise host deps directory).

r? @Manishearth

changelog: none
@Manishearth
Copy link
Member

More strongly of the opinion that we should be disabling tests with deps on rustc CI, we CI them locally anyway.

@msizanoen1
Copy link
Contributor Author

msizanoen1 commented Nov 10, 2019

Well, the rustc API interface is incredibly unstable, the API type definition may change and cause compile failure - which should be caught right on rustc CI. However behavior changes in API which causes it not to work as expected would cause the tools test to fail but not caught by rustc CI and test failures for clippy won't be tracked on toolstate.
Behavior API changes probably don't happen often though.

@msizanoen1
Copy link
Contributor Author

@bors r- dogfood error

error: identical conversion
  --> tests/compile-test.rs:66:25
   |
66 |       let disambiguated = deps
   |  _________________________^
67 | |         .into_iter()
   | |____________________^ help: consider removing `.into_iter()`: `deps`
   |
   = note: `-D clippy::identity-conversion` implied by `-D clippy::all`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion

@msizanoen1

This comment has been minimized.

@Manishearth
Copy link
Member

@bors r-

bors won't listen to you, but if you push to the branch it will autocancel

@msizanoen1

This comment has been minimized.

@msizanoen1
Copy link
Contributor Author

I thought that authors can unapprove own PR: rust-lang/homu#42

@Manishearth
Copy link
Member

Manishearth commented Nov 10, 2019 via email

@msizanoen1 msizanoen1 closed this Nov 10, 2019
@msizanoen1 msizanoen1 reopened this Nov 10, 2019
@msizanoen1
Copy link
Contributor Author

I am typing this on a mobile device and having a problem with the touch screen, sorry for the spam!

@msizanoen1
Copy link
Contributor Author

Anyway, I have fixed the dogfood error so this should be ready for review again.

@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Nov 10, 2019

📌 Commit 805fef0 has been approved by Manishearth

@bors
Copy link
Collaborator

bors commented Nov 10, 2019

⌛ Testing commit 805fef0 with merge 6f9c43d...

bors added a commit that referenced this pull request Nov 10, 2019
Only pass `--extern` flags for rlibs in target deps directory

It seems like there are proc macros/build scripts using serde: rust-lang/rust#66207 (comment)
This fix the build error by only passing `--extern` flags for rlibs in target deps directory (if available, otherwise host deps directory).

r? @Manishearth

changelog: none
@bors
Copy link
Collaborator

bors commented Nov 10, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: Manishearth
Pushing 6f9c43d to master...

@bors bors merged commit 805fef0 into rust-lang:master Nov 10, 2019
@msizanoen1 msizanoen1 deleted the target-libs2 branch November 10, 2019 05:22
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.

None yet

3 participants