Skip to content

Conversation

luqmana
Copy link
Contributor

@luqmana luqmana commented Feb 23, 2013

Address #2281

-> % cat foo.rs
fn foo() -> int {
    let bar = 10;

    bad
}
-> % rustc foo.rs
foo.rs:4:4: 4:7 error: unresolved name: `bad`. Did you mean: `bar`?
foo.rs:4     bad
             ^~~
error: aborting due to previous error

@bstrie
Copy link
Contributor

bstrie commented Feb 23, 2013

This looks really cool.

@jdm
Copy link
Contributor

jdm commented Feb 23, 2013

\o/

@luqmana
Copy link
Contributor Author

luqmana commented Feb 27, 2013

r? @catamorphism

bors added a commit that referenced this pull request Feb 27, 2013
Address #2281


```
-> % cat foo.rs
fn foo() -> int {
    let bar = 10;

    bad
}
```

```
-> % rustc foo.rs
foo.rs:4:4: 4:7 error: unresolved name: `bad`. Did you mean: `bar`?
foo.rs:4     bad
             ^~~
error: aborting due to previous error
```
@bors bors closed this Feb 27, 2013
bors added a commit to rust-lang-ci/rust that referenced this pull request May 2, 2020
Don't use ExpnKind::descr to get the name of a bang macro.

This is the same change as the first commit in rust-lang#68407, but applied to clippy.
The new code should work both before and after the changes in rust-lang#68407.

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.

5 participants