Skip to content

removed os::set_args, closing #8325 #8681

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 1 commit into from
Closed

removed os::set_args, closing #8325 #8681

wants to merge 1 commit into from

Conversation

minhnhdo
Copy link
Contributor

No description provided.

pub fn args() -> ~[~str] {
match local_data::get(overridden_arg_key, |k| k.map(|&k| *k)) {
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should remove the TLS cache of the arguments to the process, we just need to remove the ability to override them.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see any reason for the cache. Getting the process arguments isn't perf sensitive.

@brson
Copy link
Contributor

brson commented Aug 23, 2013

Thanks!

removed pub on real_args, changed test to use args
@bors bors closed this Aug 23, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 21, 2022
…, r=flip1995

Fix ICE in `undocumented_unsafe_blocks`

fixes rust-lang#8681

changelog: Fix ICE in `undocumented_unsafe_blocks`
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