Skip to content

Correctly ignore nested deprecation warnings#13513

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
straight-shoota:fix/nested-deprecation
Jun 5, 2023
Merged

Correctly ignore nested deprecation warnings#13513
straight-shoota merged 1 commit intocrystal-lang:masterfrom
straight-shoota:fix/nested-deprecation

Conversation

@straight-shoota
Copy link
Member

Resolves #13507

This is a very basic implementation to ignore warnigs when calling a deprecated method directly within the body of another deprecated method.
It covers the most common use case.

A more sophisticated approach would take other deprecation scopes into account as well (for example, ignore any deprecation warnings from within a deprecated type). But that requires more complex changes and we're getting already most of the way with this basic implementation.

@straight-shoota straight-shoota added this to the 1.9.0 milestone May 27, 2023
@oprypin oprypin changed the title Fix ignore nested deprecation warnings Correctly ignore nested deprecation warnings May 27, 2023
@straight-shoota straight-shoota merged commit 94f9200 into crystal-lang:master Jun 5, 2023
@straight-shoota straight-shoota deleted the fix/nested-deprecation branch June 5, 2023 08:58
Blacksmoke16 pushed a commit to Blacksmoke16/crystal that referenced this pull request Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecation notices from deprecated code

2 participants