]> git.lizzy.rs Git - rust.git/commitdiff
Useful derives on `ops::Status`
authorDylan MacKenzie <ecstaticmorse@gmail.com>
Thu, 17 Sep 2020 18:10:36 +0000 (11:10 -0700)
committerDylan MacKenzie <ecstaticmorse@gmail.com>
Tue, 22 Sep 2020 17:05:58 +0000 (10:05 -0700)
compiler/rustc_mir/src/transform/check_consts/ops.rs

index 032cbc23a3f52d8c552224d289443ca767011854..61171c870367c5348c918d191398e1e8568e8680 100644 (file)
@@ -51,6 +51,7 @@ pub fn non_const<O: NonConstOp>(ccx: &ConstCx<'_, '_>, op: O, span: Span) {
     op.emit_error(ccx, span);
 }
 
+#[derive(Clone, Copy, Debug, PartialEq, Eq)]
 pub enum Status {
     Allowed,
     Unstable(Symbol),