Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Oct 11, 2014

Closes #17861.

let mut result: Vec<field_ty> = Vec::with_capacity(len);
result.extend(results.as_slice().iter().flat_map(|rs| rs.iter().map(|f| f.clone())));
assert!(result.len() == len);
result
Copy link
Member

Choose a reason for hiding this comment

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

Glad to see this gone.

bors added a commit that referenced this pull request Oct 12, 2014
@bors bors closed this Oct 12, 2014
@bors bors merged commit 4442e6d into rust-lang:master Oct 12, 2014
@ghost ghost deleted the remove-virtual-structs branch October 16, 2014 22:28
lnicola pushed a commit to lnicola/rust that referenced this pull request Aug 29, 2024
fix: Fix Return Type Syntax to include `..` (i.e. `method(..)` and not `method()`) as specified in the RFC

Fixes rust-lang#17952.
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.

Remove virtual structs
2 participants