Skip to content

More accurate spans, season 2#6654

Closed
sanxiyn wants to merge 2 commits into
rust-lang:incomingfrom
sanxiyn:accurate-span-2
Closed

More accurate spans, season 2#6654
sanxiyn wants to merge 2 commits into
rust-lang:incomingfrom
sanxiyn:accurate-span-2

Conversation

@sanxiyn

@sanxiyn sanxiyn commented May 21, 2013

Copy link
Copy Markdown
Contributor

No description provided.

@sanxiyn

sanxiyn commented May 21, 2013

Copy link
Copy Markdown
Contributor Author

Given

use core::comm;
fn f(_x: &[int]) {}
fn main() {
    f(~[0]);
}

Before:

x.rs:1 use core::comm;
       ^~~~~~~~~~~~~~~
x.rs:4     f(~[0]);
             ^~~~~

After:

x.rs:1 use core::comm;
           ^~~~~~~~~~
x.rs:4     f(~[0]);
             ^~~~

@bors bors closed this May 21, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 30, 2021
No lazy static regex

r? `@llogiq`

rust-lang#6500

regex is unnecessary for this lint (rust-lang/rust-clippy#6500 (comment))
lazy_static is unnecessary. The std lazy feature should be  used instead.

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