File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -133,8 +133,10 @@ pub unsafe trait DataMut : Data + DataRawMut {
133
133
/// accessed with safe code.
134
134
///
135
135
/// ***Internal trait, see `Data`.***
136
+ #[ deprecated( note="use `Data + DataRawClone` instead" , since="0.12.1" ) ]
136
137
pub trait DataClone : Data + DataRawClone { }
137
138
139
+ #[ allow( deprecated) ]
138
140
impl < T > DataClone for T where T : Data + DataRawClone { }
139
141
140
142
unsafe impl < A > DataRaw for RawViewRepr < * const A > {
@@ -387,7 +389,7 @@ pub unsafe trait DataOwned : Data {
387
389
/// A representation that is a lightweight view.
388
390
///
389
391
/// ***Internal trait, see `Data`.***
390
- pub unsafe trait DataShared : Clone + DataClone { }
392
+ pub unsafe trait DataShared : Clone + Data + DataRawClone { }
391
393
392
394
unsafe impl < A > DataShared for OwnedRcRepr < A > { }
393
395
unsafe impl < ' a , A > DataShared for ViewRepr < & ' a A > { }
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ mod data_traits;
151
151
152
152
pub use aliases:: * ;
153
153
154
+ #[ allow( deprecated) ]
154
155
pub use data_traits:: {
155
156
DataRaw ,
156
157
DataRawMut ,
You can’t perform that action at this time.
0 commit comments