File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 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 {
133133/// accessed with safe code.
134134///
135135/// ***Internal trait, see `Data`.***
136+ #[ deprecated( note="use `Data + DataRawClone` instead" , since="0.13" ) ]
136137pub trait DataClone : Data + DataRawClone { }
137138
139+ #[ allow( deprecated) ]
138140impl < T > DataClone for T where T : Data + DataRawClone { }
139141
140142unsafe impl < A > DataRaw for RawViewRepr < * const A > {
@@ -387,7 +389,7 @@ pub unsafe trait DataOwned : Data {
387389/// A representation that is a lightweight view.
388390///
389391/// ***Internal trait, see `Data`.***
390- pub unsafe trait DataShared : Clone + DataClone { }
392+ pub unsafe trait DataShared : Clone + Data + DataRawClone { }
391393
392394unsafe impl < A > DataShared for OwnedRcRepr < A > { }
393395unsafe 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;
151151
152152pub use aliases:: * ;
153153
154+ #[ allow( deprecated) ]
154155pub use data_traits:: {
155156 DataRaw ,
156157 DataRawMut ,
You can’t perform that action at this time.
0 commit comments