mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-31 07:37:30 +00:00
Remove cross-crate marks
They create quite a bit of friction. Really, we should just move the tests to the same crate, rather than paper over existing split.
This commit is contained in:
parent
d18d1c0594
commit
5258c817f7
7 changed files with 4 additions and 45 deletions
|
@ -30,12 +30,6 @@ use std::sync::atomic::{AtomicUsize, Ordering};
|
|||
|
||||
#[macro_export]
|
||||
macro_rules! tested_by {
|
||||
($ident:ident; force) => {{
|
||||
{
|
||||
// sic! use call-site crate
|
||||
crate::marks::$ident.fetch_add(1, std::sync::atomic::Ordering::SeqCst);
|
||||
}
|
||||
}};
|
||||
($ident:ident) => {{
|
||||
#[cfg(test)]
|
||||
{
|
||||
|
@ -49,10 +43,7 @@ macro_rules! tested_by {
|
|||
macro_rules! covers {
|
||||
// sic! use call-site crate
|
||||
($ident:ident) => {
|
||||
$crate::covers!(crate::$ident)
|
||||
};
|
||||
($krate:ident :: $ident:ident) => {
|
||||
let _checker = $crate::marks::MarkChecker::new(&$krate::marks::$ident);
|
||||
let _checker = $crate::marks::MarkChecker::new(&crate::marks::$ident);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue