mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
minor: simplify
This commit is contained in:
parent
a1940d8c75
commit
dec207f56a
6 changed files with 18 additions and 35 deletions
|
@ -15,9 +15,7 @@ pub(super) fn macro_error(ctx: &DiagnosticsContext<'_>, d: &hir::MacroError) ->
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{
|
||||
diagnostics::tests::{
|
||||
check_diagnostics, check_diagnostics_with_config, check_no_diagnostics,
|
||||
},
|
||||
diagnostics::tests::{check_diagnostics, check_diagnostics_with_config},
|
||||
DiagnosticsConfig,
|
||||
};
|
||||
|
||||
|
@ -77,7 +75,7 @@ macro_rules! concat { () => {} }
|
|||
fn register_attr_and_tool() {
|
||||
cov_mark::check!(register_attr);
|
||||
cov_mark::check!(register_tool);
|
||||
check_no_diagnostics(
|
||||
check_diagnostics(
|
||||
r#"
|
||||
#![register_tool(tool)]
|
||||
#![register_attr(attr)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue