File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -760,8 +760,10 @@ impl Method {
760
760
?ty,
761
761
"property setter with unsafe arg was marked as safe"
762
762
) ;
763
+ true // TODO(breaking): Change to false
764
+ } else {
765
+ false
763
766
}
764
- false
765
767
} else if unsafe_retained && !ty. is_primitive_or_record ( ) {
766
768
// We could _probably_ mark these as safe, but let's not
767
769
// for now, they interact weirdly with the getters (which
@@ -771,8 +773,10 @@ impl Method {
771
773
?selector,
772
774
"`unsafe_retained` property setter was marked as safe"
773
775
) ;
776
+ true // TODO(breaking): Change to false
777
+ } else {
778
+ false
774
779
}
775
- false
776
780
} else if let Some ( unsafe_) = setter_data. unsafe_ {
777
781
// Allow overriding safety with config.
778
782
!unsafe_
You can’t perform that action at this time.
0 commit comments