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

Changes for new Rust 0.6 syntax #1

Merged
merged 4 commits into from Mar 26, 2013
Merged

Conversation

@metajack
Copy link
Contributor

metajack commented Mar 26, 2013

This also includes some minor cleanup like annotating cast::transmute calls.

metajack added 3 commits Mar 25, 2013
- removed pub from `pub impl A for B`
- replaced `const` with `static`
- implemented `Drop` and `Index` traits
- removed `pure` and `static` function keywords
- removed `DVec`
- added `self` parameters to methods
array.rs Outdated
pure fn index(idx: uint) -> ElemRefType {
assert idx < self.len();
fn index(&self, idx: uint) -> ElemRefType {
fail_unless!(idx < self.len());

This comment has been minimized.

@pcwalton

pcwalton Mar 26, 2013

Contributor

You can actually do assert! now.

pcwalton added a commit that referenced this pull request Mar 26, 2013
Changes for new Rust 0.6 syntax
@pcwalton pcwalton merged commit fcf0f0b into servo:master Mar 26, 2013
@metajack metajack deleted the metajack:rust-0.6-syntax branch Mar 26, 2013
jdm pushed a commit that referenced this pull request Feb 1, 2018
Update to new syntax and removed unused imports.
jdm pushed a commit that referenced this pull request Feb 1, 2018
Update to new syntax and remove chained imports.
jdm pushed a commit that referenced this pull request Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.