Skip to content

Commit 4e255d4

Browse files
authored
Merge branch 'master' into ripper_error_heredoc
2 parents e093148 + 549c7fe commit 4e255d4

File tree

28 files changed

+493
-438
lines changed

28 files changed

+493
-438
lines changed

.gdbinit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,8 +1296,7 @@ end
12961296

12971297
define print_flags
12981298
printf "RUBY_FL_WB_PROTECTED: %s\n", ((struct RBasic*)($arg0))->flags & RUBY_FL_WB_PROTECTED ? "1" : "0"
1299-
printf "RUBY_FL_PROMOTED0 : %s\n", ((struct RBasic*)($arg0))->flags & RUBY_FL_PROMOTED0 ? "1" : "0"
1300-
printf "RUBY_FL_PROMOTED1 : %s\n", ((struct RBasic*)($arg0))->flags & RUBY_FL_PROMOTED1 ? "1" : "0"
1299+
printf "RUBY_FL_PROMOTED : %s\n", ((struct RBasic*)($arg0))->flags & RUBY_FL_PROMOTED ? "1" : "0"
13011300
printf "RUBY_FL_FINALIZE : %s\n", ((struct RBasic*)($arg0))->flags & RUBY_FL_FINALIZE ? "1" : "0"
13021301
printf "RUBY_FL_SHAREABLE : %s\n", ((struct RBasic*)($arg0))->flags & RUBY_FL_SHAREABLE ? "1" : "0"
13031302
printf "RUBY_FL_EXIVAR : %s\n", ((struct RBasic*)($arg0))->flags & RUBY_FL_EXIVAR ? "1" : "0"

LEGAL

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,44 @@ mentioned below.
702702
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
703703
SUCH DAMAGE.
704704

705+
[ext/json/vendor/fpconv.c]
706+
707+
This file is under the Boost Software License.
708+
709+
>>>
710+
Boost Software License - Version 1.0 - August 17th, 2003
711+
712+
Permission is hereby granted, free of charge, to any person or organization
713+
obtaining a copy of the software and accompanying documentation covered by
714+
this license (the "Software") to use, reproduce, display, distribute,
715+
execute, and transmit the Software, and to prepare derivative works of the
716+
Software, and to permit third-parties to whom the Software is furnished to
717+
do so, all subject to the following:
718+
719+
The copyright notices in the Software and this entire statement, including
720+
the above license grant, this restriction and the following disclaimer,
721+
must be included in all copies of the Software, in whole or in part, and
722+
all derivative works of the Software, unless such copies or derivative
723+
works are solely in the form of machine-executable object code generated by
724+
a source language processor.
725+
726+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
727+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
728+
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
729+
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
730+
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
731+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
732+
DEALINGS IN THE SOFTWARE.
733+
734+
[ext/json/vendor/jeaiii-ltoa.h]
735+
736+
>>>
737+
Copyright (c) 2024,2025 Enrico Thierbach - https://github.com/radiospiel
738+
Copyright (c) 2022 James Edward Anhalt III - https://github.com/jeaiii/itoa
739+
740+
{MIT License}[rdoc-ref:@MIT+License]
741+
742+
705743
[ext/psych]
706744
[test/psych]
707745

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Note that each entry is kept to a minimum, see links for details.
77

88
## Language changes
99

10+
* `*nil` no longer calls `nil.to_a`, similar to how `**nil` does
11+
not call `nil.to_hash`. [[Feature #21047]]
12+
1013
## Core classes updates
1114

1215
Note: We're only listing outstanding class updates.
@@ -84,4 +87,5 @@ The following bundled gems are updated.
8487
## JIT
8588

8689
[Feature #19908]: https://bugs.ruby-lang.org/issues/19908
90+
[Feature #21047]: https://bugs.ruby-lang.org/issues/21047
8791
[Bug #21049]: https://bugs.ruby-lang.org/issues/21049

benchmark/nilclass.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
prelude: |
2+
def a = nil
13
benchmark:
24
to_i: |
35
nil.to_i
46
to_f: |
57
nil.to_f
8+
splat: |
9+
a(*nil)
610
loop_count: 100000

bootstraptest/test_literal.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@
117117
assert_equal 'true', 'a = [obj = Object.new]; a[0] == obj'
118118
assert_equal '5', 'a = [1,2,3]; a[1] = 5; a[1]'
119119
assert_equal 'bar', '[*:foo];:bar'
120-
assert_equal '[1, 2]', 'def nil.to_a; [2]; end; [1, *nil]'
121-
assert_equal '[1, 2]', 'def nil.to_a; [1, 2]; end; [*nil]'
120+
assert_equal '[]', 'def nil.to_a; [1, 2]; end; [*nil]'
121+
assert_equal '[1]', 'def nil.to_a; [2]; end; [1, *nil]'
122122
assert_equal '[0, 1, {2 => 3}]', '[0, *[1], 2=>3]', "[ruby-dev:31592]"
123123

124124

0 commit comments

Comments
 (0)