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

rustpkg: Fix an assertion failure #10342

Merged

Conversation

catamorphism
Copy link
Contributor

r? @brson

@catamorphism
Copy link
Contributor Author

I talked about this with @brson and the right thing is for rustpkg to call rustc::monitor in each task. So I'll do that and resubmit.

@catamorphism
Copy link
Contributor Author

This is painful because rustc::monitor takes an @ -closure (because it takes an @ Emitter as an argument). rustpkg already does a lot of this (cloning gratuitously so @ -closures can work), but I hate to add more of it. I wonder how easy it would be to change the @ Emitter argument to monitor's closure argument to be a ~ or & instead.

…oin(p))` assertion failure

This addresses the problem reported in rust-lang#10253 and possibly elsewhere.

Closes rust-lang#10253
@catamorphism
Copy link
Contributor Author

I removed the monitor stuff from this pull request since I don't know how to do it right. It just fixes the assertion failure now (which wasn't related anyway). Re-r?, anybody who's available.

bors added a commit that referenced this pull request Nov 13, 2013
@bors bors closed this Nov 13, 2013
@bors bors merged commit 65aacd0 into rust-lang:master Nov 13, 2013
Jarcho pushed a commit to Jarcho/rust that referenced this pull request Feb 26, 2023
… r=Alexendoo

Add question-mark-used lint

This lint complains when the question mark operator (try operator) is used.  This is a restriction lint that can be useful on local scopes where a custom error handling macro is supposed to be used to augment the error based on local scope data before returning.

Fixes rust-lang#10340

---

changelog: New lint [`question_mark_used`]
[rust-lang#10342](rust-lang/rust-clippy#10342)
<!-- changelog_checked -->
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.

3 participants