Skip to content

Remove useless namegen thunk #7272

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

Merged
merged 1 commit into from
Jun 28, 2013
Merged

Remove useless namegen thunk #7272

merged 1 commit into from
Jun 28, 2013

Conversation

Aatch
Copy link
Contributor

@Aatch Aatch commented Jun 21, 2013

This removes the namegen thunk that was in common.rs. I also take the opportunity to refactor a few uses where we had a str -> ident -> str chain that seemed somewhat redundant to me.

Also cleans up some warnings that made their way in already.

@emberian
Copy link
Member

benchmark

bors added a commit that referenced this pull request Jun 28, 2013
This removes the `namegen` thunk that was in `common.rs`. I also take the opportunity to refactor a few uses where we had a `str -> ident -> str` chain that seemed somewhat redundant to me.

Also cleans up some warnings that made their way in already.
@bors bors closed this Jun 28, 2013
@bors bors merged commit a897a9a into rust-lang:master Jun 28, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 3, 2021
Fix ICE in `too_many_lines`

fixes: rust-lang#7272
fixes: rust-lang#7286

rust-lang#7272 looks like it's caused by a bug in rust-c. The span it's giving for the closure is:

```rust
$crate:: $lower($d arg) }
        }
    }
}
```

The correct span would be `$crate:: $lower($d arg)` without all the closing braces.

rust-lang#7286 is definitely a clippy bug

changelog: none
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