/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_mir_build/src/build/expr/ |
H A D | category.rs | 38 ExprKind::Field { .. } in of() 39 | ExprKind::Deref { .. } in of() 40 | ExprKind::Index { .. } in of() 48 | ExprKind::If { .. } in of() 49 | ExprKind::Let { .. } in of() 51 | ExprKind::Use { .. } in of() 52 | ExprKind::Adt { .. } in of() 59 ExprKind::Array { .. } in of() 64 | ExprKind::Box { .. } in of() 73 ExprKind::ConstBlock { .. } | ExprKind::Literal { .. } | ExprKind::StaticRef { .. } => { in of() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_utils/src/ |
H A D | eager_or_lazy.rs | 28 … ExprKind::Lit(..) | ExprKind::ConstBlock(..) | ExprKind::Path(..) | ExprKind::Field(..) => true, in identify_some_pure_patterns() 34 ExprKind::Call( in identify_some_pure_patterns() 48 ExprKind::Block( in identify_some_pure_patterns() 56 ExprKind::Box(..) in identify_some_pure_patterns() 58 | ExprKind::Call(..) in identify_some_pure_patterns() 62 | ExprKind::Let(..) in identify_some_pure_patterns() 63 | ExprKind::Cast(..) in identify_some_pure_patterns() 64 | ExprKind::Type(..) in identify_some_pure_patterns() 66 | ExprKind::Loop(..) in identify_some_pure_patterns() 67 | ExprKind::If(..) in identify_some_pure_patterns() [all …]
|
H A D | sugg.rs | 129 | hir::ExprKind::Box(..) in hir_from_snippet() 130 | hir::ExprKind::If(..) in hir_from_snippet() 131 | hir::ExprKind::Let(..) in hir_from_snippet() 146 | hir::ExprKind::Lit(..) in hir_from_snippet() 151 | hir::ExprKind::Ret(..) in hir_from_snippet() 153 | hir::ExprKind::Tup(..) in hir_from_snippet() 176 | ast::ExprKind::Box(..) in ast() 178 | ast::ExprKind::If(..) in ast() 179 | ast::ExprKind::Let(..) in ast() 182 ast::ExprKind::Async(..) in ast() [all …]
|
H A D | higher.rs | 71 if let ExprKind::If( in hir() 73 kind: ExprKind::DropTemps(cond), in hir() 102 if let ExprKind::If( in hir() 188 if let ExprKind::Let(..) = cond.kind { in hir() 218 hir::ExprKind::Call(path, args) in hir() 322 if let ExprKind::Loop( in hir() 327 ExprKind::If( in hir() 364 if let ExprKind::Loop( in hir() 369 ExprKind::If( in hir() 444 if let ExprKind::Block(block, _) = e.kind { in extract_assert_macro_args() [all …]
|
H A D | hir_utils.rs | 201 (&ExprKind::Continue(li), &ExprKind::Continue(ri)) => { in eq_expr() 204 (&ExprKind::Assign(ll, lr, _), &ExprKind::Assign(rl, rr, _)) => { in eq_expr() 217 (&ExprKind::Break(li, ref le), &ExprKind::Break(ri, ref re)) => { in eq_expr() 221 (&ExprKind::Box(l), &ExprKind::Box(r)) => self.eq_expr(l, r), in eq_expr() 225 …(&ExprKind::Cast(lx, lt), &ExprKind::Cast(rx, rt)) | (&ExprKind::Type(lx, lt), &ExprKind::Type(rx,… in eq_expr() 232 (&ExprKind::If(lc, lt, ref le), &ExprKind::If(rc, rt, ref re)) => { in eq_expr() 236 (&ExprKind::Lit(ref l), &ExprKind::Lit(ref r)) => l.node == r.node, in eq_expr() 264 (&ExprKind::Array(l), &ExprKind::Array(r)) => self.eq_exprs(l, r), in eq_expr() 594 ExprKind::Box(e) | ExprKind::DropTemps(e) | ExprKind::Yield(e, _) => { in hash_expr() 601 ExprKind::Cast(e, ty) | ExprKind::Type(e, ty) => { in hash_expr() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_lints/src/ |
H A D | dereference.rs | 159 ExprKind::Call( in try_parse_ref_op() 220 ExprKind::Box(..) in is_linted_explicit_deref_position() 222 | ExprKind::Array(_) in is_linted_explicit_deref_position() 223 | ExprKind::Call(..) in is_linted_explicit_deref_position() 225 | ExprKind::Tup(..) in is_linted_explicit_deref_position() 228 | ExprKind::Lit(..) in is_linted_explicit_deref_position() 229 | ExprKind::Cast(..) in is_linted_explicit_deref_position() 230 | ExprKind::Type(..) in is_linted_explicit_deref_position() 232 | ExprKind::If(..) in is_linted_explicit_deref_position() 235 | ExprKind::Let(..) in is_linted_explicit_deref_position() [all …]
|
H A D | no_effect.rs | 115 ExprKind::Lit(..) | ExprKind::Closure(..) => true, in has_no_effect() 118 ExprKind::Array(v) | ExprKind::Tup(v) => v.iter().all(|val| has_no_effect(cx, val)), in has_no_effect() 119 ExprKind::Repeat(inner, _) in has_no_effect() 120 | ExprKind::Cast(inner, _) in has_no_effect() 121 | ExprKind::Type(inner, _) in has_no_effect() 122 | ExprKind::Unary(_, inner) in has_no_effect() 123 | ExprKind::Field(inner, _) in has_no_effect() 221 ExprKind::Array(v) | ExprKind::Tup(v) => Some(v.iter().collect()), in reduce_expression() 222 ExprKind::Repeat(inner, _) in reduce_expression() 223 | ExprKind::Cast(inner, _) in reduce_expression() [all …]
|
H A D | unnecessary_sort_by.rs | 78 (ExprKind::Box(left_expr), ExprKind::Box(right_expr)) => { in mirrored_exprs() 82 (ExprKind::Array(left_exprs), ExprKind::Array(right_exprs)) => { in mirrored_exprs() 87 (ExprKind::Call(left_expr, left_args), ExprKind::Call(right_expr, right_args)) => { in mirrored_exprs() 104 (ExprKind::Tup(left_exprs), ExprKind::Tup(right_exprs)) => { in mirrored_exprs() 108 …(ExprKind::Binary(left_op, left_left, left_right), ExprKind::Binary(right_op, right_left, right_ri… in mirrored_exprs() 114 (ExprKind::Unary(left_op, left_expr), ExprKind::Unary(right_op, right_expr)) => { in mirrored_exprs() 118 (ExprKind::Lit(left_lit), ExprKind::Lit(right_lit)) => left_lit.node == right_lit.node, in mirrored_exprs() 119 …(ExprKind::Cast(left, _), ExprKind::Cast(right, _)) => mirrored_exprs(cx, left, a_ident, right, b_… in mirrored_exprs() 120 (ExprKind::DropTemps(left_block), ExprKind::DropTemps(right_block)) => { in mirrored_exprs() 123 (ExprKind::Field(left_expr, left_ident), ExprKind::Field(right_expr, right_ident)) => { in mirrored_exprs() [all …]
|
H A D | eval_order_dependence.rs | 81 if let ExprKind::Assign(lhs, ..) | ExprKind::AssignOp(_, lhs, _) = expr.kind; in check_expr() 114 ExprKind::Closure(..) => {}, in maybe_walk_expr() 138 …ExprKind::Continue(_) | ExprKind::Break(_, _) | ExprKind::Ret(_) => self.report_diverging_sub_expr… in visit_expr() 232 ExprKind::Array(_) in check_expr() 233 | ExprKind::Tup(_) in check_expr() 234 | ExprKind::MethodCall(..) in check_expr() 235 | ExprKind::Call(_, _) in check_expr() 236 | ExprKind::Assign(..) in check_expr() 237 | ExprKind::Index(_, _) in check_expr() 238 | ExprKind::Repeat(_, _) in check_expr() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_lints/src/loops/ |
H A D | never_loop.rs | 116 ExprKind::Box(e) in never_loop_expr() 117 | ExprKind::Unary(_, e) in never_loop_expr() 118 | ExprKind::Cast(e, _) in never_loop_expr() 119 | ExprKind::Type(e, _) in never_loop_expr() 120 | ExprKind::Let(_, e, _) in never_loop_expr() 121 | ExprKind::Field(e, _) in never_loop_expr() 124 | ExprKind::Repeat(e, _) in never_loop_expr() 126 ExprKind::Array(es) | ExprKind::MethodCall(_, _, es, _) | ExprKind::Tup(es) => { in never_loop_expr() 184 | ExprKind::Yield(_, _) in never_loop_expr() 187 | ExprKind::Path(_) in never_loop_expr() [all …]
|
H A D | while_let_on_iterator.rs | 85 ExprKind::Path(ref path) => { in try_parse_iter_expr() 92 ExprKind::Field(base, name) => { in try_parse_iter_expr() 105 ExprKind::Unary(UnOp::Deref, base) => { in try_parse_iter_expr() 111 … ExprKind::DropTemps(base) | ExprKind::AddrOf(_, _, base) | ExprKind::Type(base, _) => e = base, in try_parse_iter_expr() 124 (ExprKind::Path(path), []) => { in is_expr_same_field() 127 …(&(ExprKind::DropTemps(base) | ExprKind::AddrOf(_, _, base) | ExprKind::Type(base, _)), _) => e = … in is_expr_same_field() 139 ExprKind::Field(base, name) => { in is_expr_same_child_or_parent_field() 158 … ExprKind::Field(base, _) | ExprKind::DropTemps(base) | ExprKind::Type(base, _) => e = base, in is_expr_same_child_or_parent_field() 168 ExprKind::DropTemps(base) | ExprKind::Type(base, _) | ExprKind::AddrOf(_, _, base) => { in is_expr_same_child_or_parent_field() 181 … ExprKind::Field(base, _) | ExprKind::DropTemps(base) | ExprKind::Type(base, _) => e = base, in skip_fields_and_path() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_mir_build/src/ |
H A D | check_unsafety.rs | 293 ExprKind::Field { .. } in visit_expr() 300 | ExprKind::Adt { .. } in visit_expr() 318 | ExprKind::Call { .. } in visit_expr() 326 | ExprKind::Loop { .. } in visit_expr() 327 | ExprKind::Let { .. } in visit_expr() 329 | ExprKind::Box { .. } in visit_expr() 330 | ExprKind::If { .. } in visit_expr() 380 ExprKind::InlineAsm { .. } | ExprKind::LlvmInlineAsm { .. } => { in visit_expr() 383 ExprKind::Adt(box Adt { in visit_expr() 394 ExprKind::Closure { in visit_expr() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/rustfmt/src/ |
H A D | utils.rs | 297 ast::ExprKind::Ret(..) | ast::ExprKind::Continue(..) | ast::ExprKind::Break(..) => { in semicolon_for_expr() 308 ast::ExprKind::While(..) | ast::ExprKind::Loop(..) | ast::ExprKind::ForLoop(..) => { in semicolon_for_stmt() 311 ast::ExprKind::Break(..) | ast::ExprKind::Continue(..) | ast::ExprKind::Ret(..) => { in semicolon_for_stmt() 475 | ast::ExprKind::Call(..) in is_block_expr() 480 | ast::ExprKind::If(..) in is_block_expr() 484 | ast::ExprKind::Loop(..) in is_block_expr() 503 | ast::ExprKind::Box(..) in is_block_expr() 507 | ast::ExprKind::Err in is_block_expr() 511 | ast::ExprKind::Let(..) in is_block_expr() 515 | ast::ExprKind::Ret(..) in is_block_expr() [all …]
|
H A D | closures.rs | 121 ast::ExprKind::Call(..) in veto_block() 122 | ast::ExprKind::Binary(..) in veto_block() 123 | ast::ExprKind::Cast(..) in veto_block() 124 | ast::ExprKind::Type(..) in veto_block() 125 | ast::ExprKind::Assign(..) in veto_block() 127 | ast::ExprKind::Field(..) in veto_block() 128 | ast::ExprKind::Index(..) in veto_block() 129 | ast::ExprKind::Range(..) in veto_block() 397 ast::ExprKind::If(..) | ast::ExprKind::While(..) | ast::ExprKind::ForLoop(..) => true, in is_block_closure_forced_inner() 418 ast::ExprKind::If(..) in expr_requires_semi_to_be_stmt() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_mir_build/src/thir/cx/ |
H A D | expr.rs | 60 kind: ExprKind::Scope { in mirror_expr_inner() 176 ExprKind::Call { in make_mirror_unadjusted() 294 hir::ExprKind::Lit(ref lit) => ExprKind::Literal { in make_mirror_unadjusted() 468 hir::ExprKind::InlineAsm(ref asm) => ExprKind::InlineAsm { in make_mirror_unadjusted() 573 hir::ExprKind::LlvmInlineAsm(ref asm) => ExprKind::LlvmInlineAsm { in make_mirror_unadjusted() 611 hir::ExprKind::If(cond, then, else_opt) => ExprKind::If { in make_mirror_unadjusted() 620 hir::ExprKind::Match(ref discr, ref arms, _) => ExprKind::Match { in make_mirror_unadjusted() 636 hir::ExprKind::Field(ref source, ..) => ExprKind::Field { in make_mirror_unadjusted() 994 ) -> ExprKind<'tcx> { in overloaded_operator() 997 ExprKind::Call { in overloaded_operator() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_passes/src/ |
H A D | naked_functions.rs | 203 ExprKind::Box(..) in check_expr() 206 | ExprKind::Call(..) in check_expr() 208 | ExprKind::Tup(..) in check_expr() 211 | ExprKind::Lit(..) in check_expr() 212 | ExprKind::Cast(..) in check_expr() 213 | ExprKind::Type(..) in check_expr() 214 | ExprKind::Loop(..) in check_expr() 216 | ExprKind::If(..) in check_expr() 224 | ExprKind::Let(..) in check_expr() 227 | ExprKind::Ret(..) in check_expr() [all …]
|
H A D | liveness.rs | 438 hir::ExprKind::If(..) in visit_expr() 476 | hir::ExprKind::Err in visit_expr() 1023 hir::ExprKind::Index(ref l, ref r) | hir::ExprKind::Binary(_, ref l, ref r) => { in propagate_through_expr() 1116 | hir::ExprKind::Err in propagate_through_expr() 1409 hir::ExprKind::Call(..) in check_expr() 1416 | hir::ExprKind::Tup(..) in check_expr() 1419 | hir::ExprKind::If(..) in check_expr() 1422 | hir::ExprKind::Ret(..) in check_expr() 1425 | hir::ExprKind::Lit(_) in check_expr() 1432 | hir::ExprKind::Path(_) in check_expr() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_ast_lowering/src/ |
H A D | expr.rs | 30 ExprKind::Box(ref inner) => hir::ExprKind::Box(self.lower_expr(inner)), in lower_expr_mut() 31 ExprKind::Array(ref exprs) => hir::ExprKind::Array(self.lower_exprs(exprs)), in lower_expr_mut() 41 ExprKind::Tup(ref elts) => hir::ExprKind::Tup(self.lower_exprs(elts)), in lower_expr_mut() 95 ExprKind::Let(ref pat, ref scrutinee, span) => hir::ExprKind::Let( in lower_expr_mut() 119 ExprKind::Match(ref expr, ref arms) => hir::ExprKind::Match( in lower_expr_mut() 167 ExprKind::AssignOp(op, ref el, ref er) => hir::ExprKind::AssignOp( in lower_expr_mut() 245 ExprKind::Err => hir::ExprKind::Err, in lower_expr_mut() 323 ) -> hir::ExprKind<'hir> { in lower_legacy_const_generics() 371 ) -> hir::ExprKind<'hir> { in lower_expr_if() 417 ) -> hir::ExprKind<'hir> { in lower_expr_while_in_loop_scope() [all …]
|
/dports/devel/sccache/sccache-0.2.15/cargo-crates/syn-0.11.11/src/ |
H A D | expr.rs | 7 pub node: ExprKind, 13 impl From<ExprKind> for Expr { 14 fn from(node: ExprKind) -> Expr { in from() 23 pub enum ExprKind { enum 500 named!(expr_mac -> ExprKind, map!(mac, ExprKind::Mac)); 521 (ExprKind::InPlace( 533 (ExprKind::Array(elems)) 564 (ExprKind::Tup(elems)) 578 named!(expr_lit -> ExprKind, map!(lit, ExprKind::Lit)); 721 (ExprKind::Closure( [all …]
|
/dports/databases/redisjson/RedisJSON-2.0.6/cargo-crates/syn-0.11.11/src/ |
H A D | expr.rs | 7 pub node: ExprKind, 13 impl From<ExprKind> for Expr { 14 fn from(node: ExprKind) -> Expr { in from() 23 pub enum ExprKind { enum 500 named!(expr_mac -> ExprKind, map!(mac, ExprKind::Mac)); 521 (ExprKind::InPlace( 533 (ExprKind::Array(elems)) 564 (ExprKind::Tup(elems)) 578 named!(expr_lit -> ExprKind, map!(lit, ExprKind::Lit)); 721 (ExprKind::Closure( [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/third_party/rust/syn-0.11.11/src/ |
H A D | expr.rs | 7 pub node: ExprKind, 13 impl From<ExprKind> for Expr { 14 fn from(node: ExprKind) -> Expr { in from() 23 pub enum ExprKind { enum 500 named!(expr_mac -> ExprKind, map!(mac, ExprKind::Mac)); 521 (ExprKind::InPlace( 533 (ExprKind::Array(elems)) 564 (ExprKind::Tup(elems)) 578 named!(expr_lit -> ExprKind, map!(lit, ExprKind::Lit)); 721 (ExprKind::Closure( [all …]
|
/dports/sysutils/vector/vector-0.10.0/cargo-crates/syn-0.11.11/src/ |
H A D | expr.rs | 7 pub node: ExprKind, 13 impl From<ExprKind> for Expr { 14 fn from(node: ExprKind) -> Expr { in from() 23 pub enum ExprKind { enum 500 named!(expr_mac -> ExprKind, map!(mac, ExprKind::Mac)); 521 (ExprKind::InPlace( 533 (ExprKind::Array(elems)) 564 (ExprKind::Tup(elems)) 578 named!(expr_lit -> ExprKind, map!(lit, ExprKind::Lit)); 721 (ExprKind::Closure( [all …]
|
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/cargo-crates/syn-0.11.11/src/ |
H A D | expr.rs | 7 pub node: ExprKind, 13 impl From<ExprKind> for Expr { 14 fn from(node: ExprKind) -> Expr { in from() 23 pub enum ExprKind { enum 500 named!(expr_mac -> ExprKind, map!(mac, ExprKind::Mac)); 521 (ExprKind::InPlace( 533 (ExprKind::Array(elems)) 564 (ExprKind::Tup(elems)) 578 named!(expr_lit -> ExprKind, map!(lit, ExprKind::Lit)); 721 (ExprKind::Closure( [all …]
|
/dports/x11/admiral/admiral-1.0.0-7-g5a9f33b/cargo-crates/syn-0.11.11/src/ |
H A D | expr.rs | 7 pub node: ExprKind, 13 impl From<ExprKind> for Expr { 14 fn from(node: ExprKind) -> Expr { in from() 23 pub enum ExprKind { enum 500 named!(expr_mac -> ExprKind, map!(mac, ExprKind::Mac)); 521 (ExprKind::InPlace( 533 (ExprKind::Array(elems)) 564 (ExprKind::Tup(elems)) 578 named!(expr_lit -> ExprKind, map!(lit, ExprKind::Lit)); 721 (ExprKind::Closure( [all …]
|
/dports/lang/rust/rustc-1.58.1-src/src/test/ui-fulldeps/ |
H A D | pprust-expr-roundtrip.rs | 49 fn expr(kind: ExprKind) -> P<Expr> { in expr() 56 expr(ExprKind::Path(None, path)) in make_x() 72 0 => iter_exprs(depth - 1, &mut |e| g(ExprKind::Box(e))), in iter_exprs() 116 g(ExprKind::Closure( in iter_exprs() 143 g(ExprKind::AddrOf(BorrowKind::Ref, Mutability::Not, e)) in iter_exprs() 147 g(ExprKind::Ret(None)); in iter_exprs() 148 iter_exprs(depth - 1, &mut |e| g(ExprKind::Ret(Some(e)))); in iter_exprs() 152 g(ExprKind::Struct(P(StructExpr { in iter_exprs() 160 iter_exprs(depth - 1, &mut |e| g(ExprKind::Try(e))); in iter_exprs() 180 ExprKind::Paren(inner) => *e = inner, in visit_expr() [all …]
|