Skip to content

std: Stabilize the env module#22869

Merged
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:stabilize-env
Feb 28, 2015
Merged

std: Stabilize the env module#22869
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:stabilize-env

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

Now that the std::env module has had some time to bake this commit marks most
of its APIs as #[stable]. Some notable APIs that are not stable (and still
use the same env feature gate) are:

  • {set,get}_exit_status - there are still questions about whether this is the
    right interface for setting/getting the exit status of a process.
  • page_size - this may change location in the future or perhaps name as well.

This also effectively closes #22122 as the variants of VarError are
#[stable] now. (this is done intentionally)

@alexcrichton

Copy link
Copy Markdown
Member Author

r? @aturon

@rust-highfive rust-highfive assigned aturon and unassigned nikomatsakis Feb 27, 2015
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @nikomatsakis

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

@alexcrichton alexcrichton force-pushed the stabilize-env branch 2 times, most recently from edb40ce to 33c9e5d Compare February 27, 2015 19:09
Comment thread src/libstd/env.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hm, you can have both stable and unstable items for the same feature name?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Hm right that does sound like a bad idea, I will move these to a new feature name.

@aturon

aturon commented Feb 27, 2015

Copy link
Copy Markdown
Contributor

@bors: r+ 974011f

another one bites the dust

@bors

bors commented Feb 27, 2015

Copy link
Copy Markdown
Collaborator

🙀 974011f is not a valid commit SHA. Please try again with 33c9e5d.

@aturon

aturon commented Feb 27, 2015

Copy link
Copy Markdown
Contributor

@bors: r+ 974011f

@bors

bors commented Feb 27, 2015

Copy link
Copy Markdown
Collaborator

🙀 974011f is not a valid commit SHA. Please try again with 33c9e5d.

@aturon

aturon commented Feb 27, 2015

Copy link
Copy Markdown
Contributor

@alexcrichton Hm, want to push a trivial new commit to get a new SHA, since homu seems busted here?

@alexcrichton

Copy link
Copy Markdown
Member Author

@bors: r=aturon 9eb9c21

Now that the `std::env` module has had some time to bake this commit marks most
of its APIs as `#[stable]`. Some notable APIs that are **not** stable (and still
use the same `env` feature gate) are:

* `{set,get}_exit_status` - there are still questions about whether this is the
  right interface for setting/getting the exit status of a process.
* `page_size` - this may change location in the future or perhaps name as well.

This also effectively closes rust-lang#22122 as the variants of `VarError` are
`#[stable]` now. (this is done intentionally)
@alexcrichton

Copy link
Copy Markdown
Member Author

@bors: r=aturon ad14891

@bors

bors commented Feb 28, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit ad14891 with merge 3af0f10...

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 28, 2015
 Now that the `std::env` module has had some time to bake this commit marks most
of its APIs as `#[stable]`. Some notable APIs that are **not** stable (and still
use the same `env` feature gate) are:

* `{set,get}_exit_status` - there are still questions about whether this is the
  right interface for setting/getting the exit status of a process.
* `page_size` - this may change location in the future or perhaps name as well.

This also effectively closes rust-lang#22122 as the variants of `VarError` are
`#[stable]` now. (this is done intentionally)
@bors

bors commented Feb 28, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-linux-64-x-android-t

@bors bors merged commit ad14891 into rust-lang:master Feb 28, 2015
@alexcrichton alexcrichton deleted the stabilize-env branch March 27, 2015 20:42
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.

std::env::VarError should capture name

5 participants