Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
9132: RES: Fix nested `include!`-ed files in different directory r=vlad20012 a=dima74 Fixes #8614 Related: #7156 (but that is for mod declaration in `include!`-ed file ) changelog: Fix resolve of items from nested `include!`-ed files in some cases 9151: RES: Fix cache invalidation after toggle "Expand macros" settings r=vlad20012 a=dima74 Currently when toggle ["Expand macros" option](#9127), we have two problems: * `CrateDefMap`s don't rebuild * `structureModificationTracker` doesn't increment if option was disabled but becomes enabled --- This may lead to problems like (thanks `@neonaot):` ```rust macro_rules! gen { () => { fn func() {} } } gen!(); fn main() { func(); } ``` * Disable "Expand macros" - `func` is unresolved (good) * Enable "Expand macros" - `func` is still unresolved (bad) changelog: Fix cache invalidation after toggle "Expand macros" settings Co-authored-by: Dmitry Murzin <diralik@yandex.ru>
- Loading branch information
Showing
4 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters