diff options
| author | Ellen <supbscripter@gmail.com> | 2021-06-08 08:02:12 +0100 |
|---|---|---|
| committer | Ellen <supbscripter@gmail.com> | 2021-06-08 08:02:16 +0100 |
| commit | 8e7299dfcd4628965b58da10ec7393ab8f2c7e14 (patch) | |
| tree | 8f0c7f3507f40652edc1971ef3fa7a35141e6815 /compiler/rustc_privacy/src | |
| parent | dda4a881e006c808093543eece098565c3142c46 (diff) | |
| download | rust-8e7299dfcd4628965b58da10ec7393ab8f2c7e14.tar.gz rust-8e7299dfcd4628965b58da10ec7393ab8f2c7e14.zip | |
Support as casts in abstract consts
Diffstat (limited to 'compiler/rustc_privacy/src')
| -rw-r--r-- | compiler/rustc_privacy/src/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/rustc_privacy/src/lib.rs b/compiler/rustc_privacy/src/lib.rs index e64f12ef48f..05139b9404f 100644 --- a/compiler/rustc_privacy/src/lib.rs +++ b/compiler/rustc_privacy/src/lib.rs @@ -156,9 +156,10 @@ where let leaf = leaf.subst(tcx, ct.substs); self.visit_const(leaf) } - ACNode::Binop(..) | ACNode::UnaryOp(..) | ACNode::FunctionCall(_, _) => { - ControlFlow::CONTINUE - } + ACNode::Binop(..) + | ACNode::UnaryOp(..) + | ACNode::FunctionCall(_, _) + | ACNode::Cast(_, _, _) => ControlFlow::CONTINUE, }) } |
