Add Debug impls to API types in rustc_codegen_ssa

This commit is contained in:
Mahmoud Mazouz 2024-08-04 21:59:03 +02:00
parent ab1527f1d6
commit 41ec376edd
No known key found for this signature in database
3 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@
use crate::traits::*;
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Debug)]
pub enum IntPredicate {
IntEQ,
IntNE,
@ -22,7 +22,7 @@ pub enum IntPredicate {
IntSLE,
}
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Debug)]
pub enum RealPredicate {
RealPredicateFalse,
RealOEQ,
@ -42,7 +42,7 @@ pub enum RealPredicate {
RealPredicateTrue,
}
#[derive(Copy, Clone, PartialEq)]
#[derive(Copy, Clone, PartialEq, Debug)]
pub enum AtomicRmwBinOp {
AtomicXchg,
AtomicAdd,
@ -57,7 +57,7 @@ pub enum AtomicRmwBinOp {
AtomicUMin,
}
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Debug)]
pub enum AtomicOrdering {
Unordered,
Relaxed,
@ -67,7 +67,7 @@ pub enum AtomicOrdering {
SequentiallyConsistent,
}
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Debug)]
pub enum SynchronizationScope {
SingleThread,
CrossThread,

View File

@ -131,7 +131,7 @@ pub(crate) fn is_expected_variant_for_type<'tcx, Cx: LayoutTypeMethods<'tcx>>(
/// to avoid nasty edge cases. In particular, using `Builder::store`
/// directly is sure to cause problems -- use `OperandRef::store`
/// instead.
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Debug)]
pub struct OperandRef<'tcx, V> {
/// The value.
pub val: OperandValue<V>,

View File

@ -23,7 +23,7 @@
use crate::mir::place::{PlaceRef, PlaceValue};
use crate::MemFlags;
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Debug)]
pub enum OverflowOp {
Add,
Sub,