mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Add support for Rust 2021.
This commit is contained in:
parent
56a7bf7ede
commit
4833972067
6 changed files with 12 additions and 6 deletions
|
@ -230,7 +230,7 @@ impl TestAttr {
|
|||
|
||||
const RUSTDOC_FENCE: &str = "```";
|
||||
const RUSTDOC_CODE_BLOCK_ATTRIBUTES_RUNNABLE: &[&str] =
|
||||
&["", "rust", "should_panic", "edition2015", "edition2018"];
|
||||
&["", "rust", "should_panic", "edition2015", "edition2018", "edition2021"];
|
||||
|
||||
fn has_runnable_doc_test(attrs: &hir::Attrs) -> bool {
|
||||
attrs.docs().map_or(false, |doc| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue