Skip to content

Commit 399dcd1

Browse files
committed
Add missing micro version number component in stability attributes.
1 parent f15c816 commit 399dcd1

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/liballoc/heap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ unsafe impl Alloc for Heap {
232232
///
233233
/// This preserves the non-null invariant for types like `Box<T>`. The address
234234
/// may overlap with non-zero-size memory allocations.
235-
#[rustc_deprecated(since = "1.19", reason = "Use Unique/NonNull::empty() instead")]
235+
#[rustc_deprecated(since = "1.19.0", reason = "Use Unique/NonNull::empty() instead")]
236236
#[unstable(feature = "heap_api", issue = "27700")]
237237
pub const EMPTY: *mut () = 1 as *mut ();
238238

src/libcore/panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ impl<'a> Location<'a> {
238238
///
239239
/// panic!("Normal panic");
240240
/// ```
241-
#[stable(feature = "panic_col", since = "1.25")]
241+
#[stable(feature = "panic_col", since = "1.25.0")]
242242
pub fn column(&self) -> u32 {
243243
self.col
244244
}

src/libcore/ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2461,7 +2461,7 @@ impl<'a, T: ?Sized> From<NonNull<T>> for Unique<T> {
24612461
}
24622462

24632463
/// Previous name of `NonNull`.
2464-
#[rustc_deprecated(since = "1.24", reason = "renamed to `NonNull`")]
2464+
#[rustc_deprecated(since = "1.25.0", reason = "renamed to `NonNull`")]
24652465
#[unstable(feature = "shared", issue = "27730")]
24662466
pub type Shared<T> = NonNull<T>;
24672467

src/libstd/net/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ fn each_addr<A: ToSocketAddrs, F, T>(addr: A, mut f: F) -> io::Result<T>
134134
iterator and returning socket \
135135
addresses",
136136
issue = "27705")]
137-
#[rustc_deprecated(since = "1.25", reason = "Use the ToSocketAddrs trait instead")]
137+
#[rustc_deprecated(since = "1.25.0", reason = "Use the ToSocketAddrs trait instead")]
138138
pub struct LookupHost(net_imp::LookupHost);
139139

140140
#[unstable(feature = "lookup_host", reason = "unsure about the returned \
141141
iterator and returning socket \
142142
addresses",
143143
issue = "27705")]
144-
#[rustc_deprecated(since = "1.25", reason = "Use the ToSocketAddrs trait instead")]
144+
#[rustc_deprecated(since = "1.25.0", reason = "Use the ToSocketAddrs trait instead")]
145145
#[allow(deprecated)]
146146
impl Iterator for LookupHost {
147147
type Item = SocketAddr;
@@ -152,7 +152,7 @@ impl Iterator for LookupHost {
152152
iterator and returning socket \
153153
addresses",
154154
issue = "27705")]
155-
#[rustc_deprecated(since = "1.25", reason = "Use the ToSocketAddrs trait instead")]
155+
#[rustc_deprecated(since = "1.25.0", reason = "Use the ToSocketAddrs trait instead")]
156156
#[allow(deprecated)]
157157
impl fmt::Debug for LookupHost {
158158
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
@@ -186,7 +186,7 @@ impl fmt::Debug for LookupHost {
186186
iterator and returning socket \
187187
addresses",
188188
issue = "27705")]
189-
#[rustc_deprecated(since = "1.25", reason = "Use the ToSocketAddrs trait instead")]
189+
#[rustc_deprecated(since = "1.25.0", reason = "Use the ToSocketAddrs trait instead")]
190190
#[allow(deprecated)]
191191
pub fn lookup_host(host: &str) -> io::Result<LookupHost> {
192192
net_imp::lookup_host(host).map(LookupHost)

0 commit comments

Comments
 (0)