@@ -119,10 +119,6 @@ config_data! {
119
119
/// Sets the LRU capacity of the specified queries.
120
120
lru_query_capacities: FxHashMap <Box <str >, u16 > = FxHashMap :: default ( ) ,
121
121
122
- /// These proc-macros will be ignored when trying to expand them.
123
- ///
124
- /// This config takes a map of crate names with the exported proc-macro names to ignore as values.
125
- procMacro_ignored: FxHashMap <Box <str >, Box <[ Box <str >] >> = FxHashMap :: default ( ) ,
126
122
127
123
128
124
/// Enables automatic discovery of projects using [`DiscoverWorkspaceConfig::command`].
@@ -409,6 +405,11 @@ config_data! {
409
405
/// If false, `-p <package>` will be passed instead.
410
406
check_workspace: bool = true ,
411
407
408
+ /// These proc-macros will be ignored when trying to expand them.
409
+ ///
410
+ /// This config takes a map of crate names with the exported proc-macro names to ignore as values.
411
+ procMacro_ignored: FxHashMap <Box <str >, Box <[ Box <str >] >> = FxHashMap :: default ( ) ,
412
+
412
413
/// Command to be executed instead of 'cargo' for runnables.
413
414
runnables_command: Option <String > = None ,
414
415
/// Additional arguments to be passed to cargo for runnables such as
@@ -1764,8 +1765,11 @@ impl Config {
1764
1765
Some ( AbsPathBuf :: try_from ( path) . unwrap_or_else ( |path| self . root_path . join ( path) ) )
1765
1766
}
1766
1767
1767
- pub fn ignored_proc_macros ( & self ) -> & FxHashMap < Box < str > , Box < [ Box < str > ] > > {
1768
- self . procMacro_ignored ( )
1768
+ pub fn ignored_proc_macros (
1769
+ & self ,
1770
+ source_root : Option < SourceRootId > ,
1771
+ ) -> & FxHashMap < Box < str > , Box < [ Box < str > ] > > {
1772
+ self . procMacro_ignored ( source_root)
1769
1773
}
1770
1774
1771
1775
pub fn expand_proc_macros ( & self ) -> bool {
0 commit comments