Skip to content

Stop aliasing load/require to ruby_load/ruby_require - #1256

Open
tompng wants to merge 1 commit into
ruby:masterfrom
tompng:rm_load_require_alias
Open

tompng wants to merge 1 commit into
ruby:masterfrom
tompng:rm_load_require_alias

Conversation

@tompng

@tompng tompng commented Sep 23, 2026

Copy link
Copy Markdown
Member

Fixes #1255

Aliasing them in a module is deprecated in ruby-4.1.0dev, and aliasing wasn't necessary in that module.

Aliasing them in a module is deprecated in ruby-4.1.0dev, and aliasing wasn't necessary in that module.
Comment thread lib/irb/command/load.rb
return true
rescue LoadError
return ruby_require(file_name)
return require(file_name)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: is this return and the one above necessary?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IRB::IrbLoader aliases of load/require trigger the alias-fallback deprecation warning on Ruby master

2 participants