Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit df57f7b

Browse files
committedOct 26, 2022
Auto merge of #103604 - JohnTitor:rollup-q4ns2gh, r=JohnTitor
Rollup of 10 pull requests Successful merges: - #103432 (rustdoc: don't mark Box<T> as Iterator, Read, etc) - #103526 (More dupe typos again) - #103537 (rustdoc: combine shared CSS between `.*-line-numbers`) - #103549 (llvm-16: Don't initialize removed legacy passes) - #103558 (Update cargo) - #103567 (ptr::eq: clarify that comparing dyn Trait is fragile) - #103579 (:arrow_up: rust-analyzer) - #103580 (Fix typo in docs for `guaranteed_ne`) - #103596 (thread::set_name: debug-assert that things went well) - #103598 (rustc_lexer::TokenKind improve docs) Failed merges: - #103585 (Migrate source line numbers CSS to CSS variables) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 1898c34 + 132883e commit df57f7b

File tree

77 files changed

+2337
-1676
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+2337
-1676
lines changed
 

‎compiler/rustc_lexer/src/lib.rs

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,29 +57,42 @@ pub enum TokenKind {
5757
// Multi-char tokens:
5858
/// "// comment"
5959
LineComment { doc_style: Option<DocStyle> },
60+
6061
/// `/* block comment */`
6162
///
62-
/// Block comments can be recursive, so the sequence like `/* /* */`
63+
/// Block comments can be recursive, so a sequence like `/* /* */`
6364
/// will not be considered terminated and will result in a parsing error.
6465
BlockComment { doc_style: Option<DocStyle>, terminated: bool },
65-
/// Any whitespace characters sequence.
66+
67+
/// Any whitespace character sequence.
6668
Whitespace,
69+
6770
/// "ident" or "continue"
68-
/// At this step keywords are also considered identifiers.
71+
///
72+
/// At this step, keywords are also considered identifiers.
6973
Ident,
74+
7075
/// Like the above, but containing invalid unicode codepoints.
7176
InvalidIdent,
77+
7278
/// "r#ident"
7379
RawIdent,
74-
/// An unknown prefix like `foo#`, `foo'`, `foo"`. Note that only the
80+
81+
/// An unknown prefix, like `foo#`, `foo'`, `foo"`.
82+
///
83+
/// Note that only the
7584
/// prefix (`foo`) is included in the token, not the separator (which is
7685
/// lexed as its own distinct token). In Rust 2021 and later, reserved
7786
/// prefixes are reported as errors; in earlier editions, they result in a
7887
/// (allowed by default) lint, and are treated as regular identifier
7988
/// tokens.
8089
UnknownPrefix,
81-
/// "12_u8", "1.0e-40", "b"123"". See `LiteralKind` for more details.
90+
91+
/// Examples: `"12_u8"`, `"1.0e-40"`, `b"123`.
92+
///
93+
/// See [LiteralKind] for more details.
8294
Literal { kind: LiteralKind, suffix_start: u32 },
95+
8396
/// "'a"
8497
Lifetime { starts_with_number: bool },
8598

‎compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ extern "C" void LLVMInitializePasses() {
6969
initializeAnalysis(Registry);
7070
initializeTransformUtils(Registry);
7171
initializeInstCombine(Registry);
72+
#if LLVM_VERSION_LT(16, 0)
7273
initializeInstrumentation(Registry);
74+
#endif
7375
initializeTarget(Registry);
7476
}
7577

0 commit comments

Comments
 (0)
Please sign in to comment.