Skip to content

Replace some uses of deprecated os (mostly os::args) functions #22402

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

Closed
wants to merge 3 commits into from

Conversation

nagisa
Copy link
Member

@nagisa nagisa commented Feb 16, 2015

This commit mostly replaces some of the uses of os::args with env::args.

This, for obvious reasons is based on top of #22400. Do not r+ before that lands.

@rust-highfive
Copy link
Contributor

r? @nikomatsakis

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

} else {
10000
};

let m = if args.len() == 3 {
args[2].parse::<uint>().unwrap()
args.next().unwrap().parse::<usize>().unwrap()
Copy link
Member Author

Choose a reason for hiding this comment

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

This one is not as obvious as it was before, which possibly makes refactoring this file a little bit harder if we ever introduce breaking changes to env::args in the future.

Not sure how important it is, though.

This commit mostly replaces some of the uses of os::args with env::args.
@nikomatsakis
Copy link
Contributor

@bors r+ 7d941fa rollup

@nikomatsakis
Copy link
Contributor

Looks good to me!

@Manishearth
Copy link
Member

I'm going ahead and rolling this one up, ignoring the other PR, since in the rollup they'll all be together anyway. Let me know if I shouldn't.

@nagisa
Copy link
Member Author

nagisa commented Feb 17, 2015

OK, I closed the other one.

@Manishearth
Copy link
Member

Thanks. I'll be sure to let you know if the rollup fails and it needs reopening :)

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 17, 2015
…akis

This commit mostly replaces some of the uses of os::args with env::args.

This, for obvious reasons is based on top of rust-lang#22400. Do not r+ before that lands.
@nagisa
Copy link
Member Author

nagisa commented Feb 18, 2015

#22475 didn’t auto-close this somewhy…

@nagisa nagisa closed this Feb 18, 2015
@Manishearth
Copy link
Member

Probably because you pushed more changes here (which Alex may have included in a different form, i.e. a separate commit fixing issues in the other PRs). No need to worry about it 😄

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