mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 13:06:28 +03:00
atomic intrinsics: clarify which types are supported and (if applicable) what happens with provenance
This commit is contained in:
@@ -1031,7 +1031,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
|
||||
|
||||
let layout = src.layout();
|
||||
match layout.ty.kind() {
|
||||
ty::Uint(_) | ty::Int(_) | ty::RawPtr(..) => {}
|
||||
ty::Int(_) => {}
|
||||
_ => {
|
||||
report_atomic_type_validation_error(fx, intrinsic, source_info.span, layout.ty);
|
||||
return Ok(());
|
||||
@@ -1052,7 +1052,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
|
||||
|
||||
let layout = src.layout();
|
||||
match layout.ty.kind() {
|
||||
ty::Uint(_) | ty::Int(_) | ty::RawPtr(..) => {}
|
||||
ty::Uint(_) => {}
|
||||
_ => {
|
||||
report_atomic_type_validation_error(fx, intrinsic, source_info.span, layout.ty);
|
||||
return Ok(());
|
||||
@@ -1073,7 +1073,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
|
||||
|
||||
let layout = src.layout();
|
||||
match layout.ty.kind() {
|
||||
ty::Uint(_) | ty::Int(_) | ty::RawPtr(..) => {}
|
||||
ty::Int(_) => {}
|
||||
_ => {
|
||||
report_atomic_type_validation_error(fx, intrinsic, source_info.span, layout.ty);
|
||||
return Ok(());
|
||||
@@ -1094,7 +1094,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
|
||||
|
||||
let layout = src.layout();
|
||||
match layout.ty.kind() {
|
||||
ty::Uint(_) | ty::Int(_) | ty::RawPtr(..) => {}
|
||||
ty::Uint(_) => {}
|
||||
_ => {
|
||||
report_atomic_type_validation_error(fx, intrinsic, source_info.span, layout.ty);
|
||||
return Ok(());
|
||||
|
||||
Reference in New Issue
Block a user