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

Rustc metadata diagnostics #36102

Merged
merged 7 commits into from
Sep 19, 2016

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez
Copy link
Member Author

This is a redoing from #34970.

}

// In your crate:
#[macro_use(get_tacos, bring_beer)] // It imports macros get_tacos and
Copy link
Contributor

Choose a reason for hiding this comment

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

We could probably use a better example than "beer and tacos" ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

You're hard on business. :-/

@GuillaumeGomez
Copy link
Member Author

Beer became pimiento!

}

// In your crate:
#[macro_use(get_tacos, get_pimiento)] // It imports macros get_tacos and
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be get_pimientos?

@GuillaumeGomez
Copy link
Member Author

Should be good now. :'(

@sophiajt
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Aug 30, 2016

📌 Commit 354d596 has been approved by jonathandturner

@bors
Copy link
Contributor

bors commented Sep 2, 2016

⌛ Testing commit 354d596 with merge 975f34a...

@bors
Copy link
Contributor

bors commented Sep 2, 2016

💔 Test failed - auto-win-gnu-32-opt-rustbuild

@GuillaumeGomez
Copy link
Member Author

@bors: retry

@bors
Copy link
Contributor

bors commented Sep 2, 2016

⌛ Testing commit 354d596 with merge 9a4671f...

@bors
Copy link
Contributor

bors commented Sep 2, 2016

💔 Test failed - auto-win-msvc-64-cargotest

@alexcrichton
Copy link
Member

@bors: retry

On Fri, Sep 2, 2016 at 8:55 AM, bors [email protected] wrote:

💔 Test failed - auto-win-msvc-64-cargotest
https://buildbot.rust-lang.org/builders/auto-win-msvc-64-cargotest/builds/1709


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#36102 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAD95J0JTHiN1bzpEGQCoA1qIjwDqM9Jks5qmEb9gaJpZM4JviFk
.

@bors
Copy link
Contributor

bors commented Sep 3, 2016

⌛ Testing commit 354d596 with merge 302462d...

@bors
Copy link
Contributor

bors commented Sep 3, 2016

💔 Test failed - auto-linux-64-opt-rustbuild

@TimNN
Copy link
Contributor

TimNN commented Sep 5, 2016

The problem is that this test passes on OS X (since the tests are apparently compiled as libraries, so no linking happens).

@bors
Copy link
Contributor

bors commented Sep 5, 2016

💥 Test timed out

bors added a commit that referenced this pull request Sep 6, 2016
Rollup of 6 pull requests

- Successful merges: #35845, #35983, #36065, #36102, #36242, #36245
- Failed merges:
sophiajt pushed a commit to sophiajt/rust that referenced this pull request Sep 6, 2016
…ostics, r=jonathandturner

Rustc metadata diagnostics

r? @jonathandturner
@GuillaumeGomez
Copy link
Member Author

Once #36320 is merged, it'll be easier to see from where the problem comes.

@TimNN
Copy link
Contributor

TimNN commented Sep 8, 2016

@GuillaumeGomez: have you seen my comment above?

@GuillaumeGomez
Copy link
Member Author

GuillaumeGomez commented Sep 8, 2016

@TimNN: Yes, however it can be the one which fails the tests since it isn't run.

EDIT: woups, my browser didn't go the correct line. Hum... This is problematic if we cannot check an error code. :-/

@GuillaumeGomez
Copy link
Member Author

I have set the failing test into "ignore mode".

@sophiajt
Copy link
Contributor

@GuillaumeGomez - please ignore the test only for OS X, if that's the troublesome platform:

// ignore-macos

@TimNN
Copy link
Contributor

TimNN commented Sep 12, 2016

@jonathandturner: Is that possible outside of compiletest?

@sophiajt
Copy link
Contributor

@TimNN - yeah it may not work outside of that. @alexcrichton mentioned it had limitations on irc.

@sophiajt
Copy link
Contributor

If it doesn't support it in the part of code you're in, I guess it's fine to just ignore the whole thing.

@GuillaumeGomez
Copy link
Member Author

I'll work on adding later on.

@GuillaumeGomez
Copy link
Member Author

Any news?

@sophiajt
Copy link
Contributor

@GuillaumeGomez - if you can't ignore just for the platform where you are in the code, I'm okay with ignoring the test.

@GuillaumeGomez
Copy link
Member Author

rustdoc doesn't seem to provide such a thing but maybe I missed it?

cc @rust-lang/tools

@TimNN
Copy link
Contributor

TimNN commented Sep 17, 2016

@GuillaumeGomez: I don't think rustdoc provides something like this either, so maybe the best solution is to ignore the test in the explain message and just add a test to compile-fail, where // ignore-macos can be used as far as I now.

(I just noticed that there is already a similar test for the compiler flag, linking to a Framework: https://github.com/rust-lang/rust/blob/master/src/test/compile-fail/manual-link-framework.rs).

Edit: There is even a test for this exact case: https://github.com/rust-lang/rust/blob/master/src/test/compile-fail/osx-frameworks.rs, so maybe that can just be updated to include the error code as well

@GuillaumeGomez
Copy link
Member Author

It just fails without giving an error code. So I guess the better should be to keep it like this.

@sophiajt
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Sep 19, 2016

📌 Commit d4c6a61 has been approved by jonathandturner

@bors
Copy link
Contributor

bors commented Sep 19, 2016

⌛ Testing commit d4c6a61 with merge e054701...

bors added a commit that referenced this pull request Sep 19, 2016
1 similar comment
@bors bors merged commit d4c6a61 into rust-lang:master Sep 19, 2016
@GuillaumeGomez GuillaumeGomez deleted the rustc_metadata_diagnostics branch September 20, 2016 12:00
pmatos pushed a commit to LinkiTools/rust that referenced this pull request Sep 27, 2016
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.

6 participants