You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[diag("unicode codepoint changing visible direction of text present in comment")]
3024
-
#[note(
3025
-
"these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen"
3026
-
)]
3027
-
pub(crate)structUnicodeTextFlow{
3028
-
#[label(
3029
-
"{$num_codepoints ->
3030
-
[1] this comment contains an invisible unicode text flow control codepoint
3031
-
*[other] this comment contains invisible unicode text flow control codepoints
3032
-
}"
3033
-
)]
3034
-
pubcomment_span:Span,
3035
-
#[subdiagnostic]
3036
-
pubcharacters:Vec<UnicodeCharNoteSub>,
3037
-
#[subdiagnostic]
3038
-
pubsuggestions:Option<UnicodeTextFlowSuggestion>,
3039
-
3040
-
pubnum_codepoints:usize,
3041
-
}
3042
-
3043
-
#[derive(Subdiagnostic)]
3044
-
#[label("{$c_debug}")]
3045
-
pub(crate)structUnicodeCharNoteSub{
3046
-
#[primary_span]
3047
-
pubspan:Span,
3048
-
pubc_debug:String,
3049
-
}
3050
-
3051
-
#[derive(Subdiagnostic)]
3052
-
#[multipart_suggestion(
3053
-
"if their presence wasn't intentional, you can remove them",
3054
-
applicability = "machine-applicable",
3055
-
style = "hidden"
3056
-
)]
3057
-
pub(crate)structUnicodeTextFlowSuggestion{
3058
-
#[suggestion_part(code = "")]
3059
-
pubspans:Vec<Span>,
3060
-
}
3061
-
3062
3022
#[derive(Diagnostic)]
3063
3023
#[diag(
3064
3024
"absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition"
"insert whitespace here to avoid this being parsed as a prefix in Rust 2021",
4528
+
code = " ",
4529
+
applicability = "machine-applicable"
4530
+
)]
4531
+
pubsuggestion:Span,
4532
+
}
4533
+
4534
+
#[derive(Diagnostic)]
4535
+
#[diag("unicode codepoint changing visible direction of text present in comment")]
4536
+
#[note(
4537
+
"these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen"
4538
+
)]
4539
+
pub(crate)structUnicodeTextFlow{
4540
+
#[label(
4541
+
"{$num_codepoints ->
4542
+
[1] this comment contains an invisible unicode text flow control codepoint
4543
+
*[other] this comment contains invisible unicode text flow control codepoints
4544
+
}"
4545
+
)]
4546
+
pubcomment_span:Span,
4547
+
#[subdiagnostic]
4548
+
pubcharacters:Vec<UnicodeCharNoteSub>,
4549
+
#[subdiagnostic]
4550
+
pubsuggestions:Option<UnicodeTextFlowSuggestion>,
4551
+
4552
+
pubnum_codepoints:usize,
4553
+
}
4554
+
4555
+
#[derive(Subdiagnostic)]
4556
+
#[label("{$c_debug}")]
4557
+
pub(crate)structUnicodeCharNoteSub{
4558
+
#[primary_span]
4559
+
pubspan:Span,
4560
+
pubc_debug:String,
4561
+
}
4562
+
4563
+
#[derive(Subdiagnostic)]
4564
+
#[multipart_suggestion(
4565
+
"if their presence wasn't intentional, you can remove them",
4566
+
applicability = "machine-applicable",
4567
+
style = "hidden"
4568
+
)]
4569
+
pub(crate)structUnicodeTextFlowSuggestion{
4570
+
#[suggestion_part(code = "")]
4571
+
pubspans:Vec<Span>,
4572
+
}
4573
+
4574
+
#[derive(Diagnostic)]
4575
+
#[diag("prefix `{$prefix}` is unknown")]
4576
+
pub(crate)structReservedPrefix{
4577
+
#[label("unknown prefix")]
4578
+
publabel:Span,
4579
+
#[suggestion(
4580
+
"insert whitespace here to avoid this being parsed as a prefix in Rust 2021",
4581
+
code = " ",
4582
+
applicability = "machine-applicable"
4583
+
)]
4584
+
pubsuggestion:Span,
4585
+
4586
+
pubprefix:String,
4587
+
}
4588
+
4589
+
#[derive(Diagnostic)]
4590
+
#[diag("will be parsed as a guarded string in Rust 2024")]
4591
+
pub(crate)structReservedStringLint{
4592
+
#[suggestion(
4593
+
"insert whitespace here to avoid this being parsed as a guarded string in Rust 2024",
4594
+
code = " ",
4595
+
applicability = "machine-applicable"
4596
+
)]
4597
+
pubsuggestion:Span,
4598
+
}
4599
+
4600
+
#[derive(Diagnostic)]
4601
+
#[diag("reserved token in Rust 2024")]
4602
+
pub(crate)structReservedMultihashLint{
4603
+
#[suggestion(
4604
+
"insert whitespace here to avoid this being parsed as a forbidden token in Rust 2024",
0 commit comments