Project

General

Profile

Actions

Feature #17432

closed

Check deprecated methods at compilation time

Added by nobu (Nobuyoshi Nakada) about 3 years ago. Updated over 2 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:101660]

Description

Currently rb_warn_deprecated_to_remove shows the deprecation warning with the version to remove. Often we can miss it however, especially as now deprecation warnings are suppressed by default. It's better to notice automatically, probably at build-time.

https://github.com/ruby/ruby/pull/3972 is not perfect, but it can detect the miss at least a few jobs in the CIs.

Also, this changes the message not to print the future version, as @shyouhei said.

Proper annotation of when to remove a feature helps us a lot ("don't delete it now" sign), but can rarely be useful to end users. Let's just use the info internally.

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 2 years ago

  • Status changed from Open to Closed

Applied in changeset git|8118d435d000adec3023a0ff509baa11cc73fabb.


rb_warn_deprecated_to_remove_at [Feature #17432]

At compilation time with RUBY_DEBUG enabled, check if the removal
version has been reached.

Actions

Also available in: Atom PDF

Like0
Like0