diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-17 17:22:32 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-17 17:22:32 +0100 |
commit | ce926aebc4461e38535047958c0b6f72b7a0c0ea (patch) | |
tree | 4b844e0681b459836bac22c34bee43e4dfa3dc5f | |
parent | 3ae0c5911ab50ee209179ee4329b0551abe6fc48 (diff) | |
parent | 02d25ab60d2701ce71fe2dfaca36627ad902e229 (diff) |
Merge #9315
9315: Nest all the or-patterns! r=Veykril a=Veykril
`cargo +nightly clippy --fix -Z unstable-options --allow-dirty -- -A clippy::all -D clippy::unnested_or_patterns`
Co-authored-by: Lukas Wirth <[email protected]>
82 files changed, 335 insertions, 355 deletions
diff --git a/crates/hir/src/semantics.rs b/crates/hir/src/semantics.rs index 613266e07..43162797e 100644 --- a/crates/hir/src/semantics.rs +++ b/crates/hir/src/semantics.rs | |||
@@ -51,12 +51,14 @@ impl PathResolution { | |||
51 | PathResolution::Def(ModuleDef::BuiltinType(builtin)) => { | 51 | PathResolution::Def(ModuleDef::BuiltinType(builtin)) => { |
52 | Some(TypeNs::BuiltinType((*builtin).into())) | 52 | Some(TypeNs::BuiltinType((*builtin).into())) |
53 | } | 53 | } |
54 | PathResolution::Def(ModuleDef::Const(_)) | 54 | PathResolution::Def( |
55 | | PathResolution::Def(ModuleDef::Variant(_)) | 55 | ModuleDef::Const(_) |
56 | | PathResolution::Def(ModuleDef::Function(_)) | 56 | | ModuleDef::Variant(_) |
57 | | PathResolution::Def(ModuleDef::Module(_)) | 57 | | ModuleDef::Function(_) |
58 | | PathResolution::Def(ModuleDef::Static(_)) | 58 | | ModuleDef::Module(_) |
59 | | PathResolution::Def(ModuleDef::Trait(_)) => None, | 59 | | ModuleDef::Static(_) |
60 | | ModuleDef::Trait(_), | ||
61 | ) => None, | ||
60 | PathResolution::Def(ModuleDef::TypeAlias(alias)) => { | 62 | PathResolution::Def(ModuleDef::TypeAlias(alias)) => { |
61 | Some(TypeNs::TypeAliasId((*alias).into())) | 63 | Some(TypeNs::TypeAliasId((*alias).into())) |
62 | } | 64 | } |
@@ -65,8 +67,7 @@ impl PathResolution { | |||
65 | } | 67 | } |
66 | PathResolution::TypeParam(param) => Some(TypeNs::GenericParam((*param).into())), | 68 | PathResolution::TypeParam(param) => Some(TypeNs::GenericParam((*param).into())), |
67 | PathResolution::SelfType(impl_def) => Some(TypeNs::SelfType((*impl_def).into())), | 69 | PathResolution::SelfType(impl_def) => Some(TypeNs::SelfType((*impl_def).into())), |
68 | PathResolution::AssocItem(AssocItem::Const(_)) | 70 | PathResolution::AssocItem(AssocItem::Const(_) | AssocItem::Function(_)) => None, |
69 | | PathResolution::AssocItem(AssocItem::Function(_)) => None, | ||
70 | PathResolution::AssocItem(AssocItem::TypeAlias(alias)) => { | 71 | PathResolution::AssocItem(AssocItem::TypeAlias(alias)) => { |
71 | Some(TypeNs::TypeAliasId((*alias).into())) | 72 | Some(TypeNs::TypeAliasId((*alias).into())) |
72 | } | 73 | } |
diff --git a/crates/hir_def/src/item_tree/pretty.rs b/crates/hir_def/src/item_tree/pretty.rs index b1e1b70d0..e63bc8232 100644 --- a/crates/hir_def/src/item_tree/pretty.rs +++ b/crates/hir_def/src/item_tree/pretty.rs | |||
@@ -63,7 +63,7 @@ impl<'a> Printer<'a> { | |||
63 | fn blank(&mut self) { | 63 | fn blank(&mut self) { |
64 | let mut iter = self.buf.chars().rev().fuse(); | 64 | let mut iter = self.buf.chars().rev().fuse(); |
65 | match (iter.next(), iter.next()) { | 65 | match (iter.next(), iter.next()) { |
66 | (Some('\n'), Some('\n')) | (Some('\n'), None) | (None, None) => {} | 66 | (Some('\n'), Some('\n') | None) | (None, None) => {} |
67 | (Some('\n'), Some(_)) => { | 67 | (Some('\n'), Some(_)) => { |
68 | self.buf.push('\n'); | 68 | self.buf.push('\n'); |
69 | } | 69 | } |
@@ -77,7 +77,7 @@ impl<'a> Printer<'a> { | |||
77 | 77 | ||
78 | fn whitespace(&mut self) { | 78 | fn whitespace(&mut self) { |
79 | match self.buf.chars().next_back() { | 79 | match self.buf.chars().next_back() { |
80 | None | Some('\n') | Some(' ') => {} | 80 | None | Some('\n' | ' ') => {} |
81 | _ => self.buf.push(' '), | 81 | _ => self.buf.push(' '), |
82 | } | 82 | } |
83 | } | 83 | } |
diff --git a/crates/hir_def/src/nameres/collector.rs b/crates/hir_def/src/nameres/collector.rs index fc2c50fb8..927a7b6e8 100644 --- a/crates/hir_def/src/nameres/collector.rs +++ b/crates/hir_def/src/nameres/collector.rs | |||
@@ -1260,7 +1260,7 @@ impl DefCollector<'_> { | |||
1260 | for directive in &self.unresolved_imports { | 1260 | for directive in &self.unresolved_imports { |
1261 | if let ImportSource::Import { id: import, use_tree } = &directive.import.source { | 1261 | if let ImportSource::Import { id: import, use_tree } = &directive.import.source { |
1262 | match (directive.import.path.segments().first(), &directive.import.path.kind) { | 1262 | match (directive.import.path.segments().first(), &directive.import.path.kind) { |
1263 | (Some(krate), PathKind::Plain) | (Some(krate), PathKind::Abs) => { | 1263 | (Some(krate), PathKind::Plain | PathKind::Abs) => { |
1264 | if diagnosed_extern_crates.contains(krate) { | 1264 | if diagnosed_extern_crates.contains(krate) { |
1265 | continue; | 1265 | continue; |
1266 | } | 1266 | } |
diff --git a/crates/hir_def/src/resolver.rs b/crates/hir_def/src/resolver.rs index d4681fa3e..47e56259f 100644 --- a/crates/hir_def/src/resolver.rs +++ b/crates/hir_def/src/resolver.rs | |||
@@ -605,8 +605,7 @@ fn to_value_ns(per_ns: PerNs) -> Option<ValueNs> { | |||
605 | ModuleDefId::ConstId(it) => ValueNs::ConstId(it), | 605 | ModuleDefId::ConstId(it) => ValueNs::ConstId(it), |
606 | ModuleDefId::StaticId(it) => ValueNs::StaticId(it), | 606 | ModuleDefId::StaticId(it) => ValueNs::StaticId(it), |
607 | 607 | ||
608 | ModuleDefId::AdtId(AdtId::EnumId(_)) | 608 | ModuleDefId::AdtId(AdtId::EnumId(_) | AdtId::UnionId(_)) |
609 | | ModuleDefId::AdtId(AdtId::UnionId(_)) | ||
610 | | ModuleDefId::TraitId(_) | 609 | | ModuleDefId::TraitId(_) |
611 | | ModuleDefId::TypeAliasId(_) | 610 | | ModuleDefId::TypeAliasId(_) |
612 | | ModuleDefId::BuiltinType(_) | 611 | | ModuleDefId::BuiltinType(_) |
diff --git a/crates/hir_def/src/visibility.rs b/crates/hir_def/src/visibility.rs index 83500f54e..aeb1e7726 100644 --- a/crates/hir_def/src/visibility.rs +++ b/crates/hir_def/src/visibility.rs | |||
@@ -172,9 +172,8 @@ impl Visibility { | |||
172 | /// visible in unrelated modules). | 172 | /// visible in unrelated modules). |
173 | pub(crate) fn max(self, other: Visibility, def_map: &DefMap) -> Option<Visibility> { | 173 | pub(crate) fn max(self, other: Visibility, def_map: &DefMap) -> Option<Visibility> { |
174 | match (self, other) { | 174 | match (self, other) { |
175 | (Visibility::Module(_), Visibility::Public) | 175 | (Visibility::Module(_) | Visibility::Public, Visibility::Public) |
176 | | (Visibility::Public, Visibility::Module(_)) | 176 | | (Visibility::Public, Visibility::Module(_)) => Some(Visibility::Public), |
177 | | (Visibility::Public, Visibility::Public) => Some(Visibility::Public), | ||
178 | (Visibility::Module(mod_a), Visibility::Module(mod_b)) => { | 177 | (Visibility::Module(mod_a), Visibility::Module(mod_b)) => { |
179 | if mod_a.krate != mod_b.krate { | 178 | if mod_a.krate != mod_b.krate { |
180 | return None; | 179 | return None; |
diff --git a/crates/hir_expand/src/hygiene.rs b/crates/hir_expand/src/hygiene.rs index 05c6c3fb1..848522411 100644 --- a/crates/hir_expand/src/hygiene.rs +++ b/crates/hir_expand/src/hygiene.rs | |||
@@ -146,10 +146,11 @@ impl HygieneInfo { | |||
146 | (&self.macro_arg.1, InFile::new(loc.kind.file_id(), arg_start)) | 146 | (&self.macro_arg.1, InFile::new(loc.kind.file_id(), arg_start)) |
147 | } | 147 | } |
148 | mbe::Origin::Def => match (&*self.macro_def, self.def_start) { | 148 | mbe::Origin::Def => match (&*self.macro_def, self.def_start) { |
149 | (TokenExpander::MacroDef { def_site_token_map, .. }, Some(tt)) | 149 | ( |
150 | | (TokenExpander::MacroRules { def_site_token_map, .. }, Some(tt)) => { | 150 | TokenExpander::MacroDef { def_site_token_map, .. } |
151 | (def_site_token_map, tt) | 151 | | TokenExpander::MacroRules { def_site_token_map, .. }, |
152 | } | 152 | Some(tt), |
153 | ) => (def_site_token_map, tt), | ||
153 | _ => panic!("`Origin::Def` used with non-`macro_rules!` macro"), | 154 | _ => panic!("`Origin::Def` used with non-`macro_rules!` macro"), |
154 | }, | 155 | }, |
155 | }; | 156 | }; |
diff --git a/crates/hir_expand/src/lib.rs b/crates/hir_expand/src/lib.rs index 33107aa24..c31426d7c 100644 --- a/crates/hir_expand/src/lib.rs +++ b/crates/hir_expand/src/lib.rs | |||
@@ -368,10 +368,11 @@ impl ExpansionInfo { | |||
368 | let (token_map, tt) = match origin { | 368 | let (token_map, tt) = match origin { |
369 | mbe::Origin::Call => (&self.macro_arg.1, self.arg.clone()), | 369 | mbe::Origin::Call => (&self.macro_arg.1, self.arg.clone()), |
370 | mbe::Origin::Def => match (&*self.macro_def, self.def.as_ref()) { | 370 | mbe::Origin::Def => match (&*self.macro_def, self.def.as_ref()) { |
371 | (db::TokenExpander::MacroRules { def_site_token_map, .. }, Some(tt)) | 371 | ( |
372 | | (db::TokenExpander::MacroDef { def_site_token_map, .. }, Some(tt)) => { | 372 | db::TokenExpander::MacroRules { def_site_token_map, .. } |
373 | (def_site_token_map, tt.as_ref().map(|tt| tt.syntax().clone())) | 373 | | db::TokenExpander::MacroDef { def_site_token_map, .. }, |
374 | } | 374 | Some(tt), |
375 | ) => (def_site_token_map, tt.as_ref().map(|tt| tt.syntax().clone())), | ||
375 | _ => panic!("`Origin::Def` used with non-`macro_rules!` macro"), | 376 | _ => panic!("`Origin::Def` used with non-`macro_rules!` macro"), |
376 | }, | 377 | }, |
377 | }; | 378 | }; |
diff --git a/crates/hir_ty/src/consteval.rs b/crates/hir_ty/src/consteval.rs index 6f0bf8f8c..ab1afce08 100644 --- a/crates/hir_ty/src/consteval.rs +++ b/crates/hir_ty/src/consteval.rs | |||
@@ -38,8 +38,7 @@ impl ConstExt for Const { | |||
38 | // FIXME: support more than just evaluating literals | 38 | // FIXME: support more than just evaluating literals |
39 | pub fn eval_usize(expr: &Expr) -> Option<u64> { | 39 | pub fn eval_usize(expr: &Expr) -> Option<u64> { |
40 | match expr { | 40 | match expr { |
41 | Expr::Literal(Literal::Uint(v, None)) | 41 | Expr::Literal(Literal::Uint(v, None | Some(BuiltinUint::Usize))) => (*v).try_into().ok(), |
42 | | Expr::Literal(Literal::Uint(v, Some(BuiltinUint::Usize))) => (*v).try_into().ok(), | ||
43 | _ => None, | 42 | _ => None, |
44 | } | 43 | } |
45 | } | 44 | } |
diff --git a/crates/hir_ty/src/diagnostics/match_check/deconstruct_pat.rs b/crates/hir_ty/src/diagnostics/match_check/deconstruct_pat.rs index 471cd4921..e3d640a79 100644 --- a/crates/hir_ty/src/diagnostics/match_check/deconstruct_pat.rs +++ b/crates/hir_ty/src/diagnostics/match_check/deconstruct_pat.rs | |||
@@ -84,10 +84,7 @@ impl IntRange { | |||
84 | #[inline] | 84 | #[inline] |
85 | fn is_integral(ty: &Ty) -> bool { | 85 | fn is_integral(ty: &Ty) -> bool { |
86 | match ty.kind(&Interner) { | 86 | match ty.kind(&Interner) { |
87 | TyKind::Scalar(Scalar::Char) | 87 | TyKind::Scalar(Scalar::Char | Scalar::Int(_) | Scalar::Uint(_) | Scalar::Bool) => true, |
88 | | TyKind::Scalar(Scalar::Int(_)) | ||
89 | | TyKind::Scalar(Scalar::Uint(_)) | ||
90 | | TyKind::Scalar(Scalar::Bool) => true, | ||
91 | _ => false, | 88 | _ => false, |
92 | } | 89 | } |
93 | } | 90 | } |
@@ -381,7 +378,7 @@ impl Constructor { | |||
381 | // Wildcards cover anything | 378 | // Wildcards cover anything |
382 | (_, Wildcard) => true, | 379 | (_, Wildcard) => true, |
383 | // The missing ctors are not covered by anything in the matrix except wildcards. | 380 | // The missing ctors are not covered by anything in the matrix except wildcards. |
384 | (Missing, _) | (Wildcard, _) => false, | 381 | (Missing | Wildcard, _) => false, |
385 | 382 | ||
386 | (Single, Single) => true, | 383 | (Single, Single) => true, |
387 | (Variant(self_id), Variant(other_id)) => self_id == other_id, | 384 | (Variant(self_id), Variant(other_id)) => self_id == other_id, |
@@ -523,7 +520,7 @@ impl SplitWildcard { | |||
523 | } | 520 | } |
524 | } | 521 | } |
525 | TyKind::Scalar(Scalar::Char) => unhandled(), | 522 | TyKind::Scalar(Scalar::Char) => unhandled(), |
526 | TyKind::Scalar(Scalar::Int(..)) | TyKind::Scalar(Scalar::Uint(..)) => unhandled(), | 523 | TyKind::Scalar(Scalar::Int(..) | Scalar::Uint(..)) => unhandled(), |
527 | TyKind::Never if !cx.feature_exhaustive_patterns() && !pcx.is_top_level => { | 524 | TyKind::Never if !cx.feature_exhaustive_patterns() && !pcx.is_top_level => { |
528 | smallvec![NonExhaustive] | 525 | smallvec![NonExhaustive] |
529 | } | 526 | } |
diff --git a/crates/hir_ty/src/infer/coerce.rs b/crates/hir_ty/src/infer/coerce.rs index 4b7f31521..7be914451 100644 --- a/crates/hir_ty/src/infer/coerce.rs +++ b/crates/hir_ty/src/infer/coerce.rs | |||
@@ -47,10 +47,7 @@ impl<'a> InferenceContext<'a> { | |||
47 | // pointers to have a chance at getting a match. See | 47 | // pointers to have a chance at getting a match. See |
48 | // https://github.com/rust-lang/rust/blob/7b805396bf46dce972692a6846ce2ad8481c5f85/src/librustc_typeck/check/coercion.rs#L877-L916 | 48 | // https://github.com/rust-lang/rust/blob/7b805396bf46dce972692a6846ce2ad8481c5f85/src/librustc_typeck/check/coercion.rs#L877-L916 |
49 | let sig = match (ty1.kind(&Interner), ty2.kind(&Interner)) { | 49 | let sig = match (ty1.kind(&Interner), ty2.kind(&Interner)) { |
50 | (TyKind::FnDef(..), TyKind::FnDef(..)) | 50 | (TyKind::FnDef(..) | TyKind::Closure(..), TyKind::FnDef(..) | TyKind::Closure(..)) => { |
51 | | (TyKind::Closure(..), TyKind::FnDef(..)) | ||
52 | | (TyKind::FnDef(..), TyKind::Closure(..)) | ||
53 | | (TyKind::Closure(..), TyKind::Closure(..)) => { | ||
54 | // FIXME: we're ignoring safety here. To be more correct, if we have one FnDef and one Closure, | 51 | // FIXME: we're ignoring safety here. To be more correct, if we have one FnDef and one Closure, |
55 | // we should be coercing the closure to a fn pointer of the safety of the FnDef | 52 | // we should be coercing the closure to a fn pointer of the safety of the FnDef |
56 | cov_mark::hit!(coerce_fn_reification); | 53 | cov_mark::hit!(coerce_fn_reification); |
@@ -448,8 +445,7 @@ fn safe_to_unsafe_fn_ty(fn_ty: FnPointer) -> FnPointer { | |||
448 | 445 | ||
449 | fn coerce_mutabilities(from: Mutability, to: Mutability) -> Result<(), TypeError> { | 446 | fn coerce_mutabilities(from: Mutability, to: Mutability) -> Result<(), TypeError> { |
450 | match (from, to) { | 447 | match (from, to) { |
451 | (Mutability::Mut, Mutability::Mut) | 448 | (Mutability::Mut, Mutability::Mut | Mutability::Not) |
452 | | (Mutability::Mut, Mutability::Not) | ||
453 | | (Mutability::Not, Mutability::Not) => Ok(()), | 449 | | (Mutability::Not, Mutability::Not) => Ok(()), |
454 | (Mutability::Not, Mutability::Mut) => Err(TypeError), | 450 | (Mutability::Not, Mutability::Mut) => Err(TypeError), |
455 | } | 451 | } |
diff --git a/crates/hir_ty/src/infer/expr.rs b/crates/hir_ty/src/infer/expr.rs index 5ea2e5934..4e4f6e5a4 100644 --- a/crates/hir_ty/src/infer/expr.rs +++ b/crates/hir_ty/src/infer/expr.rs | |||
@@ -593,11 +593,11 @@ impl<'a> InferenceContext<'a> { | |||
593 | UnaryOp::Neg => { | 593 | UnaryOp::Neg => { |
594 | match inner_ty.kind(&Interner) { | 594 | match inner_ty.kind(&Interner) { |
595 | // Fast path for builtins | 595 | // Fast path for builtins |
596 | TyKind::Scalar(Scalar::Int(_)) | 596 | TyKind::Scalar(Scalar::Int(_) | Scalar::Uint(_) | Scalar::Float(_)) |
597 | | TyKind::Scalar(Scalar::Uint(_)) | 597 | | TyKind::InferenceVar( |
598 | | TyKind::Scalar(Scalar::Float(_)) | 598 | _, |
599 | | TyKind::InferenceVar(_, TyVariableKind::Integer) | 599 | TyVariableKind::Integer | TyVariableKind::Float, |
600 | | TyKind::InferenceVar(_, TyVariableKind::Float) => inner_ty, | 600 | ) => inner_ty, |
601 | // Otherwise we resolve via the std::ops::Neg trait | 601 | // Otherwise we resolve via the std::ops::Neg trait |
602 | _ => self | 602 | _ => self |
603 | .resolve_associated_type(inner_ty, self.resolve_ops_neg_output()), | 603 | .resolve_associated_type(inner_ty, self.resolve_ops_neg_output()), |
@@ -606,9 +606,7 @@ impl<'a> InferenceContext<'a> { | |||
606 | UnaryOp::Not => { | 606 | UnaryOp::Not => { |
607 | match inner_ty.kind(&Interner) { | 607 | match inner_ty.kind(&Interner) { |
608 | // Fast path for builtins | 608 | // Fast path for builtins |
609 | TyKind::Scalar(Scalar::Bool) | 609 | TyKind::Scalar(Scalar::Bool | Scalar::Int(_) | Scalar::Uint(_)) |
610 | | TyKind::Scalar(Scalar::Int(_)) | ||
611 | | TyKind::Scalar(Scalar::Uint(_)) | ||
612 | | TyKind::InferenceVar(_, TyVariableKind::Integer) => inner_ty, | 610 | | TyKind::InferenceVar(_, TyVariableKind::Integer) => inner_ty, |
613 | // Otherwise we resolve via the std::ops::Not trait | 611 | // Otherwise we resolve via the std::ops::Not trait |
614 | _ => self | 612 | _ => self |
@@ -735,7 +733,7 @@ impl<'a> InferenceContext<'a> { | |||
735 | Expr::Array(array) => { | 733 | Expr::Array(array) => { |
736 | let elem_ty = | 734 | let elem_ty = |
737 | match expected.to_option(&mut self.table).as_ref().map(|t| t.kind(&Interner)) { | 735 | match expected.to_option(&mut self.table).as_ref().map(|t| t.kind(&Interner)) { |
738 | Some(TyKind::Array(st, _)) | Some(TyKind::Slice(st)) => st.clone(), | 736 | Some(TyKind::Array(st, _) | TyKind::Slice(st)) => st.clone(), |
739 | _ => self.table.new_type_var(), | 737 | _ => self.table.new_type_var(), |
740 | }; | 738 | }; |
741 | 739 | ||
diff --git a/crates/hir_ty/src/infer/pat.rs b/crates/hir_ty/src/infer/pat.rs index 035f4ded6..58cb23e9d 100644 --- a/crates/hir_ty/src/infer/pat.rs +++ b/crates/hir_ty/src/infer/pat.rs | |||
@@ -297,10 +297,11 @@ fn is_non_ref_pat(body: &hir_def::body::Body, pat: PatId) -> bool { | |||
297 | Expr::Literal(Literal::String(..)) => false, | 297 | Expr::Literal(Literal::String(..)) => false, |
298 | _ => true, | 298 | _ => true, |
299 | }, | 299 | }, |
300 | Pat::Bind { mode: BindingAnnotation::Mutable, subpat: Some(subpat), .. } | 300 | Pat::Bind { |
301 | | Pat::Bind { mode: BindingAnnotation::Unannotated, subpat: Some(subpat), .. } => { | 301 | mode: BindingAnnotation::Mutable | BindingAnnotation::Unannotated, |
302 | is_non_ref_pat(body, *subpat) | 302 | subpat: Some(subpat), |
303 | } | 303 | .. |
304 | } => is_non_ref_pat(body, *subpat), | ||
304 | Pat::Wild | Pat::Bind { .. } | Pat::Ref { .. } | Pat::Box { .. } | Pat::Missing => false, | 305 | Pat::Wild | Pat::Bind { .. } | Pat::Ref { .. } | Pat::Box { .. } | Pat::Missing => false, |
305 | } | 306 | } |
306 | } | 307 | } |
diff --git a/crates/hir_ty/src/op.rs b/crates/hir_ty/src/op.rs index 0222de2bc..5ef6342d5 100644 --- a/crates/hir_ty/src/op.rs +++ b/crates/hir_ty/src/op.rs | |||
@@ -8,17 +8,15 @@ pub(super) fn binary_op_return_ty(op: BinaryOp, lhs_ty: Ty, rhs_ty: Ty) -> Ty { | |||
8 | match op { | 8 | match op { |
9 | BinaryOp::LogicOp(_) | BinaryOp::CmpOp(_) => TyKind::Scalar(Scalar::Bool).intern(&Interner), | 9 | BinaryOp::LogicOp(_) | BinaryOp::CmpOp(_) => TyKind::Scalar(Scalar::Bool).intern(&Interner), |
10 | BinaryOp::Assignment { .. } => TyBuilder::unit(), | 10 | BinaryOp::Assignment { .. } => TyBuilder::unit(), |
11 | BinaryOp::ArithOp(ArithOp::Shl) | BinaryOp::ArithOp(ArithOp::Shr) => { | 11 | BinaryOp::ArithOp(ArithOp::Shl | ArithOp::Shr) => { |
12 | // all integer combinations are valid here | 12 | // all integer combinations are valid here |
13 | if matches!( | 13 | if matches!( |
14 | lhs_ty.kind(&Interner), | 14 | lhs_ty.kind(&Interner), |
15 | TyKind::Scalar(Scalar::Int(_)) | 15 | TyKind::Scalar(Scalar::Int(_) | Scalar::Uint(_)) |
16 | | TyKind::Scalar(Scalar::Uint(_)) | ||
17 | | TyKind::InferenceVar(_, TyVariableKind::Integer) | 16 | | TyKind::InferenceVar(_, TyVariableKind::Integer) |
18 | ) && matches!( | 17 | ) && matches!( |
19 | rhs_ty.kind(&Interner), | 18 | rhs_ty.kind(&Interner), |
20 | TyKind::Scalar(Scalar::Int(_)) | 19 | TyKind::Scalar(Scalar::Int(_) | Scalar::Uint(_)) |
21 | | TyKind::Scalar(Scalar::Uint(_)) | ||
22 | | TyKind::InferenceVar(_, TyVariableKind::Integer) | 20 | | TyKind::InferenceVar(_, TyVariableKind::Integer) |
23 | ) { | 21 | ) { |
24 | lhs_ty | 22 | lhs_ty |
@@ -32,15 +30,15 @@ pub(super) fn binary_op_return_ty(op: BinaryOp, lhs_ty: Ty, rhs_ty: Ty) -> Ty { | |||
32 | | (TyKind::Scalar(Scalar::Uint(_)), TyKind::Scalar(Scalar::Uint(_))) | 30 | | (TyKind::Scalar(Scalar::Uint(_)), TyKind::Scalar(Scalar::Uint(_))) |
33 | | (TyKind::Scalar(Scalar::Float(_)), TyKind::Scalar(Scalar::Float(_))) => rhs_ty, | 31 | | (TyKind::Scalar(Scalar::Float(_)), TyKind::Scalar(Scalar::Float(_))) => rhs_ty, |
34 | // ({int}, int) | ({int}, uint) | 32 | // ({int}, int) | ({int}, uint) |
35 | (TyKind::InferenceVar(_, TyVariableKind::Integer), TyKind::Scalar(Scalar::Int(_))) | 33 | ( |
36 | | (TyKind::InferenceVar(_, TyVariableKind::Integer), TyKind::Scalar(Scalar::Uint(_))) => { | 34 | TyKind::InferenceVar(_, TyVariableKind::Integer), |
37 | rhs_ty | 35 | TyKind::Scalar(Scalar::Int(_) | Scalar::Uint(_)), |
38 | } | 36 | ) => rhs_ty, |
39 | // (int, {int}) | (uint, {int}) | 37 | // (int, {int}) | (uint, {int}) |
40 | (TyKind::Scalar(Scalar::Int(_)), TyKind::InferenceVar(_, TyVariableKind::Integer)) | 38 | ( |
41 | | (TyKind::Scalar(Scalar::Uint(_)), TyKind::InferenceVar(_, TyVariableKind::Integer)) => { | 39 | TyKind::Scalar(Scalar::Int(_) | Scalar::Uint(_)), |
42 | lhs_ty | 40 | TyKind::InferenceVar(_, TyVariableKind::Integer), |
43 | } | 41 | ) => lhs_ty, |
44 | // ({float} | float) | 42 | // ({float} | float) |
45 | (TyKind::InferenceVar(_, TyVariableKind::Float), TyKind::Scalar(Scalar::Float(_))) => { | 43 | (TyKind::InferenceVar(_, TyVariableKind::Float), TyKind::Scalar(Scalar::Float(_))) => { |
46 | rhs_ty | 44 | rhs_ty |
@@ -69,21 +67,15 @@ pub(super) fn binary_op_rhs_expectation(op: BinaryOp, lhs_ty: Ty) -> Ty { | |||
69 | BinaryOp::Assignment { op: None } => lhs_ty, | 67 | BinaryOp::Assignment { op: None } => lhs_ty, |
70 | BinaryOp::CmpOp(CmpOp::Eq { .. }) => match lhs_ty.kind(&Interner) { | 68 | BinaryOp::CmpOp(CmpOp::Eq { .. }) => match lhs_ty.kind(&Interner) { |
71 | TyKind::Scalar(_) | TyKind::Str => lhs_ty, | 69 | TyKind::Scalar(_) | TyKind::Str => lhs_ty, |
72 | TyKind::InferenceVar(_, TyVariableKind::Integer) | 70 | TyKind::InferenceVar(_, TyVariableKind::Integer | TyVariableKind::Float) => lhs_ty, |
73 | | TyKind::InferenceVar(_, TyVariableKind::Float) => lhs_ty, | ||
74 | _ => TyKind::Error.intern(&Interner), | 71 | _ => TyKind::Error.intern(&Interner), |
75 | }, | 72 | }, |
76 | BinaryOp::ArithOp(ArithOp::Shl) | BinaryOp::ArithOp(ArithOp::Shr) => { | 73 | BinaryOp::ArithOp(ArithOp::Shl | ArithOp::Shr) => TyKind::Error.intern(&Interner), |
77 | TyKind::Error.intern(&Interner) | ||
78 | } | ||
79 | BinaryOp::CmpOp(CmpOp::Ord { .. }) | 74 | BinaryOp::CmpOp(CmpOp::Ord { .. }) |
80 | | BinaryOp::Assignment { op: Some(_) } | 75 | | BinaryOp::Assignment { op: Some(_) } |
81 | | BinaryOp::ArithOp(_) => match lhs_ty.kind(&Interner) { | 76 | | BinaryOp::ArithOp(_) => match lhs_ty.kind(&Interner) { |
82 | TyKind::Scalar(Scalar::Int(_)) | 77 | TyKind::Scalar(Scalar::Int(_) | Scalar::Uint(_) | Scalar::Float(_)) => lhs_ty, |
83 | | TyKind::Scalar(Scalar::Uint(_)) | 78 | TyKind::InferenceVar(_, TyVariableKind::Integer | TyVariableKind::Float) => lhs_ty, |
84 | | TyKind::Scalar(Scalar::Float(_)) => lhs_ty, | ||
85 | TyKind::InferenceVar(_, TyVariableKind::Integer) | ||
86 | | TyKind::InferenceVar(_, TyVariableKind::Float) => lhs_ty, | ||
87 | _ => TyKind::Error.intern(&Interner), | 79 | _ => TyKind::Error.intern(&Interner), |
88 | }, | 80 | }, |
89 | } | 81 | } |
diff --git a/crates/ide/src/join_lines.rs b/crates/ide/src/join_lines.rs index 93d3760bf..ffa8bd182 100644 --- a/crates/ide/src/join_lines.rs +++ b/crates/ide/src/join_lines.rs | |||
@@ -197,7 +197,7 @@ fn join_single_use_tree(edit: &mut TextEditBuilder, token: &SyntaxToken) -> Opti | |||
197 | } | 197 | } |
198 | 198 | ||
199 | fn is_trailing_comma(left: SyntaxKind, right: SyntaxKind) -> bool { | 199 | fn is_trailing_comma(left: SyntaxKind, right: SyntaxKind) -> bool { |
200 | matches!((left, right), (T![,], T![')']) | (T![,], T![']'])) | 200 | matches!((left, right), (T![,], T![')'] | T![']'])) |
201 | } | 201 | } |
202 | 202 | ||
203 | fn compute_ws(left: SyntaxKind, right: SyntaxKind) -> &'static str { | 203 | fn compute_ws(left: SyntaxKind, right: SyntaxKind) -> &'static str { |
diff --git a/crates/ide/src/references.rs b/crates/ide/src/references.rs index 945c9b9e1..5808562a7 100644 --- a/crates/ide/src/references.rs +++ b/crates/ide/src/references.rs | |||
@@ -79,8 +79,7 @@ pub(crate) fn find_all_refs( | |||
79 | }); | 79 | }); |
80 | usages.references.retain(|_, it| !it.is_empty()); | 80 | usages.references.retain(|_, it| !it.is_empty()); |
81 | } | 81 | } |
82 | Definition::ModuleDef(hir::ModuleDef::Adt(_)) | 82 | Definition::ModuleDef(hir::ModuleDef::Adt(_) | hir::ModuleDef::Variant(_)) => { |
83 | | Definition::ModuleDef(hir::ModuleDef::Variant(_)) => { | ||
84 | refs.for_each(|it| { | 83 | refs.for_each(|it| { |
85 | it.retain(|reference| { | 84 | it.retain(|reference| { |
86 | reference.name.as_name_ref().map_or(false, is_lit_name_ref) | 85 | reference.name.as_name_ref().map_or(false, is_lit_name_ref) |
diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs index e186b82b7..d44a1b45f 100644 --- a/crates/ide/src/syntax_highlighting.rs +++ b/crates/ide/src/syntax_highlighting.rs | |||
@@ -294,7 +294,7 @@ fn traverse( | |||
294 | Some(parent) => { | 294 | Some(parent) => { |
295 | // We only care Name and Name_ref | 295 | // We only care Name and Name_ref |
296 | match (token.kind(), parent.kind()) { | 296 | match (token.kind(), parent.kind()) { |
297 | (IDENT, NAME) | (IDENT, NAME_REF) => parent.into(), | 297 | (IDENT, NAME | NAME_REF) => parent.into(), |
298 | _ => token.into(), | 298 | _ => token.into(), |
299 | } | 299 | } |
300 | } | 300 | } |
@@ -310,7 +310,7 @@ fn traverse( | |||
310 | Some(parent) => { | 310 | Some(parent) => { |
311 | // We only care Name and Name_ref | 311 | // We only care Name and Name_ref |
312 | match (token.kind(), parent.kind()) { | 312 | match (token.kind(), parent.kind()) { |
313 | (IDENT, NAME) | (IDENT, NAME_REF) => parent.into(), | 313 | (IDENT, NAME | NAME_REF) => parent.into(), |
314 | _ => token.into(), | 314 | _ => token.into(), |
315 | } | 315 | } |
316 | } | 316 | } |
diff --git a/crates/ide_assists/src/handlers/extract_function.rs b/crates/ide_assists/src/handlers/extract_function.rs index f2be091f4..7085a0c48 100644 --- a/crates/ide_assists/src/handlers/extract_function.rs +++ b/crates/ide_assists/src/handlers/extract_function.rs | |||
@@ -1384,7 +1384,7 @@ fn fix_param_usages(ctx: &AssistContext, params: &[Param], syntax: &SyntaxNode) | |||
1384 | for (param, usages) in usages_for_param { | 1384 | for (param, usages) in usages_for_param { |
1385 | for usage in usages { | 1385 | for usage in usages { |
1386 | match usage.syntax().ancestors().skip(1).find_map(ast::Expr::cast) { | 1386 | match usage.syntax().ancestors().skip(1).find_map(ast::Expr::cast) { |
1387 | Some(ast::Expr::MethodCallExpr(_)) | Some(ast::Expr::FieldExpr(_)) => { | 1387 | Some(ast::Expr::MethodCallExpr(_) | ast::Expr::FieldExpr(_)) => { |
1388 | // do nothing | 1388 | // do nothing |
1389 | } | 1389 | } |
1390 | Some(ast::Expr::RefExpr(node)) | 1390 | Some(ast::Expr::RefExpr(node)) |
diff --git a/crates/ide_assists/src/handlers/inline_local_variable.rs b/crates/ide_assists/src/handlers/inline_local_variable.rs index 2441dbb8b..945d28650 100644 --- a/crates/ide_assists/src/handlers/inline_local_variable.rs +++ b/crates/ide_assists/src/handlers/inline_local_variable.rs | |||
@@ -65,32 +65,35 @@ pub(crate) fn inline_local_variable(acc: &mut Assists, ctx: &AssistContext) -> O | |||
65 | Some(u) => u, | 65 | Some(u) => u, |
66 | None => return Some(false), | 66 | None => return Some(false), |
67 | }; | 67 | }; |
68 | 68 | Some( | |
69 | Some(!matches!( | 69 | !(matches!( |
70 | (&initializer_expr, usage_parent), | 70 | initializer_expr, |
71 | (ast::Expr::CallExpr(_), _) | 71 | ast::Expr::CallExpr(_) |
72 | | (ast::Expr::IndexExpr(_), _) | 72 | | ast::Expr::IndexExpr(_) |
73 | | (ast::Expr::MethodCallExpr(_), _) | 73 | | ast::Expr::MethodCallExpr(_) |
74 | | (ast::Expr::FieldExpr(_), _) | 74 | | ast::Expr::FieldExpr(_) |
75 | | (ast::Expr::TryExpr(_), _) | 75 | | ast::Expr::TryExpr(_) |
76 | | (ast::Expr::RefExpr(_), _) | 76 | | ast::Expr::RefExpr(_) |
77 | | (ast::Expr::Literal(_), _) | 77 | | ast::Expr::Literal(_) |
78 | | (ast::Expr::TupleExpr(_), _) | 78 | | ast::Expr::TupleExpr(_) |
79 | | (ast::Expr::ArrayExpr(_), _) | 79 | | ast::Expr::ArrayExpr(_) |
80 | | (ast::Expr::ParenExpr(_), _) | 80 | | ast::Expr::ParenExpr(_) |
81 | | (ast::Expr::PathExpr(_), _) | 81 | | ast::Expr::PathExpr(_) |
82 | | (ast::Expr::BlockExpr(_), _) | 82 | | ast::Expr::BlockExpr(_) |
83 | | (ast::Expr::EffectExpr(_), _) | 83 | | ast::Expr::EffectExpr(_), |
84 | | (_, ast::Expr::CallExpr(_)) | 84 | ) || matches!( |
85 | | (_, ast::Expr::TupleExpr(_)) | 85 | usage_parent, |
86 | | (_, ast::Expr::ArrayExpr(_)) | 86 | ast::Expr::CallExpr(_) |
87 | | (_, ast::Expr::ParenExpr(_)) | 87 | | ast::Expr::TupleExpr(_) |
88 | | (_, ast::Expr::ForExpr(_)) | 88 | | ast::Expr::ArrayExpr(_) |
89 | | (_, ast::Expr::WhileExpr(_)) | 89 | | ast::Expr::ParenExpr(_) |
90 | | (_, ast::Expr::BreakExpr(_)) | 90 | | ast::Expr::ForExpr(_) |
91 | | (_, ast::Expr::ReturnExpr(_)) | 91 | | ast::Expr::WhileExpr(_) |
92 | | (_, ast::Expr::MatchExpr(_)) | 92 | | ast::Expr::BreakExpr(_) |
93 | )) | 93 | | ast::Expr::ReturnExpr(_) |
94 | | ast::Expr::MatchExpr(_) | ||
95 | )), | ||
96 | ) | ||
94 | }) | 97 | }) |
95 | .collect::<Option<_>>() | 98 | .collect::<Option<_>>() |
96 | .map(|b| (file_id, b)) | 99 | .map(|b| (file_id, b)) |
diff --git a/crates/ide_assists/src/tests.rs b/crates/ide_assists/src/tests.rs index 60cecd94c..29bd4a563 100644 --- a/crates/ide_assists/src/tests.rs +++ b/crates/ide_assists/src/tests.rs | |||
@@ -179,9 +179,10 @@ fn check(handler: Handler, before: &str, expected: ExpectedResult, assist_label: | |||
179 | "unresolved assist should not contain source changes" | 179 | "unresolved assist should not contain source changes" |
180 | ), | 180 | ), |
181 | (Some(_), ExpectedResult::NotApplicable) => panic!("assist should not be applicable!"), | 181 | (Some(_), ExpectedResult::NotApplicable) => panic!("assist should not be applicable!"), |
182 | (None, ExpectedResult::After(_)) | 182 | ( |
183 | | (None, ExpectedResult::Target(_)) | 183 | None, |
184 | | (None, ExpectedResult::Unresolved) => { | 184 | ExpectedResult::After(_) | ExpectedResult::Target(_) | ExpectedResult::Unresolved, |
185 | ) => { | ||
185 | panic!("code action is not applicable") | 186 | panic!("code action is not applicable") |
186 | } | 187 | } |
187 | (None, ExpectedResult::NotApplicable) => (), | 188 | (None, ExpectedResult::NotApplicable) => (), |
diff --git a/crates/ide_completion/src/completions/qualified_path.rs b/crates/ide_completion/src/completions/qualified_path.rs index 88f4d940d..f5dbd203b 100644 --- a/crates/ide_completion/src/completions/qualified_path.rs +++ b/crates/ide_completion/src/completions/qualified_path.rs | |||
@@ -65,9 +65,11 @@ pub(crate) fn complete_qualified_path(acc: &mut Completions, ctx: &CompletionCon | |||
65 | // Don't suggest attribute macros and derives. | 65 | // Don't suggest attribute macros and derives. |
66 | hir::ScopeDef::MacroDef(mac) => mac.is_fn_like(), | 66 | hir::ScopeDef::MacroDef(mac) => mac.is_fn_like(), |
67 | // no values in type places | 67 | // no values in type places |
68 | hir::ScopeDef::ModuleDef(hir::ModuleDef::Function(_)) | 68 | hir::ScopeDef::ModuleDef( |
69 | | hir::ScopeDef::ModuleDef(hir::ModuleDef::Variant(_)) | 69 | hir::ModuleDef::Function(_) |
70 | | hir::ScopeDef::ModuleDef(hir::ModuleDef::Static(_)) | 70 | | hir::ModuleDef::Variant(_) |
71 | | hir::ModuleDef::Static(_), | ||
72 | ) | ||
71 | | hir::ScopeDef::Local(_) => !ctx.expects_type(), | 73 | | hir::ScopeDef::Local(_) => !ctx.expects_type(), |
72 | // unless its a constant in a generic arg list position | 74 | // unless its a constant in a generic arg list position |
73 | hir::ScopeDef::ModuleDef(hir::ModuleDef::Const(_)) => { | 75 | hir::ScopeDef::ModuleDef(hir::ModuleDef::Const(_)) => { |
@@ -81,9 +83,13 @@ pub(crate) fn complete_qualified_path(acc: &mut Completions, ctx: &CompletionCon | |||
81 | } | 83 | } |
82 | } | 84 | } |
83 | } | 85 | } |
84 | hir::PathResolution::Def(def @ hir::ModuleDef::Adt(_)) | 86 | hir::PathResolution::Def( |
85 | | hir::PathResolution::Def(def @ hir::ModuleDef::TypeAlias(_)) | 87 | def |
86 | | hir::PathResolution::Def(def @ hir::ModuleDef::BuiltinType(_)) => { | 88 | @ |
89 | (hir::ModuleDef::Adt(_) | ||
90 | | hir::ModuleDef::TypeAlias(_) | ||
91 | | hir::ModuleDef::BuiltinType(_)), | ||
92 | ) => { | ||
87 | if let hir::ModuleDef::Adt(hir::Adt::Enum(e)) = def { | 93 | if let hir::ModuleDef::Adt(hir::Adt::Enum(e)) = def { |
88 | add_enum_variants(acc, ctx, e); | 94 | add_enum_variants(acc, ctx, e); |
89 | } | 95 | } |
diff --git a/crates/ide_completion/src/completions/unqualified_path.rs b/crates/ide_completion/src/completions/unqualified_path.rs index 8ea5a2d5b..81c4fb305 100644 --- a/crates/ide_completion/src/completions/unqualified_path.rs +++ b/crates/ide_completion/src/completions/unqualified_path.rs | |||
@@ -74,9 +74,11 @@ pub(crate) fn complete_unqualified_path(acc: &mut Completions, ctx: &CompletionC | |||
74 | // Don't suggest attribute macros and derives. | 74 | // Don't suggest attribute macros and derives. |
75 | ScopeDef::MacroDef(mac) => mac.is_fn_like(), | 75 | ScopeDef::MacroDef(mac) => mac.is_fn_like(), |
76 | // no values in type places | 76 | // no values in type places |
77 | ScopeDef::ModuleDef(hir::ModuleDef::Function(_)) | 77 | ScopeDef::ModuleDef( |
78 | | ScopeDef::ModuleDef(hir::ModuleDef::Variant(_)) | 78 | hir::ModuleDef::Function(_) |
79 | | ScopeDef::ModuleDef(hir::ModuleDef::Static(_)) | 79 | | hir::ModuleDef::Variant(_) |
80 | | hir::ModuleDef::Static(_), | ||
81 | ) | ||
80 | | ScopeDef::Local(_) => !ctx.expects_type(), | 82 | | ScopeDef::Local(_) => !ctx.expects_type(), |
81 | // unless its a constant in a generic arg list position | 83 | // unless its a constant in a generic arg list position |
82 | ScopeDef::ModuleDef(hir::ModuleDef::Const(_)) | 84 | ScopeDef::ModuleDef(hir::ModuleDef::Const(_)) |
diff --git a/crates/ide_completion/src/context.rs b/crates/ide_completion/src/context.rs index d7a7e9cca..98fb36042 100644 --- a/crates/ide_completion/src/context.rs +++ b/crates/ide_completion/src/context.rs | |||
@@ -242,24 +242,23 @@ impl<'a> CompletionContext<'a> { | |||
242 | } | 242 | } |
243 | 243 | ||
244 | pub(crate) fn expects_assoc_item(&self) -> bool { | 244 | pub(crate) fn expects_assoc_item(&self) -> bool { |
245 | matches!( | 245 | matches!(self.completion_location, Some(ImmediateLocation::Trait | ImmediateLocation::Impl)) |
246 | self.completion_location, | ||
247 | Some(ImmediateLocation::Trait) | Some(ImmediateLocation::Impl) | ||
248 | ) | ||
249 | } | 246 | } |
250 | 247 | ||
251 | pub(crate) fn has_dot_receiver(&self) -> bool { | 248 | pub(crate) fn has_dot_receiver(&self) -> bool { |
252 | matches!( | 249 | matches!( |
253 | &self.completion_location, | 250 | &self.completion_location, |
254 | Some(ImmediateLocation::FieldAccess { receiver, .. }) | Some(ImmediateLocation::MethodCall { receiver,.. }) | 251 | Some(ImmediateLocation::FieldAccess { receiver, .. } | ImmediateLocation::MethodCall { receiver,.. }) |
255 | if receiver.is_some() | 252 | if receiver.is_some() |
256 | ) | 253 | ) |
257 | } | 254 | } |
258 | 255 | ||
259 | pub(crate) fn dot_receiver(&self) -> Option<&ast::Expr> { | 256 | pub(crate) fn dot_receiver(&self) -> Option<&ast::Expr> { |
260 | match &self.completion_location { | 257 | match &self.completion_location { |
261 | Some(ImmediateLocation::MethodCall { receiver, .. }) | 258 | Some( |
262 | | Some(ImmediateLocation::FieldAccess { receiver, .. }) => receiver.as_ref(), | 259 | ImmediateLocation::MethodCall { receiver, .. } |
260 | | ImmediateLocation::FieldAccess { receiver, .. }, | ||
261 | ) => receiver.as_ref(), | ||
263 | _ => None, | 262 | _ => None, |
264 | } | 263 | } |
265 | } | 264 | } |
@@ -283,7 +282,7 @@ impl<'a> CompletionContext<'a> { | |||
283 | pub(crate) fn expects_ident_pat_or_ref_expr(&self) -> bool { | 282 | pub(crate) fn expects_ident_pat_or_ref_expr(&self) -> bool { |
284 | matches!( | 283 | matches!( |
285 | self.completion_location, | 284 | self.completion_location, |
286 | Some(ImmediateLocation::IdentPat) | Some(ImmediateLocation::RefExpr) | 285 | Some(ImmediateLocation::IdentPat | ImmediateLocation::RefExpr) |
287 | ) | 286 | ) |
288 | } | 287 | } |
289 | 288 | ||
@@ -294,14 +293,14 @@ impl<'a> CompletionContext<'a> { | |||
294 | pub(crate) fn in_use_tree(&self) -> bool { | 293 | pub(crate) fn in_use_tree(&self) -> bool { |
295 | matches!( | 294 | matches!( |
296 | self.completion_location, | 295 | self.completion_location, |
297 | Some(ImmediateLocation::Use) | Some(ImmediateLocation::UseTree) | 296 | Some(ImmediateLocation::Use | ImmediateLocation::UseTree) |
298 | ) | 297 | ) |
299 | } | 298 | } |
300 | 299 | ||
301 | pub(crate) fn has_impl_or_trait_prev_sibling(&self) -> bool { | 300 | pub(crate) fn has_impl_or_trait_prev_sibling(&self) -> bool { |
302 | matches!( | 301 | matches!( |
303 | self.prev_sibling, | 302 | self.prev_sibling, |
304 | Some(ImmediatePrevSibling::ImplDefType) | Some(ImmediatePrevSibling::TraitDefName) | 303 | Some(ImmediatePrevSibling::ImplDefType | ImmediatePrevSibling::TraitDefName) |
305 | ) | 304 | ) |
306 | } | 305 | } |
307 | 306 | ||
@@ -322,14 +321,16 @@ impl<'a> CompletionContext<'a> { | |||
322 | || self.previous_token_is(T![unsafe]) | 321 | || self.previous_token_is(T![unsafe]) |
323 | || matches!( | 322 | || matches!( |
324 | self.prev_sibling, | 323 | self.prev_sibling, |
325 | Some(ImmediatePrevSibling::Attribute) | Some(ImmediatePrevSibling::Visibility) | 324 | Some(ImmediatePrevSibling::Attribute | ImmediatePrevSibling::Visibility) |
326 | ) | 325 | ) |
327 | || matches!( | 326 | || matches!( |
328 | self.completion_location, | 327 | self.completion_location, |
329 | Some(ImmediateLocation::Attribute(_)) | 328 | Some( |
330 | | Some(ImmediateLocation::ModDeclaration(_)) | 329 | ImmediateLocation::Attribute(_) |
331 | | Some(ImmediateLocation::RecordPat(_)) | 330 | | ImmediateLocation::ModDeclaration(_) |
332 | | Some(ImmediateLocation::RecordExpr(_)) | 331 | | ImmediateLocation::RecordPat(_) |
332 | | ImmediateLocation::RecordExpr(_) | ||
333 | ) | ||
333 | ) | 334 | ) |
334 | } | 335 | } |
335 | 336 | ||
diff --git a/crates/ide_completion/src/render/builder_ext.rs b/crates/ide_completion/src/render/builder_ext.rs index 749dfc665..33d3a5ee1 100644 --- a/crates/ide_completion/src/render/builder_ext.rs +++ b/crates/ide_completion/src/render/builder_ext.rs | |||
@@ -32,7 +32,7 @@ impl Builder { | |||
32 | cov_mark::hit!(no_parens_in_use_item); | 32 | cov_mark::hit!(no_parens_in_use_item); |
33 | return false; | 33 | return false; |
34 | } | 34 | } |
35 | if matches!(ctx.path_call_kind(), Some(CallKind::Expr) | Some(CallKind::Pat)) | 35 | if matches!(ctx.path_call_kind(), Some(CallKind::Expr | CallKind::Pat)) |
36 | | matches!( | 36 | | matches!( |
37 | ctx.completion_location, | 37 | ctx.completion_location, |
38 | Some(ImmediateLocation::MethodCall { has_parens: true, .. }) | 38 | Some(ImmediateLocation::MethodCall { has_parens: true, .. }) |
diff --git a/crates/mbe/src/expander/matcher.rs b/crates/mbe/src/expander/matcher.rs index c2a9a38c9..b4f2fe9a4 100644 --- a/crates/mbe/src/expander/matcher.rs +++ b/crates/mbe/src/expander/matcher.rs | |||
@@ -804,33 +804,17 @@ impl<'a> TtIter<'a> { | |||
804 | }; | 804 | }; |
805 | 805 | ||
806 | match (punct.char, second, third) { | 806 | match (punct.char, second, third) { |
807 | ('.', '.', Some('.')) | 807 | ('.', '.', Some('.' | '=')) | ('<', '<', Some('=')) | ('>', '>', Some('=')) => { |
808 | | ('.', '.', Some('=')) | ||
809 | | ('<', '<', Some('=')) | ||
810 | | ('>', '>', Some('=')) => { | ||
811 | let tt2 = self.next().unwrap().clone(); | 808 | let tt2 = self.next().unwrap().clone(); |
812 | let tt3 = self.next().unwrap().clone(); | 809 | let tt3 = self.next().unwrap().clone(); |
813 | Ok(tt::Subtree { delimiter: None, token_trees: vec![tt, tt2, tt3] }.into()) | 810 | Ok(tt::Subtree { delimiter: None, token_trees: vec![tt, tt2, tt3] }.into()) |
814 | } | 811 | } |
815 | ('-', '=', _) | 812 | ('-' | '!' | '*' | '/' | '&' | '%' | '^' | '+' | '<' | '=' | '>' | '|', '=', _) |
816 | | ('-', '>', _) | 813 | | ('-' | '=' | '>', '>', _) |
817 | | (':', ':', _) | 814 | | (':', ':', _) |
818 | | ('!', '=', _) | ||
819 | | ('.', '.', _) | 815 | | ('.', '.', _) |
820 | | ('*', '=', _) | ||
821 | | ('/', '=', _) | ||
822 | | ('&', '&', _) | 816 | | ('&', '&', _) |
823 | | ('&', '=', _) | ||
824 | | ('%', '=', _) | ||
825 | | ('^', '=', _) | ||
826 | | ('+', '=', _) | ||
827 | | ('<', '<', _) | 817 | | ('<', '<', _) |
828 | | ('<', '=', _) | ||
829 | | ('=', '=', _) | ||
830 | | ('=', '>', _) | ||
831 | | ('>', '=', _) | ||
832 | | ('>', '>', _) | ||
833 | | ('|', '=', _) | ||
834 | | ('|', '|', _) => { | 818 | | ('|', '|', _) => { |
835 | let tt2 = self.next().unwrap().clone(); | 819 | let tt2 = self.next().unwrap().clone(); |
836 | Ok(tt::Subtree { delimiter: None, token_trees: vec![tt, tt2] }.into()) | 820 | Ok(tt::Subtree { delimiter: None, token_trees: vec![tt, tt2] }.into()) |
diff --git a/crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt b/crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt index d5ab03576..a7f936a70 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt | |||
@@ -54,7 +54,7 @@ | |||
54 | source: Some( | 54 | source: Some( |
55 | "rustc", | 55 | "rustc", |
56 | ), | 56 | ), |
57 | message: "can\'t compare `{integer}` with `&str`\nthe trait `std::cmp::PartialEq<&str>` is not implemented for `{integer}`", | 57 | message: "can't compare `{integer}` with `&str`\nthe trait `std::cmp::PartialEq<&str>` is not implemented for `{integer}`", |
58 | related_information: None, | 58 | related_information: None, |
59 | tags: None, | 59 | tags: None, |
60 | data: None, | 60 | data: None, |
diff --git a/crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt b/crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt index ada540ea6..afc562a0e 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt | |||
@@ -54,7 +54,7 @@ | |||
54 | source: Some( | 54 | source: Some( |
55 | "rustc", | 55 | "rustc", |
56 | ), | 56 | ), |
57 | message: "method `next` has an incompatible type for trait\nexpected type `fn(&mut ty::list_iter::ListIterator<\'list, M>) -> std::option::Option<&ty::Ref<M>>`\n found type `fn(&ty::list_iter::ListIterator<\'list, M>) -> std::option::Option<&\'list ty::Ref<M>>`", | 57 | message: "method `next` has an incompatible type for trait\nexpected type `fn(&mut ty::list_iter::ListIterator<'list, M>) -> std::option::Option<&ty::Ref<M>>`\n found type `fn(&ty::list_iter::ListIterator<'list, M>) -> std::option::Option<&'list ty::Ref<M>>`", |
58 | related_information: None, | 58 | related_information: None, |
59 | tags: None, | 59 | tags: None, |
60 | data: None, | 60 | data: None, |
diff --git a/crates/syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt b/crates/syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt index 4d5ad74df..135f49552 100644 --- a/crates/syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt +++ b/crates/syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 1 "\'" | 1 | CHAR 1 "'" |
2 | > error0..1 token("\'") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..1 token("'") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt b/crates/syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt index eafdb3c7c..cc3933d95 100644 --- a/crates/syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt +++ b/crates/syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 5 "\'🦀" | 1 | CHAR 5 "'🦀" |
2 | > error0..5 token("\'🦀") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..5 token("'🦀") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt b/crates/syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt index cc2b4866a..21d990e6f 100644 --- a/crates/syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt +++ b/crates/syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 5 "\'\\x7f" | 1 | CHAR 5 "'\\x7f" |
2 | > error0..5 token("\'\\x7f") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..5 token("'\\x7f") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt b/crates/syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt index a6d422cb3..055dba64c 100644 --- a/crates/syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt +++ b/crates/syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 9 "\'\\u{20AA}" | 1 | CHAR 9 "'\\u{20AA}" |
2 | > error0..9 token("\'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..9 token("'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt b/crates/syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt index 47e7baa70..9ee5e93fa 100644 --- a/crates/syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt +++ b/crates/syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 2 "\' " | 1 | CHAR 2 "' " |
2 | > error0..2 token("\' ") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..2 token("' ") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt b/crates/syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt index 511029d80..dc3a596f6 100644 --- a/crates/syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt +++ b/crates/syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 2 "\'\\" | 1 | CHAR 2 "'\\" |
2 | > error0..2 token("\'\\") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..2 token("'\\") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt b/crates/syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt index d2ba5742c..e46edea98 100644 --- a/crates/syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt +++ b/crates/syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 3 "\'\\n" | 1 | CHAR 3 "'\\n" |
2 | > error0..3 token("\'\\n") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..3 token("'\\n") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt b/crates/syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt index ae9a7f0e2..8ad1e913a 100644 --- a/crates/syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt +++ b/crates/syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 3 "\'\\\'" | 1 | CHAR 3 "'\\'" |
2 | > error0..3 token("\'\\\'") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..3 token("'\\'") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt b/crates/syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt index ff1504592..9d30c7466 100644 --- a/crates/syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt +++ b/crates/syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 2 "b\'" | 1 | BYTE 2 "b'" |
2 | > error0..2 token("b\'") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..2 token("b'") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt b/crates/syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt index 34f7bd6d4..9dbf4203e 100644 --- a/crates/syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt +++ b/crates/syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 6 "b\'🦀" | 1 | BYTE 6 "b'🦀" |
2 | > error0..6 token("b\'🦀") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..6 token("b'🦀") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt b/crates/syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt index c964d0f00..d5d9c2ef7 100644 --- a/crates/syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt +++ b/crates/syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 6 "b\'\\x7f" | 1 | BYTE 6 "b'\\x7f" |
2 | > error0..6 token("b\'\\x7f") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..6 token("b'\\x7f") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt b/crates/syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt index cc65fb86f..a99b9666a 100644 --- a/crates/syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt +++ b/crates/syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 10 "b\'\\u{20AA}" | 1 | BYTE 10 "b'\\u{20AA}" |
2 | > error0..10 token("b\'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..10 token("b'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt b/crates/syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt index 800834a14..8a344f712 100644 --- a/crates/syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt +++ b/crates/syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 3 "b\' " | 1 | BYTE 3 "b' " |
2 | > error0..3 token("b\' ") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..3 token("b' ") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt b/crates/syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt index 7b85ee646..b78a43c02 100644 --- a/crates/syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt +++ b/crates/syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 3 "b\'\\" | 1 | BYTE 3 "b'\\" |
2 | > error0..3 token("b\'\\") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..3 token("b'\\") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt b/crates/syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt index 4b9a63117..5147363ba 100644 --- a/crates/syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt +++ b/crates/syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 4 "b\'\\n" | 1 | BYTE 4 "b'\\n" |
2 | > error0..4 token("b\'\\n") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..4 token("b'\\n") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt b/crates/syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt index fe337f8d3..261c0894f 100644 --- a/crates/syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt +++ b/crates/syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 4 "b\'\\\'" | 1 | BYTE 4 "b'\\'" |
2 | > error0..4 token("b\'\\\'") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..4 token("b'\\'") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt b/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt index 11e0ae14a..b746404d2 100644 --- a/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt +++ b/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt | |||
@@ -1,6 +1,6 @@ | |||
1 | LIFETIME_IDENT 2 "\'1" | 1 | LIFETIME_IDENT 2 "'1" |
2 | WHITESPACE 1 "\n" | 2 | WHITESPACE 1 "\n" |
3 | LIFETIME_IDENT 10 "\'1lifetime" | 3 | LIFETIME_IDENT 10 "'1lifetime" |
4 | WHITESPACE 1 "\n" | 4 | WHITESPACE 1 "\n" |
5 | > error0..2 token("\'1") msg(Lifetime name cannot start with a number) | 5 | > error0..2 token("'1") msg(Lifetime name cannot start with a number) |
6 | > error3..13 token("\'1lifetime") msg(Lifetime name cannot start with a number) | 6 | > error3..13 token("'1lifetime") msg(Lifetime name cannot start with a number) |
diff --git a/crates/syntax/test_data/lexer/ok/0006_chars.txt b/crates/syntax/test_data/lexer/ok/0006_chars.txt index 950954fbc..756477dc9 100644 --- a/crates/syntax/test_data/lexer/ok/0006_chars.txt +++ b/crates/syntax/test_data/lexer/ok/0006_chars.txt | |||
@@ -1,16 +1,16 @@ | |||
1 | CHAR 3 "\'x\'" | 1 | CHAR 3 "'x'" |
2 | WHITESPACE 1 " " | 2 | WHITESPACE 1 " " |
3 | CHAR 3 "\' \'" | 3 | CHAR 3 "' '" |
4 | WHITESPACE 1 " " | 4 | WHITESPACE 1 " " |
5 | CHAR 3 "\'0\'" | 5 | CHAR 3 "'0'" |
6 | WHITESPACE 1 " " | 6 | WHITESPACE 1 " " |
7 | CHAR 7 "\'hello\'" | 7 | CHAR 7 "'hello'" |
8 | WHITESPACE 1 " " | 8 | WHITESPACE 1 " " |
9 | CHAR 6 "\'\\x7f\'" | 9 | CHAR 6 "'\\x7f'" |
10 | WHITESPACE 1 " " | 10 | WHITESPACE 1 " " |
11 | CHAR 4 "\'\\n\'" | 11 | CHAR 4 "'\\n'" |
12 | WHITESPACE 1 " " | 12 | WHITESPACE 1 " " |
13 | CHAR 4 "\'\\\\\'" | 13 | CHAR 4 "'\\\\'" |
14 | WHITESPACE 1 " " | 14 | WHITESPACE 1 " " |
15 | CHAR 4 "\'\\\'\'" | 15 | CHAR 4 "'\\''" |
16 | WHITESPACE 1 "\n" | 16 | WHITESPACE 1 "\n" |
diff --git a/crates/syntax/test_data/lexer/ok/0007_lifetimes.txt b/crates/syntax/test_data/lexer/ok/0007_lifetimes.txt index 4d6625c3a..32ed9ed50 100644 --- a/crates/syntax/test_data/lexer/ok/0007_lifetimes.txt +++ b/crates/syntax/test_data/lexer/ok/0007_lifetimes.txt | |||
@@ -1,8 +1,8 @@ | |||
1 | LIFETIME_IDENT 2 "\'a" | 1 | LIFETIME_IDENT 2 "'a" |
2 | WHITESPACE 1 " " | 2 | WHITESPACE 1 " " |
3 | LIFETIME_IDENT 4 "\'foo" | 3 | LIFETIME_IDENT 4 "'foo" |
4 | WHITESPACE 1 " " | 4 | WHITESPACE 1 " " |
5 | LIFETIME_IDENT 12 "\'foo_bar_baz" | 5 | LIFETIME_IDENT 12 "'foo_bar_baz" |
6 | WHITESPACE 1 " " | 6 | WHITESPACE 1 " " |
7 | LIFETIME_IDENT 2 "\'_" | 7 | LIFETIME_IDENT 2 "'_" |
8 | WHITESPACE 1 "\n" | 8 | WHITESPACE 1 "\n" |
diff --git a/crates/syntax/test_data/lexer/ok/0008_byte_strings.txt b/crates/syntax/test_data/lexer/ok/0008_byte_strings.txt index e61ad99be..06d6bdd1f 100644 --- a/crates/syntax/test_data/lexer/ok/0008_byte_strings.txt +++ b/crates/syntax/test_data/lexer/ok/0008_byte_strings.txt | |||
@@ -1,22 +1,22 @@ | |||
1 | BYTE 3 "b\'\'" | 1 | BYTE 3 "b''" |
2 | WHITESPACE 1 " " | 2 | WHITESPACE 1 " " |
3 | BYTE 4 "b\'x\'" | 3 | BYTE 4 "b'x'" |
4 | WHITESPACE 1 " " | 4 | WHITESPACE 1 " " |
5 | BYTE_STRING 6 "b\"foo\"" | 5 | BYTE_STRING 6 "b\"foo\"" |
6 | WHITESPACE 1 " " | 6 | WHITESPACE 1 " " |
7 | BYTE_STRING 4 "br\"\"" | 7 | BYTE_STRING 4 "br\"\"" |
8 | WHITESPACE 1 "\n" | 8 | WHITESPACE 1 "\n" |
9 | BYTE 6 "b\'\'suf" | 9 | BYTE 6 "b''suf" |
10 | WHITESPACE 1 " " | 10 | WHITESPACE 1 " " |
11 | BYTE_STRING 5 "b\"\"ix" | 11 | BYTE_STRING 5 "b\"\"ix" |
12 | WHITESPACE 1 " " | 12 | WHITESPACE 1 " " |
13 | BYTE_STRING 6 "br\"\"br" | 13 | BYTE_STRING 6 "br\"\"br" |
14 | WHITESPACE 1 "\n" | 14 | WHITESPACE 1 "\n" |
15 | BYTE 5 "b\'\\n\'" | 15 | BYTE 5 "b'\\n'" |
16 | WHITESPACE 1 " " | 16 | WHITESPACE 1 " " |
17 | BYTE 5 "b\'\\\\\'" | 17 | BYTE 5 "b'\\\\'" |
18 | WHITESPACE 1 " " | 18 | WHITESPACE 1 " " |
19 | BYTE 5 "b\'\\\'\'" | 19 | BYTE 5 "b'\\''" |
20 | WHITESPACE 1 " " | 20 | WHITESPACE 1 " " |
21 | BYTE 8 "b\'hello\'" | 21 | BYTE 8 "b'hello'" |
22 | WHITESPACE 1 "\n" | 22 | WHITESPACE 1 "\n" |
diff --git a/crates/syntax/test_data/parser/err/0024_many_type_parens.rast b/crates/syntax/test_data/parser/err/0024_many_type_parens.rast index 4c4ddf5ec..be4a62940 100644 --- a/crates/syntax/test_data/parser/err/0024_many_type_parens.rast +++ b/crates/syntax/test_data/parser/err/0024_many_type_parens.rast | |||
@@ -43,7 +43,7 @@ [email protected] | |||
43 | [email protected] "<" | 43 | [email protected] "<" |
44 | [email protected] | 44 | [email protected] |
45 | [email protected] | 45 | [email protected] |
46 | [email protected] "\'a" | 46 | [email protected] "'a" |
47 | [email protected] ">" | 47 | [email protected] ">" |
48 | [email protected] " " | 48 | [email protected] " " |
49 | [email protected] | 49 | [email protected] |
@@ -55,7 +55,7 @@ [email protected] | |||
55 | [email protected] "<" | 55 | [email protected] "<" |
56 | [email protected] | 56 | [email protected] |
57 | [email protected] | 57 | [email protected] |
58 | [email protected] "\'a" | 58 | [email protected] "'a" |
59 | [email protected] ">" | 59 | [email protected] ">" |
60 | [email protected] ")" | 60 | [email protected] ")" |
61 | [email protected] ">" | 61 | [email protected] ">" |
@@ -128,7 +128,7 @@ [email protected] | |||
128 | [email protected] "<" | 128 | [email protected] "<" |
129 | [email protected] | 129 | [email protected] |
130 | [email protected] | 130 | [email protected] |
131 | [email protected] "\'a" | 131 | [email protected] "'a" |
132 | [email protected] ">" | 132 | [email protected] ">" |
133 | [email protected] " " | 133 | [email protected] " " |
134 | [email protected] | 134 | [email protected] |
@@ -140,7 +140,7 @@ [email protected] | |||
140 | [email protected] "<" | 140 | [email protected] "<" |
141 | [email protected] | 141 | [email protected] |
142 | [email protected] | 142 | [email protected] |
143 | [email protected] "\'a" | 143 | [email protected] "'a" |
144 | [email protected] ">" | 144 | [email protected] ">" |
145 | [email protected] ")" | 145 | [email protected] ")" |
146 | [email protected] | 146 | [email protected] |
@@ -191,7 +191,7 @@ [email protected] | |||
191 | [email protected] | 191 | [email protected] |
192 | [email protected] "<" | 192 | [email protected] "<" |
193 | [email protected] | 193 | [email protected] |
194 | [email protected] "\'a" | 194 | [email protected] "'a" |
195 | [email protected] ">" | 195 | [email protected] ">" |
196 | [email protected] " " | 196 | [email protected] " " |
197 | [email protected] | 197 | [email protected] |
@@ -205,7 +205,7 @@ [email protected] | |||
205 | [email protected] "Trait" | 205 | [email protected] "Trait" |
206 | [email protected] "<" | 206 | [email protected] "<" |
207 | [email protected] | 207 | [email protected] |
208 | [email protected] "\'a" | 208 | [email protected] "'a" |
209 | [email protected] ">" | 209 | [email protected] ">" |
210 | [email protected] | 210 | [email protected] |
211 | [email protected] ")" | 211 | [email protected] ")" |
@@ -250,7 +250,7 @@ [email protected] | |||
250 | [email protected] "<" | 250 | [email protected] "<" |
251 | [email protected] | 251 | [email protected] |
252 | [email protected] | 252 | [email protected] |
253 | [email protected] "\'a" | 253 | [email protected] "'a" |
254 | [email protected] ">" | 254 | [email protected] ">" |
255 | [email protected] " " | 255 | [email protected] " " |
256 | [email protected] | 256 | [email protected] |
@@ -262,7 +262,7 @@ [email protected] | |||
262 | [email protected] "<" | 262 | [email protected] "<" |
263 | [email protected] | 263 | [email protected] |
264 | [email protected] | 264 | [email protected] |
265 | [email protected] "\'a" | 265 | [email protected] "'a" |
266 | [email protected] ">" | 266 | [email protected] ">" |
267 | [email protected] ")" | 267 | [email protected] ")" |
268 | [email protected] " " | 268 | [email protected] " " |
diff --git a/crates/syntax/test_data/parser/err/0027_incomplere_where_for.rast b/crates/syntax/test_data/parser/err/0027_incomplere_where_for.rast index c5215d6b1..b021783fc 100644 --- a/crates/syntax/test_data/parser/err/0027_incomplere_where_for.rast +++ b/crates/syntax/test_data/parser/err/0027_incomplere_where_for.rast | |||
@@ -17,7 +17,7 @@ [email protected] | |||
17 | [email protected] "<" | 17 | [email protected] "<" |
18 | [email protected] | 18 | [email protected] |
19 | [email protected] | 19 | [email protected] |
20 | [email protected] "\'a" | 20 | [email protected] "'a" |
21 | [email protected] ">" | 21 | [email protected] ">" |
22 | [email protected] "\n" | 22 | [email protected] "\n" |
23 | [email protected] | 23 | [email protected] |
diff --git a/crates/syntax/test_data/parser/err/0043_weird_blocks.rast b/crates/syntax/test_data/parser/err/0043_weird_blocks.rast index e73bd1aea..e24f01e29 100644 --- a/crates/syntax/test_data/parser/err/0043_weird_blocks.rast +++ b/crates/syntax/test_data/parser/err/0043_weird_blocks.rast | |||
@@ -55,7 +55,7 @@ [email protected] | |||
55 | [email protected] | 55 | [email protected] |
56 | [email protected] | 56 | [email protected] |
57 | [email protected] | 57 | [email protected] |
58 | [email protected] "\'label" | 58 | [email protected] "'label" |
59 | [email protected] ":" | 59 | [email protected] ":" |
60 | [email protected] " " | 60 | [email protected] " " |
61 | [email protected] | 61 | [email protected] |
diff --git a/crates/syntax/test_data/parser/err/0044_unexpected_for_type.rast b/crates/syntax/test_data/parser/err/0044_unexpected_for_type.rast index cc54185e5..a2460a7ec 100644 --- a/crates/syntax/test_data/parser/err/0044_unexpected_for_type.rast +++ b/crates/syntax/test_data/parser/err/0044_unexpected_for_type.rast | |||
@@ -13,13 +13,13 @@ [email protected] | |||
13 | [email protected] "<" | 13 | [email protected] "<" |
14 | [email protected] | 14 | [email protected] |
15 | [email protected] | 15 | [email protected] |
16 | [email protected] "\'a" | 16 | [email protected] "'a" |
17 | [email protected] ">" | 17 | [email protected] ">" |
18 | [email protected] " " | 18 | [email protected] " " |
19 | [email protected] | 19 | [email protected] |
20 | [email protected] "&" | 20 | [email protected] "&" |
21 | [email protected] | 21 | [email protected] |
22 | [email protected] "\'a" | 22 | [email protected] "'a" |
23 | [email protected] " " | 23 | [email protected] " " |
24 | [email protected] | 24 | [email protected] |
25 | [email protected] | 25 | [email protected] |
@@ -42,7 +42,7 @@ [email protected] | |||
42 | [email protected] "<" | 42 | [email protected] "<" |
43 | [email protected] | 43 | [email protected] |
44 | [email protected] | 44 | [email protected] |
45 | [email protected] "\'a" | 45 | [email protected] "'a" |
46 | [email protected] ">" | 46 | [email protected] ">" |
47 | [email protected] " " | 47 | [email protected] " " |
48 | [email protected] | 48 | [email protected] |
@@ -50,7 +50,7 @@ [email protected] | |||
50 | [email protected] | 50 | [email protected] |
51 | [email protected] "&" | 51 | [email protected] "&" |
52 | [email protected] | 52 | [email protected] |
53 | [email protected] "\'a" | 53 | [email protected] "'a" |
54 | [email protected] " " | 54 | [email protected] " " |
55 | [email protected] | 55 | [email protected] |
56 | [email protected] | 56 | [email protected] |
@@ -75,7 +75,7 @@ [email protected] | |||
75 | [email protected] "<" | 75 | [email protected] "<" |
76 | [email protected] | 76 | [email protected] |
77 | [email protected] | 77 | [email protected] |
78 | [email protected] "\'a" | 78 | [email protected] "'a" |
79 | [email protected] ">" | 79 | [email protected] ">" |
80 | [email protected] " " | 80 | [email protected] " " |
81 | [email protected] | 81 | [email protected] |
@@ -102,7 +102,7 @@ [email protected] | |||
102 | [email protected] "<" | 102 | [email protected] "<" |
103 | [email protected] | 103 | [email protected] |
104 | [email protected] | 104 | [email protected] |
105 | [email protected] "\'a" | 105 | [email protected] "'a" |
106 | [email protected] ">" | 106 | [email protected] ">" |
107 | [email protected] " " | 107 | [email protected] " " |
108 | [email protected] | 108 | [email protected] |
@@ -111,7 +111,7 @@ [email protected] | |||
111 | [email protected] "<" | 111 | [email protected] "<" |
112 | [email protected] | 112 | [email protected] |
113 | [email protected] | 113 | [email protected] |
114 | [email protected] "\'b" | 114 | [email protected] "'b" |
115 | [email protected] ">" | 115 | [email protected] ">" |
116 | [email protected] " " | 116 | [email protected] " " |
117 | [email protected] | 117 | [email protected] |
@@ -122,7 +122,7 @@ [email protected] | |||
122 | [email protected] | 122 | [email protected] |
123 | [email protected] "&" | 123 | [email protected] "&" |
124 | [email protected] | 124 | [email protected] |
125 | [email protected] "\'a" | 125 | [email protected] "'a" |
126 | [email protected] " " | 126 | [email protected] " " |
127 | [email protected] | 127 | [email protected] |
128 | [email protected] | 128 | [email protected] |
@@ -135,7 +135,7 @@ [email protected] | |||
135 | [email protected] | 135 | [email protected] |
136 | [email protected] "&" | 136 | [email protected] "&" |
137 | [email protected] | 137 | [email protected] |
138 | [email protected] "\'b" | 138 | [email protected] "'b" |
139 | [email protected] " " | 139 | [email protected] " " |
140 | [email protected] | 140 | [email protected] |
141 | [email protected] | 141 | [email protected] |
@@ -169,7 +169,7 @@ [email protected] | |||
169 | [email protected] "<" | 169 | [email protected] "<" |
170 | [email protected] | 170 | [email protected] |
171 | [email protected] | 171 | [email protected] |
172 | [email protected] "\'a" | 172 | [email protected] "'a" |
173 | [email protected] ">" | 173 | [email protected] ">" |
174 | [email protected] " " | 174 | [email protected] " " |
175 | [email protected] | 175 | [email protected] |
@@ -178,7 +178,7 @@ [email protected] | |||
178 | [email protected] "<" | 178 | [email protected] "<" |
179 | [email protected] | 179 | [email protected] |
180 | [email protected] | 180 | [email protected] |
181 | [email protected] "\'b" | 181 | [email protected] "'b" |
182 | [email protected] ">" | 182 | [email protected] ">" |
183 | [email protected] " " | 183 | [email protected] " " |
184 | [email protected] | 184 | [email protected] |
@@ -187,7 +187,7 @@ [email protected] | |||
187 | [email protected] "<" | 187 | [email protected] "<" |
188 | [email protected] | 188 | [email protected] |
189 | [email protected] | 189 | [email protected] |
190 | [email protected] "\'c" | 190 | [email protected] "'c" |
191 | [email protected] ">" | 191 | [email protected] ">" |
192 | [email protected] " " | 192 | [email protected] " " |
193 | [email protected] | 193 | [email protected] |
@@ -198,7 +198,7 @@ [email protected] | |||
198 | [email protected] | 198 | [email protected] |
199 | [email protected] "&" | 199 | [email protected] "&" |
200 | [email protected] | 200 | [email protected] |
201 | [email protected] "\'a" | 201 | [email protected] "'a" |
202 | [email protected] " " | 202 | [email protected] " " |
203 | [email protected] | 203 | [email protected] |
204 | [email protected] | 204 | [email protected] |
@@ -211,7 +211,7 @@ [email protected] | |||
211 | [email protected] | 211 | [email protected] |
212 | [email protected] "&" | 212 | [email protected] "&" |
213 | [email protected] | 213 | [email protected] |
214 | [email protected] "\'b" | 214 | [email protected] "'b" |
215 | [email protected] " " | 215 | [email protected] " " |
216 | [email protected] | 216 | [email protected] |
217 | [email protected] | 217 | [email protected] |
@@ -224,7 +224,7 @@ [email protected] | |||
224 | [email protected] | 224 | [email protected] |
225 | [email protected] "&" | 225 | [email protected] "&" |
226 | [email protected] | 226 | [email protected] |
227 | [email protected] "\'c" | 227 | [email protected] "'c" |
228 | [email protected] " " | 228 | [email protected] " " |
229 | [email protected] | 229 | [email protected] |
230 | [email protected] | 230 | [email protected] |
diff --git a/crates/syntax/test_data/parser/err/0046_ambiguous_trait_object.rast b/crates/syntax/test_data/parser/err/0046_ambiguous_trait_object.rast index 7049f4734..6eaa32b96 100644 --- a/crates/syntax/test_data/parser/err/0046_ambiguous_trait_object.rast +++ b/crates/syntax/test_data/parser/err/0046_ambiguous_trait_object.rast | |||
@@ -8,7 +8,7 @@ [email protected] | |||
8 | [email protected] "<" | 8 | [email protected] "<" |
9 | [email protected] | 9 | [email protected] |
10 | [email protected] | 10 | [email protected] |
11 | [email protected] "\'a" | 11 | [email protected] "'a" |
12 | [email protected] ">" | 12 | [email protected] ">" |
13 | [email protected] " " | 13 | [email protected] " " |
14 | [email protected] "=" | 14 | [email protected] "=" |
@@ -16,7 +16,7 @@ [email protected] | |||
16 | [email protected] | 16 | [email protected] |
17 | [email protected] "&" | 17 | [email protected] "&" |
18 | [email protected] | 18 | [email protected] |
19 | [email protected] "\'a" | 19 | [email protected] "'a" |
20 | [email protected] " " | 20 | [email protected] " " |
21 | [email protected] | 21 | [email protected] |
22 | [email protected] "dyn" | 22 | [email protected] "dyn" |
@@ -104,7 +104,7 @@ [email protected] | |||
104 | [email protected] " " | 104 | [email protected] " " |
105 | [email protected] | 105 | [email protected] |
106 | [email protected] | 106 | [email protected] |
107 | [email protected] "\'static" | 107 | [email protected] "'static" |
108 | [email protected] ";" | 108 | [email protected] ";" |
109 | [email protected] "\n" | 109 | [email protected] "\n" |
110 | [email protected] | 110 | [email protected] |
diff --git a/crates/syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast b/crates/syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast index 0adf2cd5a..97bb5059d 100644 --- a/crates/syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast +++ b/crates/syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast | |||
@@ -15,7 +15,7 @@ [email protected] | |||
15 | [email protected] | 15 | [email protected] |
16 | [email protected] | 16 | [email protected] |
17 | [email protected] | 17 | [email protected] |
18 | [email protected] "\'loop" | 18 | [email protected] "'loop" |
19 | [email protected] ":" | 19 | [email protected] ":" |
20 | [email protected] " " | 20 | [email protected] " " |
21 | [email protected] | 21 | [email protected] |
diff --git a/crates/syntax/test_data/parser/inline/ok/0003_where_pred_for.rast b/crates/syntax/test_data/parser/inline/ok/0003_where_pred_for.rast index 6cdfd058b..12f5040f9 100644 --- a/crates/syntax/test_data/parser/inline/ok/0003_where_pred_for.rast +++ b/crates/syntax/test_data/parser/inline/ok/0003_where_pred_for.rast | |||
@@ -23,7 +23,7 @@ [email protected] | |||
23 | [email protected] "<" | 23 | [email protected] "<" |
24 | [email protected] | 24 | [email protected] |
25 | [email protected] | 25 | [email protected] |
26 | [email protected] "\'a" | 26 | [email protected] "'a" |
27 | [email protected] ">" | 27 | [email protected] ">" |
28 | [email protected] " " | 28 | [email protected] " " |
29 | [email protected] | 29 | [email protected] |
@@ -46,7 +46,7 @@ [email protected] | |||
46 | [email protected] | 46 | [email protected] |
47 | [email protected] "&" | 47 | [email protected] "&" |
48 | [email protected] | 48 | [email protected] |
49 | [email protected] "\'a" | 49 | [email protected] "'a" |
50 | [email protected] " " | 50 | [email protected] " " |
51 | [email protected] | 51 | [email protected] |
52 | [email protected] | 52 | [email protected] |
diff --git a/crates/syntax/test_data/parser/inline/ok/0006_self_param.rast b/crates/syntax/test_data/parser/inline/ok/0006_self_param.rast index f0d152d33..d4c8b9d67 100644 --- a/crates/syntax/test_data/parser/inline/ok/0006_self_param.rast +++ b/crates/syntax/test_data/parser/inline/ok/0006_self_param.rast | |||
@@ -55,7 +55,7 @@ [email protected] | |||
55 | [email protected] | 55 | [email protected] |
56 | [email protected] "&" | 56 | [email protected] "&" |
57 | [email protected] | 57 | [email protected] |
58 | [email protected] "\'a" | 58 | [email protected] "'a" |
59 | [email protected] " " | 59 | [email protected] " " |
60 | [email protected] | 60 | [email protected] |
61 | [email protected] "self" | 61 | [email protected] "self" |
@@ -76,7 +76,7 @@ [email protected] | |||
76 | [email protected] | 76 | [email protected] |
77 | [email protected] "&" | 77 | [email protected] "&" |
78 | [email protected] | 78 | [email protected] |
79 | [email protected] "\'a" | 79 | [email protected] "'a" |
80 | [email protected] " " | 80 | [email protected] " " |
81 | [email protected] "mut" | 81 | [email protected] "mut" |
82 | [email protected] " " | 82 | [email protected] " " |
diff --git a/crates/syntax/test_data/parser/inline/ok/0007_type_param_bounds.rast b/crates/syntax/test_data/parser/inline/ok/0007_type_param_bounds.rast index 075b438d2..121c3966a 100644 --- a/crates/syntax/test_data/parser/inline/ok/0007_type_param_bounds.rast +++ b/crates/syntax/test_data/parser/inline/ok/0007_type_param_bounds.rast | |||
@@ -14,7 +14,7 @@ [email protected] | |||
14 | [email protected] | 14 | [email protected] |
15 | [email protected] | 15 | [email protected] |
16 | [email protected] | 16 | [email protected] |
17 | [email protected] "\'a" | 17 | [email protected] "'a" |
18 | [email protected] " " | 18 | [email protected] " " |
19 | [email protected] "+" | 19 | [email protected] "+" |
20 | [email protected] " " | 20 | [email protected] " " |
diff --git a/crates/syntax/test_data/parser/inline/ok/0015_continue_expr.rast b/crates/syntax/test_data/parser/inline/ok/0015_continue_expr.rast index b9e92b57a..b67ea2682 100644 --- a/crates/syntax/test_data/parser/inline/ok/0015_continue_expr.rast +++ b/crates/syntax/test_data/parser/inline/ok/0015_continue_expr.rast | |||
@@ -27,7 +27,7 @@ [email protected] | |||
27 | [email protected] "continue" | 27 | [email protected] "continue" |
28 | [email protected] " " | 28 | [email protected] " " |
29 | [email protected] | 29 | [email protected] |
30 | [email protected] "\'l" | 30 | [email protected] "'l" |
31 | [email protected] ";" | 31 | [email protected] ";" |
32 | [email protected] "\n " | 32 | [email protected] "\n " |
33 | [email protected] "}" | 33 | [email protected] "}" |
diff --git a/crates/syntax/test_data/parser/inline/ok/0028_impl_trait_type.rast b/crates/syntax/test_data/parser/inline/ok/0028_impl_trait_type.rast index dad4362b7..b44f46f05 100644 --- a/crates/syntax/test_data/parser/inline/ok/0028_impl_trait_type.rast +++ b/crates/syntax/test_data/parser/inline/ok/0028_impl_trait_type.rast | |||
@@ -32,7 +32,7 @@ [email protected] | |||
32 | [email protected] "<" | 32 | [email protected] "<" |
33 | [email protected] | 33 | [email protected] |
34 | [email protected] | 34 | [email protected] |
35 | [email protected] "\'a" | 35 | [email protected] "'a" |
36 | [email protected] ">" | 36 | [email protected] ">" |
37 | [email protected] ">" | 37 | [email protected] ">" |
38 | [email protected] " " | 38 | [email protected] " " |
@@ -40,6 +40,6 @@ [email protected] | |||
40 | [email protected] " " | 40 | [email protected] " " |
41 | [email protected] | 41 | [email protected] |
42 | [email protected] | 42 | [email protected] |
43 | [email protected] "\'a" | 43 | [email protected] "'a" |
44 | [email protected] ";" | 44 | [email protected] ";" |
45 | [email protected] "\n" | 45 | [email protected] "\n" |
diff --git a/crates/syntax/test_data/parser/inline/ok/0033_reference_type;.rast b/crates/syntax/test_data/parser/inline/ok/0033_reference_type;.rast index ac0299268..7cb288bf0 100644 --- a/crates/syntax/test_data/parser/inline/ok/0033_reference_type;.rast +++ b/crates/syntax/test_data/parser/inline/ok/0033_reference_type;.rast | |||
@@ -25,7 +25,7 @@ [email protected] | |||
25 | [email protected] | 25 | [email protected] |
26 | [email protected] "&" | 26 | [email protected] "&" |
27 | [email protected] | 27 | [email protected] |
28 | [email protected] "\'static" | 28 | [email protected] "'static" |
29 | [email protected] " " | 29 | [email protected] " " |
30 | [email protected] | 30 | [email protected] |
31 | [email protected] "(" | 31 | [email protected] "(" |
diff --git a/crates/syntax/test_data/parser/inline/ok/0034_break_expr.rast b/crates/syntax/test_data/parser/inline/ok/0034_break_expr.rast index 828013d45..783b25338 100644 --- a/crates/syntax/test_data/parser/inline/ok/0034_break_expr.rast +++ b/crates/syntax/test_data/parser/inline/ok/0034_break_expr.rast | |||
@@ -27,7 +27,7 @@ [email protected] | |||
27 | [email protected] "break" | 27 | [email protected] "break" |
28 | [email protected] " " | 28 | [email protected] " " |
29 | [email protected] | 29 | [email protected] |
30 | [email protected] "\'l" | 30 | [email protected] "'l" |
31 | [email protected] ";" | 31 | [email protected] ";" |
32 | [email protected] "\n " | 32 | [email protected] "\n " |
33 | [email protected] | 33 | [email protected] |
@@ -43,7 +43,7 @@ [email protected] | |||
43 | [email protected] "break" | 43 | [email protected] "break" |
44 | [email protected] " " | 44 | [email protected] " " |
45 | [email protected] | 45 | [email protected] |
46 | [email protected] "\'l" | 46 | [email protected] "'l" |
47 | [email protected] " " | 47 | [email protected] " " |
48 | [email protected] | 48 | [email protected] |
49 | [email protected] "92" | 49 | [email protected] "92" |
diff --git a/crates/syntax/test_data/parser/inline/ok/0039_type_arg.rast b/crates/syntax/test_data/parser/inline/ok/0039_type_arg.rast index 68c0f1c66..11efa23a4 100644 --- a/crates/syntax/test_data/parser/inline/ok/0039_type_arg.rast +++ b/crates/syntax/test_data/parser/inline/ok/0039_type_arg.rast | |||
@@ -16,7 +16,7 @@ [email protected] | |||
16 | [email protected] "<" | 16 | [email protected] "<" |
17 | [email protected] | 17 | [email protected] |
18 | [email protected] | 18 | [email protected] |
19 | [email protected] "\'static" | 19 | [email protected] "'static" |
20 | [email protected] "," | 20 | [email protected] "," |
21 | [email protected] " " | 21 | [email protected] " " |
22 | [email protected] | 22 | [email protected] |
diff --git a/crates/syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.rast b/crates/syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.rast index b6f5a5689..abc258b33 100644 --- a/crates/syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.rast +++ b/crates/syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.rast | |||
@@ -34,7 +34,7 @@ [email protected] | |||
34 | [email protected] "<" | 34 | [email protected] "<" |
35 | [email protected] | 35 | [email protected] |
36 | [email protected] | 36 | [email protected] |
37 | [email protected] "\'a" | 37 | [email protected] "'a" |
38 | [email protected] ">" | 38 | [email protected] ">" |
39 | [email protected] ")" | 39 | [email protected] ")" |
40 | [email protected] ">" | 40 | [email protected] ">" |
diff --git a/crates/syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.rast b/crates/syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.rast index 7df6e190a..e1b88c5db 100644 --- a/crates/syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.rast +++ b/crates/syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.rast | |||
@@ -32,7 +32,7 @@ [email protected] | |||
32 | [email protected] " " | 32 | [email protected] " " |
33 | [email protected] | 33 | [email protected] |
34 | [email protected] | 34 | [email protected] |
35 | [email protected] "\'f" | 35 | [email protected] "'f" |
36 | [email protected] ">" | 36 | [email protected] ">" |
37 | [email protected] " " | 37 | [email protected] " " |
38 | [email protected] | 38 | [email protected] |
@@ -74,7 +74,7 @@ [email protected] | |||
74 | [email protected] " " | 74 | [email protected] " " |
75 | [email protected] | 75 | [email protected] |
76 | [email protected] | 76 | [email protected] |
77 | [email protected] "\'f" | 77 | [email protected] "'f" |
78 | [email protected] ">" | 78 | [email protected] ">" |
79 | [email protected] " " | 79 | [email protected] " " |
80 | [email protected] | 80 | [email protected] |
diff --git a/crates/syntax/test_data/parser/inline/ok/0055_literal_pattern.rast b/crates/syntax/test_data/parser/inline/ok/0055_literal_pattern.rast index 68bb43852..acf18fc2b 100644 --- a/crates/syntax/test_data/parser/inline/ok/0055_literal_pattern.rast +++ b/crates/syntax/test_data/parser/inline/ok/0055_literal_pattern.rast | |||
@@ -49,7 +49,7 @@ [email protected] | |||
49 | [email protected] | 49 | [email protected] |
50 | [email protected] | 50 | [email protected] |
51 | [email protected] | 51 | [email protected] |
52 | [email protected] "\'c\'" | 52 | [email protected] "'c'" |
53 | [email protected] " " | 53 | [email protected] " " |
54 | [email protected] "=>" | 54 | [email protected] "=>" |
55 | [email protected] " " | 55 | [email protected] " " |
diff --git a/crates/syntax/test_data/parser/inline/ok/0056_where_clause.rast b/crates/syntax/test_data/parser/inline/ok/0056_where_clause.rast index 61dea413d..d42a7e295 100644 --- a/crates/syntax/test_data/parser/inline/ok/0056_where_clause.rast +++ b/crates/syntax/test_data/parser/inline/ok/0056_where_clause.rast | |||
@@ -13,19 +13,19 @@ [email protected] | |||
13 | [email protected] "\n " | 13 | [email protected] "\n " |
14 | [email protected] | 14 | [email protected] |
15 | [email protected] | 15 | [email protected] |
16 | [email protected] "\'a" | 16 | [email protected] "'a" |
17 | [email protected] ":" | 17 | [email protected] ":" |
18 | [email protected] " " | 18 | [email protected] " " |
19 | [email protected] | 19 | [email protected] |
20 | [email protected] | 20 | [email protected] |
21 | [email protected] | 21 | [email protected] |
22 | [email protected] "\'b" | 22 | [email protected] "'b" |
23 | [email protected] " " | 23 | [email protected] " " |
24 | [email protected] "+" | 24 | [email protected] "+" |
25 | [email protected] " " | 25 | [email protected] " " |
26 | [email protected] | 26 | [email protected] |
27 | [email protected] | 27 | [email protected] |
28 | [email protected] "\'c" | 28 | [email protected] "'c" |
29 | [email protected] "," | 29 | [email protected] "," |
30 | [email protected] "\n " | 30 | [email protected] "\n " |
31 | [email protected] | 31 | [email protected] |
@@ -57,7 +57,7 @@ [email protected] | |||
57 | [email protected] " " | 57 | [email protected] " " |
58 | [email protected] | 58 | [email protected] |
59 | [email protected] | 59 | [email protected] |
60 | [email protected] "\'static" | 60 | [email protected] "'static" |
61 | [email protected] "," | 61 | [email protected] "," |
62 | [email protected] "\n " | 62 | [email protected] "\n " |
63 | [email protected] | 63 | [email protected] |
@@ -76,7 +76,7 @@ [email protected] | |||
76 | [email protected] | 76 | [email protected] |
77 | [email protected] | 77 | [email protected] |
78 | [email protected] | 78 | [email protected] |
79 | [email protected] "\'a" | 79 | [email protected] "'a" |
80 | [email protected] "," | 80 | [email protected] "," |
81 | [email protected] "\n " | 81 | [email protected] "\n " |
82 | [email protected] | 82 | [email protected] |
@@ -108,7 +108,7 @@ [email protected] | |||
108 | [email protected] | 108 | [email protected] |
109 | [email protected] | 109 | [email protected] |
110 | [email protected] | 110 | [email protected] |
111 | [email protected] "\'a" | 111 | [email protected] "'a" |
112 | [email protected] "\n" | 112 | [email protected] "\n" |
113 | [email protected] | 113 | [email protected] |
114 | [email protected] "{" | 114 | [email protected] "{" |
diff --git a/crates/syntax/test_data/parser/inline/ok/0065_dyn_trait_type.rast b/crates/syntax/test_data/parser/inline/ok/0065_dyn_trait_type.rast index 49d26cef4..8f76177d1 100644 --- a/crates/syntax/test_data/parser/inline/ok/0065_dyn_trait_type.rast +++ b/crates/syntax/test_data/parser/inline/ok/0065_dyn_trait_type.rast | |||
@@ -32,7 +32,7 @@ [email protected] | |||
32 | [email protected] "<" | 32 | [email protected] "<" |
33 | [email protected] | 33 | [email protected] |
34 | [email protected] | 34 | [email protected] |
35 | [email protected] "\'a" | 35 | [email protected] "'a" |
36 | [email protected] ">" | 36 | [email protected] ">" |
37 | [email protected] ">" | 37 | [email protected] ">" |
38 | [email protected] " " | 38 | [email protected] " " |
@@ -40,6 +40,6 @@ [email protected] | |||
40 | [email protected] " " | 40 | [email protected] " " |
41 | [email protected] | 41 | [email protected] |
42 | [email protected] | 42 | [email protected] |
43 | [email protected] "\'a" | 43 | [email protected] "'a" |
44 | [email protected] ";" | 44 | [email protected] ";" |
45 | [email protected] "\n" | 45 | [email protected] "\n" |
diff --git a/crates/syntax/test_data/parser/inline/ok/0081_for_type.rast b/crates/syntax/test_data/parser/inline/ok/0081_for_type.rast index 8c909b5af..7958e32e5 100644 --- a/crates/syntax/test_data/parser/inline/ok/0081_for_type.rast +++ b/crates/syntax/test_data/parser/inline/ok/0081_for_type.rast | |||
@@ -13,7 +13,7 @@ [email protected] | |||
13 | [email protected] "<" | 13 | [email protected] "<" |
14 | [email protected] | 14 | [email protected] |
15 | [email protected] | 15 | [email protected] |
16 | [email protected] "\'a" | 16 | [email protected] "'a" |
17 | [email protected] ">" | 17 | [email protected] ">" |
18 | [email protected] " " | 18 | [email protected] " " |
19 | [email protected] | 19 | [email protected] |
@@ -44,7 +44,7 @@ [email protected] | |||
44 | [email protected] "<" | 44 | [email protected] "<" |
45 | [email protected] | 45 | [email protected] |
46 | [email protected] | 46 | [email protected] |
47 | [email protected] "\'a" | 47 | [email protected] "'a" |
48 | [email protected] ">" | 48 | [email protected] ">" |
49 | [email protected] " " | 49 | [email protected] " " |
50 | [email protected] | 50 | [email protected] |
@@ -62,7 +62,7 @@ [email protected] | |||
62 | [email protected] | 62 | [email protected] |
63 | [email protected] "&" | 63 | [email protected] "&" |
64 | [email protected] | 64 | [email protected] |
65 | [email protected] "\'a" | 65 | [email protected] "'a" |
66 | [email protected] " " | 66 | [email protected] " " |
67 | [email protected] | 67 | [email protected] |
68 | [email protected] "(" | 68 | [email protected] "(" |
@@ -91,7 +91,7 @@ [email protected] | |||
91 | [email protected] "<" | 91 | [email protected] "<" |
92 | [email protected] | 92 | [email protected] |
93 | [email protected] | 93 | [email protected] |
94 | [email protected] "\'a" | 94 | [email protected] "'a" |
95 | [email protected] ">" | 95 | [email protected] ">" |
96 | [email protected] " " | 96 | [email protected] " " |
97 | [email protected] | 97 | [email protected] |
@@ -105,7 +105,7 @@ [email protected] | |||
105 | [email protected] | 105 | [email protected] |
106 | [email protected] "&" | 106 | [email protected] "&" |
107 | [email protected] | 107 | [email protected] |
108 | [email protected] "\'a" | 108 | [email protected] "'a" |
109 | [email protected] " " | 109 | [email protected] " " |
110 | [email protected] | 110 | [email protected] |
111 | [email protected] | 111 | [email protected] |
diff --git a/crates/syntax/test_data/parser/inline/ok/0085_expr_literals.rast b/crates/syntax/test_data/parser/inline/ok/0085_expr_literals.rast index ae838105d..f784e96e0 100644 --- a/crates/syntax/test_data/parser/inline/ok/0085_expr_literals.rast +++ b/crates/syntax/test_data/parser/inline/ok/0085_expr_literals.rast | |||
@@ -68,7 +68,7 @@ [email protected] | |||
68 | [email protected] "=" | 68 | [email protected] "=" |
69 | [email protected] " " | 69 | [email protected] " " |
70 | [email protected] | 70 | [email protected] |
71 | [email protected] "b\'a\'" | 71 | [email protected] "b'a'" |
72 | [email protected] ";" | 72 | [email protected] ";" |
73 | [email protected] "\n " | 73 | [email protected] "\n " |
74 | [email protected] | 74 | [email protected] |
@@ -80,7 +80,7 @@ [email protected] | |||
80 | [email protected] "=" | 80 | [email protected] "=" |
81 | [email protected] " " | 81 | [email protected] " " |
82 | [email protected] | 82 | [email protected] |
83 | [email protected] "\'b\'" | 83 | [email protected] "'b'" |
84 | [email protected] ";" | 84 | [email protected] ";" |
85 | [email protected] "\n " | 85 | [email protected] "\n " |
86 | [email protected] | 86 | [email protected] |
diff --git a/crates/syntax/test_data/parser/inline/ok/0109_label.rast b/crates/syntax/test_data/parser/inline/ok/0109_label.rast index 860dfe608..8540b8520 100644 --- a/crates/syntax/test_data/parser/inline/ok/0109_label.rast +++ b/crates/syntax/test_data/parser/inline/ok/0109_label.rast | |||
@@ -15,7 +15,7 @@ [email protected] | |||
15 | [email protected] | 15 | [email protected] |
16 | [email protected] | 16 | [email protected] |
17 | [email protected] | 17 | [email protected] |
18 | [email protected] "\'a" | 18 | [email protected] "'a" |
19 | [email protected] ":" | 19 | [email protected] ":" |
20 | [email protected] " " | 20 | [email protected] " " |
21 | [email protected] "loop" | 21 | [email protected] "loop" |
@@ -28,7 +28,7 @@ [email protected] | |||
28 | [email protected] | 28 | [email protected] |
29 | [email protected] | 29 | [email protected] |
30 | [email protected] | 30 | [email protected] |
31 | [email protected] "\'b" | 31 | [email protected] "'b" |
32 | [email protected] ":" | 32 | [email protected] ":" |
33 | [email protected] " " | 33 | [email protected] " " |
34 | [email protected] "while" | 34 | [email protected] "while" |
@@ -44,7 +44,7 @@ [email protected] | |||
44 | [email protected] | 44 | [email protected] |
45 | [email protected] | 45 | [email protected] |
46 | [email protected] | 46 | [email protected] |
47 | [email protected] "\'c" | 47 | [email protected] "'c" |
48 | [email protected] ":" | 48 | [email protected] ":" |
49 | [email protected] " " | 49 | [email protected] " " |
50 | [email protected] "for" | 50 | [email protected] "for" |
diff --git a/crates/syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast b/crates/syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast index 840181383..5682bd28c 100644 --- a/crates/syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast +++ b/crates/syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast | |||
@@ -22,7 +22,7 @@ [email protected] | |||
22 | [email protected] "]" | 22 | [email protected] "]" |
23 | [email protected] " " | 23 | [email protected] " " |
24 | [email protected] | 24 | [email protected] |
25 | [email protected] "\'a" | 25 | [email protected] "'a" |
26 | [email protected] "," | 26 | [email protected] "," |
27 | [email protected] " " | 27 | [email protected] " " |
28 | [email protected] | 28 | [email protected] |
@@ -53,7 +53,7 @@ [email protected] | |||
53 | [email protected] | 53 | [email protected] |
54 | [email protected] "&" | 54 | [email protected] "&" |
55 | [email protected] | 55 | [email protected] |
56 | [email protected] "\'a" | 56 | [email protected] "'a" |
57 | [email protected] " " | 57 | [email protected] " " |
58 | [email protected] | 58 | [email protected] |
59 | [email protected] | 59 | [email protected] |
diff --git a/crates/syntax/test_data/parser/inline/ok/0154_no_dyn_trait_leading_for.rast b/crates/syntax/test_data/parser/inline/ok/0154_no_dyn_trait_leading_for.rast index edfcb288c..860684b29 100644 --- a/crates/syntax/test_data/parser/inline/ok/0154_no_dyn_trait_leading_for.rast +++ b/crates/syntax/test_data/parser/inline/ok/0154_no_dyn_trait_leading_for.rast | |||
@@ -16,7 +16,7 @@ [email protected] | |||
16 | [email protected] "<" | 16 | [email protected] "<" |
17 | [email protected] | 17 | [email protected] |
18 | [email protected] | 18 | [email protected] |
19 | [email protected] "\'a" | 19 | [email protected] "'a" |
20 | [email protected] ">" | 20 | [email protected] ">" |
21 | [email protected] " " | 21 | [email protected] " " |
22 | [email protected] | 22 | [email protected] |
@@ -28,7 +28,7 @@ [email protected] | |||
28 | [email protected] "<" | 28 | [email protected] "<" |
29 | [email protected] | 29 | [email protected] |
30 | [email protected] | 30 | [email protected] |
31 | [email protected] "\'a" | 31 | [email protected] "'a" |
32 | [email protected] ">" | 32 | [email protected] ">" |
33 | [email protected] " " | 33 | [email protected] " " |
34 | [email protected] "+" | 34 | [email protected] "+" |
diff --git a/crates/syntax/test_data/parser/inline/ok/0161_labeled_block.rast b/crates/syntax/test_data/parser/inline/ok/0161_labeled_block.rast index c2dea1cc1..47e8859ed 100644 --- a/crates/syntax/test_data/parser/inline/ok/0161_labeled_block.rast +++ b/crates/syntax/test_data/parser/inline/ok/0161_labeled_block.rast | |||
@@ -15,7 +15,7 @@ [email protected] | |||
15 | [email protected] | 15 | [email protected] |
16 | [email protected] | 16 | [email protected] |
17 | [email protected] | 17 | [email protected] |
18 | [email protected] "\'label" | 18 | [email protected] "'label" |
19 | [email protected] ":" | 19 | [email protected] ":" |
20 | [email protected] " " | 20 | [email protected] " " |
21 | [email protected] | 21 | [email protected] |
diff --git a/crates/syntax/test_data/parser/ok/0018_struct_type_params.rast b/crates/syntax/test_data/parser/ok/0018_struct_type_params.rast index 83e17757b..f845d5cff 100644 --- a/crates/syntax/test_data/parser/ok/0018_struct_type_params.rast +++ b/crates/syntax/test_data/parser/ok/0018_struct_type_params.rast | |||
@@ -81,7 +81,7 @@ [email protected] | |||
81 | [email protected] "<" | 81 | [email protected] "<" |
82 | [email protected] | 82 | [email protected] |
83 | [email protected] | 83 | [email protected] |
84 | [email protected] "\'a" | 84 | [email protected] "'a" |
85 | [email protected] ">" | 85 | [email protected] ">" |
86 | [email protected] ";" | 86 | [email protected] ";" |
87 | [email protected] "\n" | 87 | [email protected] "\n" |
@@ -94,7 +94,7 @@ [email protected] | |||
94 | [email protected] "<" | 94 | [email protected] "<" |
95 | [email protected] | 95 | [email protected] |
96 | [email protected] | 96 | [email protected] |
97 | [email protected] "\'a" | 97 | [email protected] "'a" |
98 | [email protected] ":" | 98 | [email protected] ":" |
99 | [email protected] ">" | 99 | [email protected] ">" |
100 | [email protected] ";" | 100 | [email protected] ";" |
@@ -108,11 +108,11 @@ [email protected] | |||
108 | [email protected] "<" | 108 | [email protected] "<" |
109 | [email protected] | 109 | [email protected] |
110 | [email protected] | 110 | [email protected] |
111 | [email protected] "\'a" | 111 | [email protected] "'a" |
112 | [email protected] ":" | 112 | [email protected] ":" |
113 | [email protected] " " | 113 | [email protected] " " |
114 | [email protected] | 114 | [email protected] |
115 | [email protected] "\'b" | 115 | [email protected] "'b" |
116 | [email protected] ">" | 116 | [email protected] ">" |
117 | [email protected] ";" | 117 | [email protected] ";" |
118 | [email protected] "\n" | 118 | [email protected] "\n" |
@@ -125,11 +125,11 @@ [email protected] | |||
125 | [email protected] "<" | 125 | [email protected] "<" |
126 | [email protected] | 126 | [email protected] |
127 | [email protected] | 127 | [email protected] |
128 | [email protected] "\'a" | 128 | [email protected] "'a" |
129 | [email protected] ":" | 129 | [email protected] ":" |
130 | [email protected] " " | 130 | [email protected] " " |
131 | [email protected] | 131 | [email protected] |
132 | [email protected] "\'b" | 132 | [email protected] "'b" |
133 | [email protected] " " | 133 | [email protected] " " |
134 | [email protected] "+" | 134 | [email protected] "+" |
135 | [email protected] " " | 135 | [email protected] " " |
@@ -145,16 +145,16 @@ [email protected] | |||
145 | [email protected] "<" | 145 | [email protected] "<" |
146 | [email protected] | 146 | [email protected] |
147 | [email protected] | 147 | [email protected] |
148 | [email protected] "\'a" | 148 | [email protected] "'a" |
149 | [email protected] ":" | 149 | [email protected] ":" |
150 | [email protected] " " | 150 | [email protected] " " |
151 | [email protected] | 151 | [email protected] |
152 | [email protected] "\'b" | 152 | [email protected] "'b" |
153 | [email protected] " " | 153 | [email protected] " " |
154 | [email protected] "+" | 154 | [email protected] "+" |
155 | [email protected] " " | 155 | [email protected] " " |
156 | [email protected] | 156 | [email protected] |
157 | [email protected] "\'c" | 157 | [email protected] "'c" |
158 | [email protected] ">" | 158 | [email protected] ">" |
159 | [email protected] ";" | 159 | [email protected] ";" |
160 | [email protected] "\n" | 160 | [email protected] "\n" |
@@ -167,7 +167,7 @@ [email protected] | |||
167 | [email protected] "<" | 167 | [email protected] "<" |
168 | [email protected] | 168 | [email protected] |
169 | [email protected] | 169 | [email protected] |
170 | [email protected] "\'a" | 170 | [email protected] "'a" |
171 | [email protected] "," | 171 | [email protected] "," |
172 | [email protected] ">" | 172 | [email protected] ">" |
173 | [email protected] ";" | 173 | [email protected] ";" |
@@ -181,12 +181,12 @@ [email protected] | |||
181 | [email protected] "<" | 181 | [email protected] "<" |
182 | [email protected] | 182 | [email protected] |
183 | [email protected] | 183 | [email protected] |
184 | [email protected] "\'a" | 184 | [email protected] "'a" |
185 | [email protected] "," | 185 | [email protected] "," |
186 | [email protected] " " | 186 | [email protected] " " |
187 | [email protected] | 187 | [email protected] |
188 | [email protected] | 188 | [email protected] |
189 | [email protected] "\'b" | 189 | [email protected] "'b" |
190 | [email protected] ">" | 190 | [email protected] ">" |
191 | [email protected] ";" | 191 | [email protected] ";" |
192 | [email protected] "\n" | 192 | [email protected] "\n" |
@@ -199,21 +199,21 @@ [email protected] | |||
199 | [email protected] "<" | 199 | [email protected] "<" |
200 | [email protected] | 200 | [email protected] |
201 | [email protected] | 201 | [email protected] |
202 | [email protected] "\'a" | 202 | [email protected] "'a" |
203 | [email protected] ":" | 203 | [email protected] ":" |
204 | [email protected] " " | 204 | [email protected] " " |
205 | [email protected] | 205 | [email protected] |
206 | [email protected] "\'b" | 206 | [email protected] "'b" |
207 | [email protected] "+" | 207 | [email protected] "+" |
208 | [email protected] "," | 208 | [email protected] "," |
209 | [email protected] " " | 209 | [email protected] " " |
210 | [email protected] | 210 | [email protected] |
211 | [email protected] | 211 | [email protected] |
212 | [email protected] "\'b" | 212 | [email protected] "'b" |
213 | [email protected] ":" | 213 | [email protected] ":" |
214 | [email protected] " " | 214 | [email protected] " " |
215 | [email protected] | 215 | [email protected] |
216 | [email protected] "\'c" | 216 | [email protected] "'c" |
217 | [email protected] "," | 217 | [email protected] "," |
218 | [email protected] ">" | 218 | [email protected] ">" |
219 | [email protected] ";" | 219 | [email protected] ";" |
@@ -258,7 +258,7 @@ [email protected] | |||
258 | [email protected] "<" | 258 | [email protected] "<" |
259 | [email protected] | 259 | [email protected] |
260 | [email protected] | 260 | [email protected] |
261 | [email protected] "\'a" | 261 | [email protected] "'a" |
262 | [email protected] "," | 262 | [email protected] "," |
263 | [email protected] " " | 263 | [email protected] " " |
264 | [email protected] | 264 | [email protected] |
diff --git a/crates/syntax/test_data/parser/ok/0020_type_param_bounds.rast b/crates/syntax/test_data/parser/ok/0020_type_param_bounds.rast index 21c564a20..9d4b001ae 100644 --- a/crates/syntax/test_data/parser/ok/0020_type_param_bounds.rast +++ b/crates/syntax/test_data/parser/ok/0020_type_param_bounds.rast | |||
@@ -42,7 +42,7 @@ [email protected] | |||
42 | [email protected] | 42 | [email protected] |
43 | [email protected] | 43 | [email protected] |
44 | [email protected] | 44 | [email protected] |
45 | [email protected] "\'a" | 45 | [email protected] "'a" |
46 | [email protected] ">" | 46 | [email protected] ">" |
47 | [email protected] ";" | 47 | [email protected] ";" |
48 | [email protected] "\n" | 48 | [email protected] "\n" |
@@ -61,7 +61,7 @@ [email protected] | |||
61 | [email protected] | 61 | [email protected] |
62 | [email protected] | 62 | [email protected] |
63 | [email protected] | 63 | [email protected] |
64 | [email protected] "\'a" | 64 | [email protected] "'a" |
65 | [email protected] " " | 65 | [email protected] " " |
66 | [email protected] "+" | 66 | [email protected] "+" |
67 | [email protected] " " | 67 | [email protected] " " |
@@ -83,13 +83,13 @@ [email protected] | |||
83 | [email protected] | 83 | [email protected] |
84 | [email protected] | 84 | [email protected] |
85 | [email protected] | 85 | [email protected] |
86 | [email protected] "\'a" | 86 | [email protected] "'a" |
87 | [email protected] " " | 87 | [email protected] " " |
88 | [email protected] "+" | 88 | [email protected] "+" |
89 | [email protected] " " | 89 | [email protected] " " |
90 | [email protected] | 90 | [email protected] |
91 | [email protected] | 91 | [email protected] |
92 | [email protected] "\'d" | 92 | [email protected] "'d" |
93 | [email protected] " " | 93 | [email protected] " " |
94 | [email protected] ">" | 94 | [email protected] ">" |
95 | [email protected] ";" | 95 | [email protected] ";" |
@@ -109,13 +109,13 @@ [email protected] | |||
109 | [email protected] | 109 | [email protected] |
110 | [email protected] | 110 | [email protected] |
111 | [email protected] | 111 | [email protected] |
112 | [email protected] "\'a" | 112 | [email protected] "'a" |
113 | [email protected] " " | 113 | [email protected] " " |
114 | [email protected] "+" | 114 | [email protected] "+" |
115 | [email protected] " " | 115 | [email protected] " " |
116 | [email protected] | 116 | [email protected] |
117 | [email protected] | 117 | [email protected] |
118 | [email protected] "\'d" | 118 | [email protected] "'d" |
119 | [email protected] " " | 119 | [email protected] " " |
120 | [email protected] "+" | 120 | [email protected] "+" |
121 | [email protected] " " | 121 | [email protected] " " |
@@ -198,7 +198,7 @@ [email protected] | |||
198 | [email protected] " " | 198 | [email protected] " " |
199 | [email protected] | 199 | [email protected] |
200 | [email protected] | 200 | [email protected] |
201 | [email protected] "\'a" | 201 | [email protected] "'a" |
202 | [email protected] ">" | 202 | [email protected] ">" |
203 | [email protected] ";" | 203 | [email protected] ";" |
204 | [email protected] "\n" | 204 | [email protected] "\n" |
@@ -234,25 +234,25 @@ [email protected] | |||
234 | [email protected] "<" | 234 | [email protected] "<" |
235 | [email protected] | 235 | [email protected] |
236 | [email protected] | 236 | [email protected] |
237 | [email protected] "\'a" | 237 | [email protected] "'a" |
238 | [email protected] ":" | 238 | [email protected] ":" |
239 | [email protected] " " | 239 | [email protected] " " |
240 | [email protected] | 240 | [email protected] |
241 | [email protected] "\'d" | 241 | [email protected] "'d" |
242 | [email protected] "," | 242 | [email protected] "," |
243 | [email protected] " " | 243 | [email protected] " " |
244 | [email protected] | 244 | [email protected] |
245 | [email protected] | 245 | [email protected] |
246 | [email protected] "\'d" | 246 | [email protected] "'d" |
247 | [email protected] ":" | 247 | [email protected] ":" |
248 | [email protected] " " | 248 | [email protected] " " |
249 | [email protected] | 249 | [email protected] |
250 | [email protected] "\'a" | 250 | [email protected] "'a" |
251 | [email protected] " " | 251 | [email protected] " " |
252 | [email protected] "+" | 252 | [email protected] "+" |
253 | [email protected] " " | 253 | [email protected] " " |
254 | [email protected] | 254 | [email protected] |
255 | [email protected] "\'b" | 255 | [email protected] "'b" |
256 | [email protected] "," | 256 | [email protected] "," |
257 | [email protected] " " | 257 | [email protected] " " |
258 | [email protected] | 258 | [email protected] |
@@ -263,13 +263,13 @@ [email protected] | |||
263 | [email protected] | 263 | [email protected] |
264 | [email protected] | 264 | [email protected] |
265 | [email protected] | 265 | [email protected] |
266 | [email protected] "\'a" | 266 | [email protected] "'a" |
267 | [email protected] " " | 267 | [email protected] " " |
268 | [email protected] "+" | 268 | [email protected] "+" |
269 | [email protected] " " | 269 | [email protected] " " |
270 | [email protected] | 270 | [email protected] |
271 | [email protected] | 271 | [email protected] |
272 | [email protected] "\'d" | 272 | [email protected] "'d" |
273 | [email protected] " " | 273 | [email protected] " " |
274 | [email protected] "+" | 274 | [email protected] "+" |
275 | [email protected] " " | 275 | [email protected] " " |
diff --git a/crates/syntax/test_data/parser/ok/0030_string_suffixes.rast b/crates/syntax/test_data/parser/ok/0030_string_suffixes.rast index 80f7f5942..115861585 100644 --- a/crates/syntax/test_data/parser/ok/0030_string_suffixes.rast +++ b/crates/syntax/test_data/parser/ok/0030_string_suffixes.rast | |||
@@ -20,7 +20,7 @@ [email protected] | |||
20 | [email protected] "=" | 20 | [email protected] "=" |
21 | [email protected] " " | 21 | [email protected] " " |
22 | [email protected] | 22 | [email protected] |
23 | [email protected] "\'c\'u32" | 23 | [email protected] "'c'u32" |
24 | [email protected] ";" | 24 | [email protected] ";" |
25 | [email protected] "\n " | 25 | [email protected] "\n " |
26 | [email protected] | 26 | [email protected] |
@@ -44,7 +44,7 @@ [email protected] | |||
44 | [email protected] "=" | 44 | [email protected] "=" |
45 | [email protected] " " | 45 | [email protected] " " |
46 | [email protected] | 46 | [email protected] |
47 | [email protected] "b\'b\'_suff" | 47 | [email protected] "b'b'_suff" |
48 | [email protected] ";" | 48 | [email protected] ";" |
49 | [email protected] "\n " | 49 | [email protected] "\n " |
50 | [email protected] | 50 | [email protected] |
diff --git a/crates/syntax/test_data/parser/ok/0032_where_for.rast b/crates/syntax/test_data/parser/ok/0032_where_for.rast index 0cb2eca33..b527cc3ac 100644 --- a/crates/syntax/test_data/parser/ok/0032_where_for.rast +++ b/crates/syntax/test_data/parser/ok/0032_where_for.rast | |||
@@ -42,7 +42,7 @@ [email protected] | |||
42 | [email protected] "<" | 42 | [email protected] "<" |
43 | [email protected] | 43 | [email protected] |
44 | [email protected] | 44 | [email protected] |
45 | [email protected] "\'de" | 45 | [email protected] "'de" |
46 | [email protected] ">" | 46 | [email protected] ">" |
47 | [email protected] " " | 47 | [email protected] " " |
48 | [email protected] | 48 | [email protected] |
@@ -54,7 +54,7 @@ [email protected] | |||
54 | [email protected] "<" | 54 | [email protected] "<" |
55 | [email protected] | 55 | [email protected] |
56 | [email protected] | 56 | [email protected] |
57 | [email protected] "\'de" | 57 | [email protected] "'de" |
58 | [email protected] ">" | 58 | [email protected] ">" |
59 | [email protected] " " | 59 | [email protected] " " |
60 | [email protected] "+" | 60 | [email protected] "+" |
diff --git a/crates/syntax/test_data/parser/ok/0033_label_break.rast b/crates/syntax/test_data/parser/ok/0033_label_break.rast index 487e073ba..4b0f0997e 100644 --- a/crates/syntax/test_data/parser/ok/0033_label_break.rast +++ b/crates/syntax/test_data/parser/ok/0033_label_break.rast | |||
@@ -17,7 +17,7 @@ [email protected] | |||
17 | [email protected] | 17 | [email protected] |
18 | [email protected] | 18 | [email protected] |
19 | [email protected] | 19 | [email protected] |
20 | [email protected] "\'empty_block" | 20 | [email protected] "'empty_block" |
21 | [email protected] ":" | 21 | [email protected] ":" |
22 | [email protected] " " | 22 | [email protected] " " |
23 | [email protected] | 23 | [email protected] |
@@ -28,7 +28,7 @@ [email protected] | |||
28 | [email protected] | 28 | [email protected] |
29 | [email protected] | 29 | [email protected] |
30 | [email protected] | 30 | [email protected] |
31 | [email protected] "\'block" | 31 | [email protected] "'block" |
32 | [email protected] ":" | 32 | [email protected] ":" |
33 | [email protected] " " | 33 | [email protected] " " |
34 | [email protected] | 34 | [email protected] |
@@ -69,7 +69,7 @@ [email protected] | |||
69 | [email protected] "break" | 69 | [email protected] "break" |
70 | [email protected] " " | 70 | [email protected] " " |
71 | [email protected] | 71 | [email protected] |
72 | [email protected] "\'block" | 72 | [email protected] "'block" |
73 | [email protected] ";" | 73 | [email protected] ";" |
74 | [email protected] "\n " | 74 | [email protected] "\n " |
75 | [email protected] "}" | 75 | [email protected] "}" |
@@ -109,7 +109,7 @@ [email protected] | |||
109 | [email protected] "break" | 109 | [email protected] "break" |
110 | [email protected] " " | 110 | [email protected] " " |
111 | [email protected] | 111 | [email protected] |
112 | [email protected] "\'block" | 112 | [email protected] "'block" |
113 | [email protected] ";" | 113 | [email protected] ";" |
114 | [email protected] "\n " | 114 | [email protected] "\n " |
115 | [email protected] "}" | 115 | [email protected] "}" |
@@ -140,7 +140,7 @@ [email protected] | |||
140 | [email protected] | 140 | [email protected] |
141 | [email protected] | 141 | [email protected] |
142 | [email protected] | 142 | [email protected] |
143 | [email protected] "\'block" | 143 | [email protected] "'block" |
144 | [email protected] ":" | 144 | [email protected] ":" |
145 | [email protected] " " | 145 | [email protected] " " |
146 | [email protected] | 146 | [email protected] |
@@ -171,7 +171,7 @@ [email protected] | |||
171 | [email protected] "break" | 171 | [email protected] "break" |
172 | [email protected] " " | 172 | [email protected] " " |
173 | [email protected] | 173 | [email protected] |
174 | [email protected] "\'block" | 174 | [email protected] "'block" |
175 | [email protected] " " | 175 | [email protected] " " |
176 | [email protected] | 176 | [email protected] |
177 | [email protected] "1" | 177 | [email protected] "1" |
@@ -204,7 +204,7 @@ [email protected] | |||
204 | [email protected] "break" | 204 | [email protected] "break" |
205 | [email protected] " " | 205 | [email protected] " " |
206 | [email protected] | 206 | [email protected] |
207 | [email protected] "\'block" | 207 | [email protected] "'block" |
208 | [email protected] " " | 208 | [email protected] " " |
209 | [email protected] | 209 | [email protected] |
210 | [email protected] "2" | 210 | [email protected] "2" |
diff --git a/crates/syntax/test_data/parser/ok/0035_weird_exprs.rast b/crates/syntax/test_data/parser/ok/0035_weird_exprs.rast index 20675dbf5..2fa46ad2d 100644 --- a/crates/syntax/test_data/parser/ok/0035_weird_exprs.rast +++ b/crates/syntax/test_data/parser/ok/0035_weird_exprs.rast | |||
@@ -1378,14 +1378,14 @@ [email protected] | |||
1378 | [email protected] " " | 1378 | [email protected] " " |
1379 | [email protected] "u8" | 1379 | [email protected] "u8" |
1380 | [email protected] "<" | 1380 | [email protected] "<" |
1381 | [email protected] "\'u8" | 1381 | [email protected] "'u8" |
1382 | [email protected] ":" | 1382 | [email protected] ":" |
1383 | [email protected] " " | 1383 | [email protected] " " |
1384 | [email protected] "\'u8" | 1384 | [email protected] "'u8" |
1385 | [email protected] " " | 1385 | [email protected] " " |
1386 | [email protected] "+" | 1386 | [email protected] "+" |
1387 | [email protected] " " | 1387 | [email protected] " " |
1388 | [email protected] "\'u8" | 1388 | [email protected] "'u8" |
1389 | [email protected] ">" | 1389 | [email protected] ">" |
1390 | [email protected] | 1390 | [email protected] |
1391 | [email protected] "(" | 1391 | [email protected] "(" |
@@ -1393,7 +1393,7 @@ [email protected] | |||
1393 | [email protected] ":" | 1393 | [email protected] ":" |
1394 | [email protected] " " | 1394 | [email protected] " " |
1395 | [email protected] "&" | 1395 | [email protected] "&" |
1396 | [email protected] "\'u8" | 1396 | [email protected] "'u8" |
1397 | [email protected] " " | 1397 | [email protected] " " |
1398 | [email protected] "u8" | 1398 | [email protected] "u8" |
1399 | [email protected] ")" | 1399 | [email protected] ")" |
@@ -1402,7 +1402,7 @@ [email protected] | |||
1402 | [email protected] ">" | 1402 | [email protected] ">" |
1403 | [email protected] " " | 1403 | [email protected] " " |
1404 | [email protected] "&" | 1404 | [email protected] "&" |
1405 | [email protected] "\'u8" | 1405 | [email protected] "'u8" |
1406 | [email protected] " " | 1406 | [email protected] " " |
1407 | [email protected] "u8" | 1407 | [email protected] "u8" |
1408 | [email protected] " " | 1408 | [email protected] " " |
@@ -1574,7 +1574,7 @@ [email protected] | |||
1574 | [email protected] "<" | 1574 | [email protected] "<" |
1575 | [email protected] | 1575 | [email protected] |
1576 | [email protected] | 1576 | [email protected] |
1577 | [email protected] "\'union" | 1577 | [email protected] "'union" |
1578 | [email protected] ">" | 1578 | [email protected] ">" |
1579 | [email protected] " " | 1579 | [email protected] " " |
1580 | [email protected] | 1580 | [email protected] |
@@ -1588,7 +1588,7 @@ [email protected] | |||
1588 | [email protected] | 1588 | [email protected] |
1589 | [email protected] "&" | 1589 | [email protected] "&" |
1590 | [email protected] | 1590 | [email protected] |
1591 | [email protected] "\'union" | 1591 | [email protected] "'union" |
1592 | [email protected] " " | 1592 | [email protected] " " |
1593 | [email protected] | 1593 | [email protected] |
1594 | [email protected] | 1594 | [email protected] |
@@ -1599,7 +1599,7 @@ [email protected] | |||
1599 | [email protected] "<" | 1599 | [email protected] "<" |
1600 | [email protected] | 1600 | [email protected] |
1601 | [email protected] | 1601 | [email protected] |
1602 | [email protected] "\'union" | 1602 | [email protected] "'union" |
1603 | [email protected] ">" | 1603 | [email protected] ">" |
1604 | [email protected] "," | 1604 | [email protected] "," |
1605 | [email protected] " " | 1605 | [email protected] " " |
@@ -1681,7 +1681,7 @@ [email protected] | |||
1681 | [email protected] "\"\\\\\"" | 1681 | [email protected] "\"\\\\\"" |
1682 | [email protected] "," | 1682 | [email protected] "," |
1683 | [email protected] | 1683 | [email protected] |
1684 | [email protected] "\'🤔\'" | 1684 | [email protected] "'🤔'" |
1685 | [email protected] ")" | 1685 | [email protected] ")" |
1686 | [email protected] "/**/" | 1686 | [email protected] "/**/" |
1687 | [email protected] "," | 1687 | [email protected] "," |
diff --git a/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast b/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast index f935a0df5..a7f0f7bc6 100644 --- a/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast +++ b/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast | |||
@@ -181,7 +181,7 @@ [email protected] | |||
181 | [email protected] "<" | 181 | [email protected] "<" |
182 | [email protected] | 182 | [email protected] |
183 | [email protected] | 183 | [email protected] |
184 | [email protected] "\'a" | 184 | [email protected] "'a" |
185 | [email protected] ">" | 185 | [email protected] ">" |
186 | [email protected] ")" | 186 | [email protected] ")" |
187 | [email protected] ">" | 187 | [email protected] ">" |
@@ -359,7 +359,7 @@ [email protected] | |||
359 | [email protected] "<" | 359 | [email protected] "<" |
360 | [email protected] | 360 | [email protected] |
361 | [email protected] | 361 | [email protected] |
362 | [email protected] "\'a" | 362 | [email protected] "'a" |
363 | [email protected] ">" | 363 | [email protected] ">" |
364 | [email protected] | 364 | [email protected] |
365 | [email protected] "(" | 365 | [email protected] "(" |
@@ -394,7 +394,7 @@ [email protected] | |||
394 | [email protected] "<" | 394 | [email protected] "<" |
395 | [email protected] | 395 | [email protected] |
396 | [email protected] | 396 | [email protected] |
397 | [email protected] "\'a" | 397 | [email protected] "'a" |
398 | [email protected] ">" | 398 | [email protected] ">" |
399 | [email protected] | 399 | [email protected] |
400 | [email protected] "(" | 400 | [email protected] "(" |
@@ -411,7 +411,7 @@ [email protected] | |||
411 | [email protected] " " | 411 | [email protected] " " |
412 | [email protected] "&" | 412 | [email protected] "&" |
413 | [email protected] | 413 | [email protected] |
414 | [email protected] "\'a" | 414 | [email protected] "'a" |
415 | [email protected] " " | 415 | [email protected] " " |
416 | [email protected] | 416 | [email protected] |
417 | [email protected] "self" | 417 | [email protected] "self" |
@@ -430,7 +430,7 @@ [email protected] | |||
430 | [email protected] "<" | 430 | [email protected] "<" |
431 | [email protected] | 431 | [email protected] |
432 | [email protected] | 432 | [email protected] |
433 | [email protected] "\'a" | 433 | [email protected] "'a" |
434 | [email protected] ">" | 434 | [email protected] ">" |
435 | [email protected] | 435 | [email protected] |
436 | [email protected] "(" | 436 | [email protected] "(" |
@@ -447,7 +447,7 @@ [email protected] | |||
447 | [email protected] " " | 447 | [email protected] " " |
448 | [email protected] "&" | 448 | [email protected] "&" |
449 | [email protected] | 449 | [email protected] |
450 | [email protected] "\'a" | 450 | [email protected] "'a" |
451 | [email protected] " " | 451 | [email protected] " " |
452 | [email protected] "mut" | 452 | [email protected] "mut" |
453 | [email protected] " " | 453 | [email protected] " " |
diff --git a/crates/syntax/test_data/parser/ok/0067_where_for_pred.rast b/crates/syntax/test_data/parser/ok/0067_where_for_pred.rast index 325e9e655..79e2b2867 100644 --- a/crates/syntax/test_data/parser/ok/0067_where_for_pred.rast +++ b/crates/syntax/test_data/parser/ok/0067_where_for_pred.rast | |||
@@ -23,7 +23,7 @@ [email protected] | |||
23 | [email protected] "<" | 23 | [email protected] "<" |
24 | [email protected] | 24 | [email protected] |
25 | [email protected] | 25 | [email protected] |
26 | [email protected] "\'a" | 26 | [email protected] "'a" |
27 | [email protected] ">" | 27 | [email protected] ">" |
28 | [email protected] " " | 28 | [email protected] " " |
29 | [email protected] | 29 | [email protected] |
@@ -46,7 +46,7 @@ [email protected] | |||
46 | [email protected] | 46 | [email protected] |
47 | [email protected] "&" | 47 | [email protected] "&" |
48 | [email protected] | 48 | [email protected] |
49 | [email protected] "\'a" | 49 | [email protected] "'a" |
50 | [email protected] " " | 50 | [email protected] " " |
51 | [email protected] | 51 | [email protected] |
52 | [email protected] | 52 | [email protected] |
@@ -85,13 +85,13 @@ [email protected] | |||
85 | [email protected] "<" | 85 | [email protected] "<" |
86 | [email protected] | 86 | [email protected] |
87 | [email protected] | 87 | [email protected] |
88 | [email protected] "\'a" | 88 | [email protected] "'a" |
89 | [email protected] ">" | 89 | [email protected] ">" |
90 | [email protected] " " | 90 | [email protected] " " |
91 | [email protected] | 91 | [email protected] |
92 | [email protected] "&" | 92 | [email protected] "&" |
93 | [email protected] | 93 | [email protected] |
94 | [email protected] "\'a" | 94 | [email protected] "'a" |
95 | [email protected] " " | 95 | [email protected] " " |
96 | [email protected] | 96 | [email protected] |
97 | [email protected] | 97 | [email protected] |
@@ -138,7 +138,7 @@ [email protected] | |||
138 | [email protected] "<" | 138 | [email protected] "<" |
139 | [email protected] | 139 | [email protected] |
140 | [email protected] | 140 | [email protected] |
141 | [email protected] "\'a" | 141 | [email protected] "'a" |
142 | [email protected] ">" | 142 | [email protected] ">" |
143 | [email protected] " " | 143 | [email protected] " " |
144 | [email protected] | 144 | [email protected] |
@@ -146,7 +146,7 @@ [email protected] | |||
146 | [email protected] | 146 | [email protected] |
147 | [email protected] "&" | 147 | [email protected] "&" |
148 | [email protected] | 148 | [email protected] |
149 | [email protected] "\'a" | 149 | [email protected] "'a" |
150 | [email protected] " " | 150 | [email protected] " " |
151 | [email protected] | 151 | [email protected] |
152 | [email protected] | 152 | [email protected] |
@@ -169,7 +169,7 @@ [email protected] | |||
169 | [email protected] | 169 | [email protected] |
170 | [email protected] "&" | 170 | [email protected] "&" |
171 | [email protected] | 171 | [email protected] |
172 | [email protected] "\'a" | 172 | [email protected] "'a" |
173 | [email protected] " " | 173 | [email protected] " " |
174 | [email protected] | 174 | [email protected] |
175 | [email protected] | 175 | [email protected] |
@@ -208,7 +208,7 @@ [email protected] | |||
208 | [email protected] "<" | 208 | [email protected] "<" |
209 | [email protected] | 209 | [email protected] |
210 | [email protected] | 210 | [email protected] |
211 | [email protected] "\'a" | 211 | [email protected] "'a" |
212 | [email protected] ">" | 212 | [email protected] ">" |
213 | [email protected] " " | 213 | [email protected] " " |
214 | [email protected] | 214 | [email protected] |
@@ -216,7 +216,7 @@ [email protected] | |||
216 | [email protected] | 216 | [email protected] |
217 | [email protected] "&" | 217 | [email protected] "&" |
218 | [email protected] | 218 | [email protected] |
219 | [email protected] "\'a" | 219 | [email protected] "'a" |
220 | [email protected] " " | 220 | [email protected] " " |
221 | [email protected] | 221 | [email protected] |
222 | [email protected] | 222 | [email protected] |
@@ -277,7 +277,7 @@ [email protected] | |||
277 | [email protected] "<" | 277 | [email protected] "<" |
278 | [email protected] | 278 | [email protected] |
279 | [email protected] | 279 | [email protected] |
280 | [email protected] "\'a" | 280 | [email protected] "'a" |
281 | [email protected] ">" | 281 | [email protected] ">" |
282 | [email protected] " " | 282 | [email protected] " " |
283 | [email protected] | 283 | [email protected] |
@@ -288,7 +288,7 @@ [email protected] | |||
288 | [email protected] | 288 | [email protected] |
289 | [email protected] "&" | 289 | [email protected] "&" |
290 | [email protected] | 290 | [email protected] |
291 | [email protected] "\'a" | 291 | [email protected] "'a" |
292 | [email protected] " " | 292 | [email protected] " " |
293 | [email protected] | 293 | [email protected] |
294 | [email protected] | 294 | [email protected] |
@@ -348,7 +348,7 @@ [email protected] | |||
348 | [email protected] "<" | 348 | [email protected] "<" |
349 | [email protected] | 349 | [email protected] |
350 | [email protected] | 350 | [email protected] |
351 | [email protected] "\'a" | 351 | [email protected] "'a" |
352 | [email protected] ">" | 352 | [email protected] ">" |
353 | [email protected] " " | 353 | [email protected] " " |
354 | [email protected] | 354 | [email protected] |
@@ -357,7 +357,7 @@ [email protected] | |||
357 | [email protected] "<" | 357 | [email protected] "<" |
358 | [email protected] | 358 | [email protected] |
359 | [email protected] | 359 | [email protected] |
360 | [email protected] "\'b" | 360 | [email protected] "'b" |
361 | [email protected] ">" | 361 | [email protected] ">" |
362 | [email protected] " " | 362 | [email protected] " " |
363 | [email protected] | 363 | [email protected] |
@@ -368,7 +368,7 @@ [email protected] | |||
368 | [email protected] | 368 | [email protected] |
369 | [email protected] "&" | 369 | [email protected] "&" |
370 | [email protected] | 370 | [email protected] |
371 | [email protected] "\'a" | 371 | [email protected] "'a" |
372 | [email protected] " " | 372 | [email protected] " " |
373 | [email protected] | 373 | [email protected] |
374 | [email protected] | 374 | [email protected] |
@@ -381,7 +381,7 @@ [email protected] | |||
381 | [email protected] | 381 | [email protected] |
382 | [email protected] "&" | 382 | [email protected] "&" |
383 | [email protected] | 383 | [email protected] |
384 | [email protected] "\'b" | 384 | [email protected] "'b" |
385 | [email protected] " " | 385 | [email protected] " " |
386 | [email protected] | 386 | [email protected] |
387 | [email protected] | 387 | [email protected] |
diff --git a/crates/syntax/test_data/parser/ok/0069_multi_trait_object.rast b/crates/syntax/test_data/parser/ok/0069_multi_trait_object.rast index 8d3e187ae..026c776e2 100644 --- a/crates/syntax/test_data/parser/ok/0069_multi_trait_object.rast +++ b/crates/syntax/test_data/parser/ok/0069_multi_trait_object.rast | |||
@@ -8,7 +8,7 @@ [email protected] | |||
8 | [email protected] "<" | 8 | [email protected] "<" |
9 | [email protected] | 9 | [email protected] |
10 | [email protected] | 10 | [email protected] |
11 | [email protected] "\'a" | 11 | [email protected] "'a" |
12 | [email protected] ">" | 12 | [email protected] ">" |
13 | [email protected] " " | 13 | [email protected] " " |
14 | [email protected] "=" | 14 | [email protected] "=" |
@@ -16,7 +16,7 @@ [email protected] | |||
16 | [email protected] | 16 | [email protected] |
17 | [email protected] "&" | 17 | [email protected] "&" |
18 | [email protected] | 18 | [email protected] |
19 | [email protected] "\'a" | 19 | [email protected] "'a" |
20 | [email protected] " " | 20 | [email protected] " " |
21 | [email protected] | 21 | [email protected] |
22 | [email protected] "(" | 22 | [email protected] "(" |
@@ -112,7 +112,7 @@ [email protected] | |||
112 | [email protected] " " | 112 | [email protected] " " |
113 | [email protected] | 113 | [email protected] |
114 | [email protected] | 114 | [email protected] |
115 | [email protected] "\'static" | 115 | [email protected] "'static" |
116 | [email protected] ")" | 116 | [email protected] ")" |
117 | [email protected] ";" | 117 | [email protected] ";" |
118 | [email protected] "\n" | 118 | [email protected] "\n" |
diff --git a/crates/vfs/src/vfs_path.rs b/crates/vfs/src/vfs_path.rs index 2b3d7fd84..ef2d7657a 100644 --- a/crates/vfs/src/vfs_path.rs +++ b/crates/vfs/src/vfs_path.rs | |||
@@ -389,7 +389,7 @@ impl VirtualPath { | |||
389 | 389 | ||
390 | match (file_stem, extension) { | 390 | match (file_stem, extension) { |
391 | (None, None) => None, | 391 | (None, None) => None, |
392 | (None, Some(_)) | (Some(""), Some(_)) => Some((file_name, None)), | 392 | (None | Some(""), Some(_)) => Some((file_name, None)), |
393 | (Some(file_stem), extension) => Some((file_stem, extension)), | 393 | (Some(file_stem), extension) => Some((file_stem, extension)), |
394 | } | 394 | } |
395 | } | 395 | } |
diff --git a/xtask/src/install.rs b/xtask/src/install.rs index 7e2dccdfe..64ab12b42 100644 --- a/xtask/src/install.rs +++ b/xtask/src/install.rs | |||
@@ -8,7 +8,7 @@ use xshell::{cmd, pushd}; | |||
8 | use crate::flags; | 8 | use crate::flags; |
9 | 9 | ||
10 | // Latest stable, feel free to send a PR if this lags behind. | 10 | // Latest stable, feel free to send a PR if this lags behind. |
11 | const REQUIRED_RUST_VERSION: u32 = 52; | 11 | const REQUIRED_RUST_VERSION: u32 = 53; |
12 | 12 | ||
13 | impl flags::Install { | 13 | impl flags::Install { |
14 | pub(crate) fn run(self) -> Result<()> { | 14 | pub(crate) fn run(self) -> Result<()> { |