mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Use upstream cov-mark
This commit is contained in:
parent
c5189a22cc
commit
fc9eed4836
101 changed files with 354 additions and 514 deletions
|
@ -17,7 +17,6 @@ mod benchmark;
|
|||
|
||||
use std::fmt;
|
||||
|
||||
use test_utils::mark;
|
||||
pub use tt::{Delimiter, DelimiterKind, Punct};
|
||||
|
||||
use crate::{
|
||||
|
@ -217,7 +216,7 @@ impl MacroDef {
|
|||
let mut rules = Vec::new();
|
||||
|
||||
if Some(tt::DelimiterKind::Brace) == tt.delimiter_kind() {
|
||||
mark::hit!(parse_macro_def_rules);
|
||||
cov_mark::hit!(parse_macro_def_rules);
|
||||
while src.len() > 0 {
|
||||
let rule = Rule::parse(&mut src, true)?;
|
||||
rules.push(rule);
|
||||
|
@ -229,7 +228,7 @@ impl MacroDef {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
mark::hit!(parse_macro_def_simple);
|
||||
cov_mark::hit!(parse_macro_def_simple);
|
||||
let rule = Rule::parse(&mut src, false)?;
|
||||
if src.len() != 0 {
|
||||
return Err(ParseError::Expected("remain tokens in macro def".to_string()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue