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

Method push on Vec struct #46315

Closed
abjrcode opened this issue Nov 27, 2017 · 1 comment
Closed

Method push on Vec struct #46315

abjrcode opened this issue Nov 27, 2017 · 1 comment

Comments

@abjrcode
Copy link

I started learning Rust recently and I was checking the source code for reference so bear with me please.
Isn't this a bug?
We are casting the length which is defined as usize to isize? if not why so?

@bluss
Copy link
Member

bluss commented Nov 27, 2017

Hi, it's complicated but it should be explained in this RFC's text: rust-lang/rfcs#1966

I'll close this issue, there are other forums for more ongoing discussion. Feel free to report more bugs here.

@bluss bluss closed this as completed Nov 27, 2017
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

No branches or pull requests

2 participants