File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ fn check_crate(tcx: ty::ctxt, crate: @crate) -> rval_map {
28
28
with * visit:: default_visitor ( )
29
29
} ) ;
30
30
visit:: visit_crate ( * crate , ctx, visit) ;
31
- // FIXME go through alias's copy_map, check implicit copies (either here,
32
- // or in alias.rs)
33
31
tcx. sess . abort_if_errors ( ) ;
34
32
ret ctx. rval_map ;
35
33
}
Original file line number Diff line number Diff line change @@ -1122,9 +1122,9 @@ pure fn type_has_dynamic_size(cx: ctxt, ty: t) -> bool {
1122
1122
}
1123
1123
}
1124
1124
1125
- // Returns true for types where a copy of a value can be distinguished from
1126
- // the value itself. I.e. types with mutable content that's not shared through
1127
- // a pointer.
1125
+ // Returns true for noncopyable types and types where a copy of a value can be
1126
+ // distinguished from the value itself. I.e. types with mutable content that's
1127
+ // not shared through a pointer.
1128
1128
fn type_allows_implicit_copy ( cx : ctxt , ty : t ) -> bool {
1129
1129
ret ! type_structurally_contains( cx, ty, fn ( sty: sty) -> bool {
1130
1130
ret alt sty {
@@ -1143,7 +1143,7 @@ fn type_allows_implicit_copy(cx: ctxt, ty: t) -> bool {
1143
1143
}
1144
1144
_ { false }
1145
1145
} ;
1146
- } ) ;
1146
+ } ) && type_kind ( cx , t ) != ast :: kind_noncopyable ;
1147
1147
}
1148
1148
1149
1149
fn type_structurally_contains_uniques ( cx : ctxt , ty : t ) -> bool {
You can’t perform that action at this time.
0 commit comments