mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
7a94225e7d
commit
2b2030f265
3 changed files with 3 additions and 3 deletions
2
io.c
2
io.c
|
@ -7543,7 +7543,7 @@ rb_output_fs_setter(VALUE val, ID id, VALUE *var)
|
||||||
{
|
{
|
||||||
rb_str_setter(val, id, &val);
|
rb_str_setter(val, id, &val);
|
||||||
if (!NIL_P(val)) {
|
if (!NIL_P(val)) {
|
||||||
rb_warn("non-nil $, will be deprecated");
|
rb_warn_deprecated("`$,'", NULL);
|
||||||
}
|
}
|
||||||
*var = val;
|
*var = val;
|
||||||
}
|
}
|
||||||
|
|
2
string.c
2
string.c
|
@ -10092,7 +10092,7 @@ rb_fs_setter(VALUE val, ID id, VALUE *var)
|
||||||
rb_id2str(id));
|
rb_id2str(id));
|
||||||
}
|
}
|
||||||
if (!NIL_P(val)) {
|
if (!NIL_P(val)) {
|
||||||
rb_warn("non-nil $; will be deprecated");
|
rb_warn_deprecated("`$;'", NULL);
|
||||||
}
|
}
|
||||||
*var = val;
|
*var = val;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1771,7 +1771,7 @@ CODE
|
||||||
|
|
||||||
begin
|
begin
|
||||||
fs = $;
|
fs = $;
|
||||||
assert_warn(/\$; will be deprecated/) {$; = " "}
|
assert_warn(/`\$;' is deprecated/) {$; = " "}
|
||||||
ensure
|
ensure
|
||||||
EnvUtil.suppress_warning {$; = fs}
|
EnvUtil.suppress_warning {$; = fs}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue