Skip to content

Commit d783ea0

Browse files
authored
Rollup merge of #124051 - dtolnay:emptyset, r=compiler-errors
Fix empty-set symbol in comments The symbol in the original code is U+00D8 "LATIN CAPITAL LETTER O WITH STROKE" (https://en.wikipedia.org/wiki/%C3%98) which is an uppercase letter in Danish, Norwegian, Faroese, and Southern Sámi alphabets. The symbol that was intended is U+2205 "EMPTY SET" (https://en.wikipedia.org/wiki/Empty_set#Notation). | Before | After | |---|---| | ![Screenshot from 2024-04-16 18-25-01](https://github.com/rust-lang/rust/assets/1940490/9b8b0624-cfa5-4b89-84e5-4c2b39c2cb8f) | ![Screenshot from 2024-04-16 18-25-05](https://github.com/rust-lang/rust/assets/1940490/6f6b34c3-0e47-4ba0-856d-be1dc164c94c) |
2 parents 1134f44 + e480cab commit d783ea0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_ast/src/token.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub enum Delimiter {
5151
Brace,
5252
/// `[ ... ]`
5353
Bracket,
54-
/// `Ø ... Ø`
54+
/// ` ... `
5555
/// An invisible delimiter, that may, for example, appear around tokens coming from a
5656
/// "macro variable" `$var`. It is important to preserve operator priorities in cases like
5757
/// `$var * 3` where `$var` is `1 + 2`.

compiler/rustc_parse/src/parser/item.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ impl<'a> Parser<'a> {
10631063
/// Parses a `UseTreeKind::Nested(list)`.
10641064
///
10651065
/// ```text
1066-
/// USE_TREE_LIST = Ø | (USE_TREE `,`)* USE_TREE [`,`]
1066+
/// USE_TREE_LIST = | (USE_TREE `,`)* USE_TREE [`,`]
10671067
/// ```
10681068
fn parse_use_tree_list(&mut self) -> PResult<'a, ThinVec<(UseTree, ast::NodeId)>> {
10691069
self.parse_delim_comma_seq(Delimiter::Brace, |p| {

library/proc_macro/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ pub enum Delimiter {
811811
/// `[ ... ]`
812812
#[stable(feature = "proc_macro_lib2", since = "1.29.0")]
813813
Bracket,
814-
/// `Ø ... Ø`
814+
/// ` ... `
815815
/// An invisible delimiter, that may, for example, appear around tokens coming from a
816816
/// "macro variable" `$var`. It is important to preserve operator priorities in cases like
817817
/// `$var * 3` where `$var` is `1 + 2`.

0 commit comments

Comments
 (0)