Skip to content

Commit cc6f8d8

Browse files
committed
fix: Removed macro_export from visitor macros
1 parent 3bbf476 commit cc6f8d8

4 files changed

Lines changed: 4 additions & 7 deletions

File tree

rusty_linter/src/core/visitor.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use rusty_common::{Position, Positioned};
22
use rusty_parser::*;
33

4-
use crate::delegate_visitor;
54
use crate::LintErrorPos;
65

76
/// The result of a visitor.
@@ -225,7 +224,6 @@ where
225224

226225
/// Creates a no-op visitor implementation
227226
/// for the given types.
228-
#[macro_export]
229227
macro_rules! no_op_visitor {
230228
($visitor_name: ident: $($types:tt),+) => {
231229
$(
@@ -238,7 +236,6 @@ macro_rules! no_op_visitor {
238236
};
239237
}
240238

241-
#[macro_export]
242239
macro_rules! no_pos_visitor {
243240
($visitor_name: ident) => {
244241
impl SetPosition for $visitor_name {
@@ -248,7 +245,6 @@ macro_rules! no_pos_visitor {
248245
}
249246

250247
/// Creates a visitor that delegates to another.
251-
#[macro_export]
252248
macro_rules! delegate_visitor {
253249
($(#[$($attrss:tt)*])* $name: ident) => {
254250
$(#[$($attrss)*])*
@@ -278,3 +274,7 @@ macro_rules! delegate_visitor {
278274
}
279275
};
280276
}
277+
278+
pub(crate) use delegate_visitor;
279+
pub(crate) use no_op_visitor;
280+
pub(crate) use no_pos_visitor;

rusty_linter/src/post_linter/dots_linter.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use rusty_common::*;
33
use rusty_parser::*;
44

55
use crate::core::*;
6-
use crate::{no_op_visitor, no_pos_visitor};
76
use std::collections::HashSet;
87

98
/// In QBasic, if you have anywhere in the program a variable of user defined type,

rusty_linter/src/post_linter/for_next_counter_match_linter.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use crate::core::*;
2-
use crate::{no_op_visitor, no_pos_visitor};
32
use rusty_common::*;
43
use rusty_parser::*;
54

rusty_linter/src/post_linter/print_linter.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use crate::core::*;
2-
use crate::{no_op_visitor, no_pos_visitor};
32
use rusty_common::*;
43
use rusty_parser::*;
54

0 commit comments

Comments
 (0)