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 | |---|---| |  |  |
This commit is contained in:
commit
d783ea0c0e
3 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@ pub enum Delimiter {
|
||||||
Brace,
|
Brace,
|
||||||
/// `[ ... ]`
|
/// `[ ... ]`
|
||||||
Bracket,
|
Bracket,
|
||||||
/// `Ø ... Ø`
|
/// `∅ ... ∅`
|
||||||
/// An invisible delimiter, that may, for example, appear around tokens coming from a
|
/// An invisible delimiter, that may, for example, appear around tokens coming from a
|
||||||
/// "macro variable" `$var`. It is important to preserve operator priorities in cases like
|
/// "macro variable" `$var`. It is important to preserve operator priorities in cases like
|
||||||
/// `$var * 3` where `$var` is `1 + 2`.
|
/// `$var * 3` where `$var` is `1 + 2`.
|
||||||
|
|
|
@ -1063,7 +1063,7 @@ impl<'a> Parser<'a> {
|
||||||
/// Parses a `UseTreeKind::Nested(list)`.
|
/// Parses a `UseTreeKind::Nested(list)`.
|
||||||
///
|
///
|
||||||
/// ```text
|
/// ```text
|
||||||
/// USE_TREE_LIST = Ø | (USE_TREE `,`)* USE_TREE [`,`]
|
/// USE_TREE_LIST = ∅ | (USE_TREE `,`)* USE_TREE [`,`]
|
||||||
/// ```
|
/// ```
|
||||||
fn parse_use_tree_list(&mut self) -> PResult<'a, ThinVec<(UseTree, ast::NodeId)>> {
|
fn parse_use_tree_list(&mut self) -> PResult<'a, ThinVec<(UseTree, ast::NodeId)>> {
|
||||||
self.parse_delim_comma_seq(Delimiter::Brace, |p| {
|
self.parse_delim_comma_seq(Delimiter::Brace, |p| {
|
||||||
|
|
|
@ -811,7 +811,7 @@ pub enum Delimiter {
|
||||||
/// `[ ... ]`
|
/// `[ ... ]`
|
||||||
#[stable(feature = "proc_macro_lib2", since = "1.29.0")]
|
#[stable(feature = "proc_macro_lib2", since = "1.29.0")]
|
||||||
Bracket,
|
Bracket,
|
||||||
/// `Ø ... Ø`
|
/// `∅ ... ∅`
|
||||||
/// An invisible delimiter, that may, for example, appear around tokens coming from a
|
/// An invisible delimiter, that may, for example, appear around tokens coming from a
|
||||||
/// "macro variable" `$var`. It is important to preserve operator priorities in cases like
|
/// "macro variable" `$var`. It is important to preserve operator priorities in cases like
|
||||||
/// `$var * 3` where `$var` is `1 + 2`.
|
/// `$var * 3` where `$var` is `1 + 2`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue