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

Fix ICE in macros #6686

Closed
wants to merge 2 commits into from
Closed

Fix ICE in macros #6686

wants to merge 2 commits into from

Conversation

emberian
Copy link
Member

The error message is extremely unideal.

@erickt
Copy link
Contributor

erickt commented May 22, 2013

@cmr said he'll add a test for this fix in a couple minutes.

return lookup_cur_matched_by_matched(r, start);
match r.interpolations.find_copy(&name) {
Some(s) => lookup_cur_matched_by_matched(r, s),
None => r.sp_diag.span_fatal(r.cur_span, "macro variable not found somewhere in this macro")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change this to say something along the lines of

unknown macro variable `nonexistent`?

bors added a commit that referenced this pull request May 22, 2013
The error message is extremely unideal.
@bors bors closed this May 23, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 11, 2021
lintcheck: support git sources

This adds support for git sources in `cargo dev-lintcheck`

You can add a git source to `clippy_dev/lintcheck_crates.toml` by having a `git_url` and a `git_hash` key instead of the `versions` array.
The repo will the be cloned and checked out to the requested commit before checking it with clippy.

Fixes rust-lang/rust-clippy#6642

changelog: lintcheck: support git sources
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