Home
last modified time | relevance | path

Searched refs:DesugaringKind (Results 1 – 25 of 29) sorted by relevance

12

/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_span/src/
H A Dhygiene.rs851 reason: DesugaringKind, in mark_with_reason() argument
1011 Desugaring(DesugaringKind),
1088 pub enum DesugaringKind { enum
1107 impl DesugaringKind { impl
1113 DesugaringKind::Await => "`await` expression", in descr()
1114 DesugaringKind::QuestionMark => "operator `?`", in descr()
1115 DesugaringKind::TryBlock => "`try` block", in descr()
1116 DesugaringKind::OpaqueTy => "`impl Trait`", in descr()
1117 DesugaringKind::ForLoop => "`for` loop", in descr()
1118 DesugaringKind::LetElse => "`let...else`", in descr()
[all …]
H A Dlib.rs44 pub use hygiene::{DesugaringKind, ExpnKind, MacroKind};
682 pub fn is_desugaring(&self, kind: DesugaringKind) -> bool { in is_desugaring()
691 pub fn desugaring_kind(&self) -> Option<DesugaringKind> { in desugaring_kind() argument
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_span-718.0.0/src/
H A Dhygiene.rs682 reason: DesugaringKind, in mark_with_reason() argument
846 Desugaring(DesugaringKind),
923 pub enum DesugaringKind { enum
947 impl DesugaringKind { implementation
951 DesugaringKind::CondTemporary => "`if` or `while` condition", in descr()
952 DesugaringKind::Async => "`async` block or function", in descr()
953 DesugaringKind::Await => "`await` expression", in descr()
954 DesugaringKind::QuestionMark => "operator `?`", in descr()
955 DesugaringKind::TryBlock => "`try` block", in descr()
956 DesugaringKind::OpaqueTy => "`impl Trait`", in descr()
[all …]
H A Dlib.rs41 pub use hygiene::{DesugaringKind, ExpnData, ExpnId, ExpnKind, ForLoopLoc, MacroKind};
519 pub fn is_desugaring(&self, kind: DesugaringKind) -> bool { in is_desugaring()
528 pub fn desugaring_kind(&self) -> Option<DesugaringKind> { in desugaring_kind() argument
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_span-722.0.0/src/
H A Dhygiene.rs685 reason: DesugaringKind, in mark_with_reason() argument
855 Desugaring(DesugaringKind),
932 pub enum DesugaringKind { enum
956 impl DesugaringKind { implementation
960 DesugaringKind::CondTemporary => "`if` or `while` condition", in descr()
961 DesugaringKind::Async => "`async` block or function", in descr()
962 DesugaringKind::Await => "`await` expression", in descr()
963 DesugaringKind::QuestionMark => "operator `?`", in descr()
964 DesugaringKind::TryBlock => "`try` block", in descr()
965 DesugaringKind::OpaqueTy => "`impl Trait`", in descr()
[all …]
H A Dlib.rs43 pub use hygiene::{DesugaringKind, ExpnData, ExpnId, ExpnKind, ForLoopLoc, MacroKind};
602 pub fn is_desugaring(&self, kind: DesugaringKind) -> bool { in is_desugaring()
611 pub fn desugaring_kind(&self) -> Option<DesugaringKind> { in desugaring_kind() argument
/dports/lang/rust/rustc-1.58.1-src/vendor/rustc-ap-rustc_span/src/
H A Dhygiene.rs685 reason: DesugaringKind, in mark_with_reason() argument
855 Desugaring(DesugaringKind),
932 pub enum DesugaringKind { enum
956 impl DesugaringKind { impl
960 DesugaringKind::CondTemporary => "`if` or `while` condition", in descr()
961 DesugaringKind::Async => "`async` block or function", in descr()
962 DesugaringKind::Await => "`await` expression", in descr()
963 DesugaringKind::QuestionMark => "operator `?`", in descr()
964 DesugaringKind::TryBlock => "`try` block", in descr()
965 DesugaringKind::OpaqueTy => "`impl Trait`", in descr()
[all …]
H A Dlib.rs43 pub use hygiene::{DesugaringKind, ExpnData, ExpnId, ExpnKind, ForLoopLoc, MacroKind};
602 pub fn is_desugaring(&self, kind: DesugaringKind) -> bool { in is_desugaring()
611 pub fn desugaring_kind(&self) -> Option<DesugaringKind> { in desugaring_kind() argument
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_hir/src/
H A Dpat_util.rs5 use rustc_span::hygiene::DesugaringKind;
150 if self.span.desugaring_kind() == Some(DesugaringKind::ForLoop) { in for_loop_some()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_ast_lowering/src/
H A Dexpr.rs14 use rustc_span::source_map::{respan, DesugaringKind, Span, Spanned};
106 this.mark_span_with_reason(DesugaringKind::WhileLoop, e.span, None); in lower_expr_mut()
389 self.mark_span_with_reason(DesugaringKind::CondTemporary, cond.span, None); in manage_let_cond()
444 DesugaringKind::TryBlock, in lower_expr_try_block()
452 DesugaringKind::TryBlock, in lower_expr_try_block()
461 this.mark_span_with_reason(DesugaringKind::TryBlock, tail_expr.span, None); in lower_expr_try_block()
626 let span = self.mark_span_with_reason(DesugaringKind::Await, await_span, None); in lower_expr_await()
628 DesugaringKind::Await, in lower_expr_await()
1345 let pat_span = self.mark_span_with_reason(DesugaringKind::ForLoop, pat.span, None); in lower_expr_for()
1439 DesugaringKind::QuestionMark, in lower_expr_try()
[all …]
H A Dblock.rs6 use rustc_span::{sym, DesugaringKind};
134 let span = self.mark_span_with_reason(DesugaringKind::LetElse, span, None); in lower_let_else()
H A Ditem.rs14 use rustc_span::source_map::{respan, DesugaringKind};
1128 let desugared_span = this.mark_span_with_reason(DesugaringKind::Async, span, None); in lower_maybe_async_body()
1218 this.mark_span_with_reason(DesugaringKind::Async, user_body.span, None); in lower_maybe_async_body()
H A Dlib.rs65 use rustc_span::source_map::{respan, DesugaringKind};
591 reason: DesugaringKind, in mark_span_with_reason() argument
1398 let opaque_ty_span = self.mark_span_with_reason(DesugaringKind::OpaqueTy, span, None); in lower_opaque_impl_trait()
1650 let opaque_ty_span = self.mark_span_with_reason(DesugaringKind::Async, span, None); in lower_async_fn_ret_ty()
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_lints/src/unit_types/
H A Dunit_arg.rs56 use rustc_span::hygiene::DesugaringKind; in is_questionmark_desugar_marked_call()
58 callee.span.is_desugaring(DesugaringKind::QuestionMark) in is_questionmark_desugar_marked_call()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/
H A Dlint.rs15 use rustc_span::source_map::{DesugaringKind, ExpnKind, MultiSpan};
398 | ExpnKind::Desugaring(DesugaringKind::ForLoop | DesugaringKind::WhileLoop) => false, in in_external_macro()
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_lints/src/
H A Dreturns.rs14 use rustc_span::hygiene::DesugaringKind;
203 if expr.span.desugaring_kind() != Some(DesugaringKind::LetElse) { in check_final_expr()
H A Dmisc.rs16 use rustc_span::hygiene::DesugaringKind;
397 if in_attributes_expansion(expr) || expr.span.is_desugaring(DesugaringKind::Await) { in check_expr()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_passes/src/
H A Dloops.rs12 use rustc_span::hygiene::DesugaringKind;
247 if !span.is_desugaring(DesugaringKind::QuestionMark) && self.cx == LabeledBlock { in require_label_in_labeled_block()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_borrowck/src/diagnostics/
H A Dexplain_borrow.rs16 use rustc_span::{sym, DesugaringKind, Span};
139 if local_decl.source_info.span.desugaring_kind() == Some(DesugaringKind::ForLoop) { in add_explanation_to_diagnostic()
H A Dmod.rs16 use rustc_span::{hygiene::DesugaringKind, symbol::sym, Span};
955 && fn_call_span.desugaring_kind() == Some(DesugaringKind::ForLoop); in move_spans()
H A Dmutability_errors.rs13 use rustc_span::source_map::DesugaringKind;
468 Some(DesugaringKind::ForLoop) => { in report_mutability_error()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/check/fn_ctxt/
H A D_impl.rs33 use rustc_span::hygiene::DesugaringKind;
58 if !span.is_desugaring(DesugaringKind::CondTemporary) in warn_if_unreachable()
59 && !span.is_desugaring(DesugaringKind::Async) in warn_if_unreachable()
60 && !orig_span.is_desugaring(DesugaringKind::Await) in warn_if_unreachable()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/check/
H A Dexpr.rs45 use rustc_span::hygiene::DesugaringKind;
197 ExprKind::Call(_, args) if expr.span.is_desugaring(DesugaringKind::TryBlock) => { in check_expr_with_expectation_and_args()
198 args.len() == 1 && args[0].span.is_desugaring(DesugaringKind::TryBlock) in check_expr_with_expectation_and_args()
230 ExprKind::Call(..) if expr.span.is_desugaring(DesugaringKind::TryBlock) => {} in check_expr_with_expectation_and_args()
937 let else_ty = if sp.desugaring_kind() == Some(DesugaringKind::LetElse) { in check_then_else()
H A Dcoercion.rs57 use rustc_span::{self, BytePos, DesugaringKind, Span};
1550 None | Some(DesugaringKind::WhileLoop) in report_return_mismatched_types()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_mir_build/src/thir/pattern/
H A Dcheck_match.rs20 use rustc_span::{DesugaringKind, ExpnKind, Span};
781 if let ExpnKind::Desugaring(DesugaringKind::LetElse) = expn_data.kind { in let_source()

12