Skip to content

Commit b1571c7

Browse files
stabilize derive(CoercePointee)
1 parent 57a4736 commit b1571c7

6 files changed

+4
-37
lines changed

library/core/src/marker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ pub trait FnPtr: Copy + Clone {
13021302
#[rustc_builtin_macro(CoercePointee, attributes(pointee))]
13031303
#[allow_internal_unstable(dispatch_from_dyn, coerce_unsized, unsize, coerce_pointee_validated)]
13041304
#[cfg_attr(not(test), rustc_diagnostic_item = "CoercePointee")]
1305-
#[unstable(feature = "derive_coerce_pointee", issue = "123430")]
1305+
#[stable(feature = "derive_coerce_pointee", since = "CURRENT_RUSTC_VERSION")]
13061306
pub macro CoercePointee($item:item) {
13071307
/* compiler built-in */
13081308
}

tests/ui/deriving/coerce-pointee-bounds-issue-127647.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ check-pass
22

3-
#![feature(derive_coerce_pointee)]
4-
53
#[derive(core::marker::CoercePointee)]
64
#[repr(transparent)]
75
pub struct Ptr<'a, #[pointee] T: OnDrop + ?Sized, X> {

tests/ui/deriving/deriving-coerce-pointee-neg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ proc-macro: malicious-macro.rs
2-
#![feature(derive_coerce_pointee, arbitrary_self_types)]
2+
#![feature(arbitrary_self_types)]
33

44
extern crate core;
55
extern crate malicious_macro;

tests/ui/deriving/deriving-coerce-pointee.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ run-pass
2-
#![feature(derive_coerce_pointee, arbitrary_self_types)]
2+
3+
#![feature(arbitrary_self_types)]
34

45
use std::marker::CoercePointee;
56

tests/ui/feature-gates/feature-gate-derive-coerce-pointee.rs

-9
This file was deleted.

tests/ui/feature-gates/feature-gate-derive-coerce-pointee.stderr

-23
This file was deleted.

0 commit comments

Comments
 (0)