Skip to content

Emit proper function argument attributes for closure environments #22922

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
Mar 2, 2015

Conversation

dotdash
Copy link
Contributor

@dotdash dotdash commented Mar 1, 2015

No description provided.

@rust-highfive
Copy link
Contributor

r? @eddyb

(rust_highfive has picked a reviewer for you, use r? to override)

ty::ty_tup(ref inputs) => inputs.clone(),
ty::ty_tup(ref inputs) => {
let mut full_inputs = vec![env_ty.expect("Missing closure environment")];
full_inputs.push_all(&inputs[..]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should work with just full_inputs.push_all(inputs).

@eddyb
Copy link
Member

eddyb commented Mar 1, 2015

r=me with nits fixed.
I also wish we had IR tests, for such occasions 😞.

@dotdash dotdash force-pushed the closure_env_attr branch from 65b4aae to 549be5f Compare March 1, 2015 11:30
@dotdash
Copy link
Contributor Author

dotdash commented Mar 1, 2015

@bors r=eddyb 549be5f

@dotdash
Copy link
Contributor Author

dotdash commented Mar 1, 2015

@bors rollup

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 1, 2015
@bors bors merged commit 549be5f into rust-lang:master Mar 2, 2015
@dotdash dotdash deleted the closure_env_attr branch May 8, 2015 08:46
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.

4 participants