rust/compiler/rustc_parse/src/parser
bors de4b242e1e Auto merge of #91149 - notriddle:notriddle/rustdoc-doctest-semicolon, r=jyn514
fix(doctest): detect extern crate items in statement doctests

This partially reverts #91026, because rustdoc needs to detect the extern statements, even when they appear inside implicit `main()`. It does not entirely revert it, so the old bug is still fixed, by duplicating some of the logic from `parse_mod` instead of trying to use it directly.

Fixes #91134
2021-11-23 23:48:55 +00:00
..
attr.rs Provide more context on incorrect inner attribute 2021-09-02 19:08:30 +00:00
attr_wrapper.rs Change more x64 size checks to not apply to x32. 2021-09-05 16:42:36 +01:00
diagnostics.rs fix(doctest): detect extern crate items in statement doctests 2021-11-22 19:47:58 -07:00
expr.rs Split inline const to two feature gates 2021-11-22 22:17:03 +00:00
generics.rs Require passing an AttrWrapper to collect_tokens_trailing_token 2021-02-13 12:07:15 -05:00
item.rs ast: Fix naming conventions in AST structures 2021-11-07 21:38:17 +08:00
mod.rs Split inline const to two feature gates 2021-11-22 22:17:03 +00:00
nonterminal.rs Use if-let guards in the codebase 2021-08-25 20:24:35 +02:00
pat.rs Split inline const to two feature gates 2021-11-22 22:17:03 +00:00
path.rs Improve error messages for bad type constraints 2021-09-28 13:02:45 -07:00
stmt.rs Rollup merge of #89974 - est31:let_else_if_error, r=nagisa 2021-10-18 08:13:27 +02:00
ty.rs Some "parenthesis" and "parentheses" fixes 2021-10-17 12:04:01 +02:00