Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upstd: Stabilize APIs for the 1.9 release #32804
Conversation
rust-highfive
assigned
aturon
Apr 7, 2016
This comment has been minimized.
This comment has been minimized.
|
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
r? @brson |
rust-highfive
assigned
brson
and unassigned
aturon
Apr 7, 2016
brson
added
the
relnotes
label
Apr 7, 2016
brson
reviewed
Apr 7, 2016
src/libcore/ptr.rs
Outdated
| /// Rust does not currently have a rigorously and formally defined memory model, | ||
| /// so the precise semantics of what "volatile" means here is subject to change | ||
| /// over time. That being said, the semantics will almost always end up pretty | ||
| /// close to what [C11's definition of volatile is][c11]. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
brson
reviewed
Apr 7, 2016
src/libstd/ffi/os_str.rs
Outdated
| /// Creates a new `OsString` with the given capacity. | ||
| /// | ||
| /// The string will be able to hold exactly `capacity` lenth units of other | ||
| /// OS stringswithout reallocating. If `capacity` is 0, the string will not |
This comment has been minimized.
This comment has been minimized.
brson
reviewed
Apr 7, 2016
src/libstd/panic.rs
Outdated
| pub trait UnwindSafe {} | ||
|
|
||
| /// Deprecated, renamed to UnwindSafe | ||
| #[unstable(feature = "recover", reason = "awaiting feedback", issue = "27719")] | ||
| pub trait RecoverSafe {} |
This comment has been minimized.
This comment has been minimized.
brson
reviewed
Apr 7, 2016
src/libsyntax/feature_gate.rs
Outdated
| @@ -237,7 +237,7 @@ const KNOWN_FEATURES: &'static [(&'static str, &'static str, Option<u32>, Status | |||
| ("stmt_expr_attributes", "1.6.0", Some(15701), Active), | |||
|
|
|||
| // Allows `#[deprecated]` attribute | |||
| ("deprecated", "1.6.0", Some(29935), Active), | |||
| ("deprecated", "1.6.0", Some(29935), Accepted), | |||
This comment has been minimized.
This comment has been minimized.
brson
Apr 7, 2016
Contributor
This should be bumped to 1.9.0. "The version numbers here correspond to the version in which the current status
// was set".
This comment has been minimized.
This comment has been minimized.
|
r=me w/ feedback |
alexcrichton
force-pushed the
alexcrichton:stabilize-1.9
branch
from
26b2482
to
ba2589c
Apr 7, 2016
This comment has been minimized.
This comment has been minimized.
alexcrichton
referenced this pull request
Apr 7, 2016
Open
Tracking issue for `raw` stabilization (`raw::TraitObject`) #27751
tamird
reviewed
Apr 8, 2016
| if pos + 2 >= full_version_line.len() { | ||
| continue | ||
| } | ||
| if full_version_line[pos + 1..].chars().next().unwrap() != '.' { |
This comment has been minimized.
This comment has been minimized.
tamird
Apr 8, 2016
Contributor
not sure it matters, but you could probably use just one iterator here rather than 3.
ditto on L464
This comment has been minimized.
This comment has been minimized.
alexcrichton
Apr 8, 2016
Author
Member
Perhaps yeah, but this is pretty brittle and has no tests, so I'd rather not tamper with it too much.
tamird
reviewed
Apr 8, 2016
src/librustc/session/mod.rs
Outdated
| @@ -351,11 +351,11 @@ fn split_msg_into_multilines(msg: &str) -> Option<String> { | |||
| return None | |||
| } | |||
| let first = msg.match_indices("expected").filter(|s| { | |||
| s.0 > 0 && (msg.char_at_reverse(s.0) == ' ' || | |||
| msg.char_at_reverse(s.0) == '(') | |||
| s.0 > 0 && (msg[..s.0].chars().rev().next() == Some(' ') || | |||
This comment has been minimized.
This comment has been minimized.
Manishearth
added a commit
to Manishearth/rust
that referenced
this pull request
Apr 8, 2016
This comment has been minimized.
This comment has been minimized.
|
alexcrichton
force-pushed the
alexcrichton:stabilize-1.9
branch
from
ba2589c
to
0d18015
Apr 8, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Apr 9, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
rustc: x86_64-pc-windows-msvc/stage0/lib/rustlib/x86_64-pc-windows-msvc/lib/libstd
../src/libstd\sys/windows\ext\thread.rs:19:1: 23:2 error: This node does not have a stability attribute
../src/libstd\sys/windows\ext\thread.rs:19 impl<T> AsRawHandle for thread::JoinHandle<T> {
../src/libstd\sys/windows\ext\thread.rs:20 fn as_raw_handle(&self) -> RawHandle {
../src/libstd\sys/windows\ext\thread.rs:21 self.as_inner().handle().raw() as *mut _
../src/libstd\sys/windows\ext\thread.rs:22 }
../src/libstd\sys/windows\ext\thread.rs:23 }
../src/libstd\sys/windows\ext\thread.rs:25:1: 29:2 error: This node does not have a stability attribute
../src/libstd\sys/windows\ext\thread.rs:25 impl<T> IntoRawHandle for thread::JoinHandle<T> {
../src/libstd\sys/windows\ext\thread.rs:26 fn into_raw_handle(self) -> RawHandle {
../src/libstd\sys/windows\ext\thread.rs:27 self.into_inner().into_handle().into_raw() as *mut _
../src/libstd\sys/windows\ext\thread.rs:28 }
../src/libstd\sys/windows\ext\thread.rs:29 }
error: aborting due to 2 previous errors |
Amanieu
referenced this pull request
Apr 10, 2016
Merged
Fix undefined behavior in regex_macros #201
alexcrichton
force-pushed the
alexcrichton:stabilize-1.9
branch
from
0d18015
to
552eda7
Apr 11, 2016
This comment has been minimized.
This comment has been minimized.
brson
added
the
beta-nominated
label
Apr 11, 2016
This comment has been minimized.
This comment has been minimized.
|
These will need to be backported. |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Apr 12, 2016
This comment has been minimized.
This comment has been minimized.
bors
merged commit 552eda7
into
rust-lang:master
Apr 12, 2016
This was referenced Apr 12, 2016
alexcrichton
added
the
beta-accepted
label
Apr 12, 2016
alexcrichton
referenced this pull request
Apr 12, 2016
Merged
[beta] Backport API stabilizations #32910
brson
removed
the
beta-nominated
label
Apr 12, 2016
alexcrichton
deleted the
alexcrichton:stabilize-1.9
branch
Apr 13, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this pull request
Jun 21, 2016
alexcrichton
referenced this pull request
Jun 21, 2016
Merged
std: Fix up stabilization discrepancies #34399
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this pull request
Jun 22, 2016
bors
added a commit
that referenced
this pull request
Jun 23, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this pull request
Jun 23, 2016
bors
added a commit
that referenced
this pull request
Jun 23, 2016
bors
added a commit
that referenced
this pull request
Jun 24, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
alexcrichton commentedApr 7, 2016
This commit applies all stabilizations, renamings, and deprecations that the
library team has decided on for the upcoming 1.9 release. All tracking issues
have gone through a cycle-long "final comment period" and the specific APIs
stabilized/deprecated are:
Stable
std::panicstd::panic::catch_unwind(renamed fromrecover)std::panic::resume_unwind(renamed frompropagate)std::panic::AssertUnwindSafe(renamed fromAssertRecoverSafe)std::panic::UnwindSafe(renamed fromRecoverSafe)str::is_char_boundary<*const T>::as_ref<*mut T>::as_ref<*mut T>::as_mutAsciiExt::make_ascii_uppercaseAsciiExt::make_ascii_lowercasechar::decode_utf16char::DecodeUtf16char::DecodeUtf16Errorchar::DecodeUtf16Error::unpaired_surrogateBTreeSet::takeBTreeSet::replaceBTreeSet::getHashSet::takeHashSet::replaceHashSet::getOsString::with_capacityOsString::clearOsString::capacityOsString::reserveOsString::reserve_exactOsStr::is_emptyOsStr::lenstd::os::unix::threadRawPthreadJoinHandleExtJoinHandleExt::as_pthread_tJoinHandleExt::into_pthread_tHashSet::hasherHashMap::hasherCommandExt::execFile::try_cloneSocketAddr::set_ipSocketAddr::set_portSocketAddrV4::set_ipSocketAddrV4::set_portSocketAddrV6::set_ipSocketAddrV6::set_portSocketAddrV6::set_flowinfoSocketAddrV6::set_scope_id<[T]>::copy_from_sliceptr::read_volatileptr::write_volatile#[deprecated]attributeOpenOptions::create_newDeprecated
std::raw::Slice- use raw parts ofslicemodule insteadstd::raw::Repr- use raw parts ofslicemodule insteadstr::char_range_at- use slicing pluschars()pluslen_utf8str::char_range_at_reverse- use slicing pluschars().rev()pluslen_utf8str::char_at- use slicing pluschars()str::char_at_reverse- use slicing pluschars().rev()str::slice_shift_char- usechars()plusChars::as_strCommandExt::session_leader- usebefore_execinstead.Closes #27719
cc #27751 (deprecating the
Slicebits)Closes #27754
Closes #27780
Closes #27809
Closes #27811
Closes #27830
Closes #28050
Closes #29453
Closes #29791
Closes #29935
Closes #30014
Closes #30752
Closes #31262
cc #31398 (still need to deal with
before_exec)Closes #31405
Closes #31572
Closes #31755
Closes #31756