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

Remove 'Local Variable' comments #6151

Merged
merged 1 commit into from
May 2, 2013

Conversation

brendanzab
Copy link
Member

I have noticed these comments scattered across the codebase. They appear to be vestigial Emacs formatting settings and they don't appear in newer files. For the sake of consistency it's probably best to remove them.

@pcwalton
Copy link
Contributor

pcwalton commented May 1, 2013

@graydon Is this OK?

@graydon
Copy link
Contributor

graydon commented May 1, 2013

Eh. I liked having these settings enforced but I guess most of it is done by tidy these days. Sure.

@brendanzab
Copy link
Member Author

@graydon I just found it was weird that it was so inconsistently used. I'm also guessing we want to be editor agnostic – many people use Vim and some use Sublime Text, Kate or gedit. Is there anything in these comments that isn't covered by tidy?

@brendanzab
Copy link
Member Author

I had to rebase this due to a merge failure.

bors added a commit that referenced this pull request May 2, 2013
I have noticed these comments scattered across the codebase. They appear to be vestigial Emacs formatting settings and they don't appear in newer files. For the sake of consistency it's probably best to remove them.
@bors bors closed this May 2, 2013
@bors bors merged commit e596128 into rust-lang:incoming May 2, 2013
@brendanzab brendanzab deleted the local-variable-cleanup branch May 2, 2013 05:12
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 24, 2020
Preserve raw strs for: format!(s) to s.to_string() lint

fixes rust-lang#6142

clippy::useless_format will keep the source's string (after converting {{ and }} to { and }) when suggesting a change from format!() to .to_string() usage. Ie:
|     let s = format!(r#""hello {{}}""#);
|             ^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `r#""hello {}""#.to_string()`

changelog: [`useless_format`]: preserve raw string literals when no arguments to `format!()` are provided.
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