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

Get comm_adapters building again #11081

Merged
merged 1 commit into from
Dec 20, 2013
Merged

Conversation

alexcrichton
Copy link
Member

I accidentally removed this module from compilation awhile back, this adds it
back in.

Closes #11076

I accidentally removed this module from compilation awhile back, this adds it
back in.

Closes rust-lang#11076
bors added a commit that referenced this pull request Dec 20, 2013
I accidentally removed this module from compilation awhile back, this adds it
back in.

Closes #11076
@bors bors closed this Dec 20, 2013
@bors bors merged commit f89b61b into rust-lang:master Dec 20, 2013
@alexcrichton alexcrichton deleted the comm-adapters branch December 22, 2013 04:58
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 14, 2023
[`useless_vec`]: use the source span for initializer

Fixes rust-lang#11075.

changelog: [`useless_vec`]: use the source span for the initializer expression when inside of a macro
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 14, 2023
[`useless_vec`]: add more tests and don't lint inside of macros

Closes rust-lang#11084.

I realized that the fix I added in rust-lang#11081 itself also causes an error in a suggestion when inside of a macro. Example:
```rs
macro_rules! x {
  () => {
    for _ in vec![1, 2] {}
  }
}
x!();
```
Here it would suggest replacing `vec![1, 2]` with `[x!()]`, because that's what the source callsite is (reminder: it does this to get the correct span of `x!()` for code like `for _ in vec![x!()]`), but that's wrong when *inside* macros, so I decided to make it not lint if the whole loop construct is inside a macro to avoid this issue.

changelog: [`useless_vec`]: add more tests and don't lint inside of macros

r? `@Alexendoo` since these were your tests, I figured it makes most sense to assign you
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.

comm_adapters is not compiling
3 participants