This PR fixes a bug in #11125. Added a test this time ... <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Exclude deprecated declarations from library suggestions and add a test verifying they are filtered out. > > - **Library Suggestions**: > - Update `isDeniedPremise` in `src/Lean/LibrarySuggestions/Basic.lean` to treat `Lean.Linter.isDeprecated` as denied (`true`), filtering deprecated constants from suggestions. > - **Tests**: > - Add `tests/lean/run/library_suggestions_deprecated.lean` to verify deprecated theorems (e.g., `deprecatedTheorem`) are not suggested by `currentFile`, while non-deprecated ones are. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit ef7e546dbcca1893d68b07ed79e592ff97f2ceb4. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> |
||
|---|---|---|
| .. | ||
| bench | ||
| compiler | ||
| elabissues | ||
| ir | ||
| lake | ||
| lean | ||
| pkg | ||
| playground | ||
| plugin | ||
| simpperf | ||
| .gitignore | ||
| common.sh | ||
| lakefile.toml | ||
| lean-toolchain | ||