Skip to content

Commit 84da315

Browse files
committed
Merge branch 'master' into dist/3.4/noble
2 parents 11e5555 + 77fd05c commit 84da315

File tree

294 files changed

+22766
-19675
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

294 files changed

+22766
-19675
lines changed

ChangeLog

Lines changed: 591 additions & 0 deletions
Large diffs are not rendered by default.

bootstraptest/test_method.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,3 +1395,27 @@ def splat_args(*args)
13951395
no_args
13961396
splat_args
13971397
}
1398+
1399+
assert_equal 'ok', %q{
1400+
class A
1401+
private
1402+
def foo = "ng"
1403+
end
1404+
1405+
class B
1406+
def initialize(o)
1407+
@o = o
1408+
end
1409+
1410+
def foo(...) = @o.foo(...)
1411+
def internal_foo = foo
1412+
end
1413+
1414+
b = B.new(A.new)
1415+
1416+
begin
1417+
b.internal_foo
1418+
rescue NoMethodError
1419+
"ok"
1420+
end
1421+
}

common.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17680,6 +17680,7 @@ st.$(OBJEXT): {$(VPATH)}internal/variable.h
1768017680
st.$(OBJEXT): {$(VPATH)}internal/warning_push.h
1768117681
st.$(OBJEXT): {$(VPATH)}internal/xmalloc.h
1768217682
st.$(OBJEXT): {$(VPATH)}missing.h
17683+
st.$(OBJEXT): {$(VPATH)}ruby_assert.h
1768317684
st.$(OBJEXT): {$(VPATH)}st.c
1768417685
st.$(OBJEXT): {$(VPATH)}st.h
1768517686
st.$(OBJEXT): {$(VPATH)}subst.h

compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10643,7 +10643,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const no
1064310643
if (nd_fl_newline(node)) {
1064410644
int event = RUBY_EVENT_LINE;
1064510645
ISEQ_COMPILE_DATA(iseq)->last_line = line;
10646-
if (ISEQ_COVERAGE(iseq) && ISEQ_LINE_COVERAGE(iseq)) {
10646+
if (line > 0 && ISEQ_COVERAGE(iseq) && ISEQ_LINE_COVERAGE(iseq)) {
1064710647
event |= RUBY_EVENT_COVERAGE_LINE;
1064810648
}
1064910649
ADD_TRACE(ret, event);

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
ruby3.4 (3.4.3-0nkmi1~dist) unstable; urgency=medium
2+
3+
* 3.4.3
4+
5+
-- Sorah Fukumori <[email protected]> Sat, 26 Apr 2025 10:58:36 +0900
6+
17
ruby3.4 (3.4.2-0nkmi1~dist) unstable; urgency=medium
28

39
* 3.4.2

debian/patches/Fix-FTBFS-on-x32-misdetected-as-i386-or-amd64.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Updated by John Paul Adrian Glaubitz <[email protected]> on
1212
1 file changed, 3 insertions(+)
1313

1414
diff --git a/configure.ac b/configure.ac
15-
index 30e197b..7bedb37 100644
15+
index 5899f2a..5e9b168 100644
1616
--- a/configure.ac
1717
+++ b/configure.ac
1818
@@ -2690,6 +2690,9 @@ AS_CASE([$coroutine_type], [yes|''], [

debian/patches/Mark-Gemspec-reproducible-change-fixing-784225-too.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Signed-off-by: Christian Hofstaedtler <[email protected]>
1212
1 file changed, 3 insertions(+), 1 deletion(-)
1313

1414
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
15-
index 8f353ae..095125f 100644
15+
index 0b905a7..a102e3c 100644
1616
--- a/lib/rubygems/specification.rb
1717
+++ b/lib/rubygems/specification.rb
18-
@@ -1711,7 +1711,9 @@ class Gem::Specification < Gem::BasicSpecification
18+
@@ -1709,7 +1709,9 @@ class Gem::Specification < Gem::BasicSpecification
1919
raise(Gem::InvalidSpecificationException,
2020
"invalid date format in specification: #{date.inspect}")
2121
end

debian/patches/TestProcess-disable-gems-to-disable-rubygems_integration.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ lets such test fail.
1111
1 file changed, 3 insertions(+), 3 deletions(-)
1212

1313
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
14-
index 6e8ba48..dfe47cd 100644
14+
index af72053..c4184b2 100644
1515
--- a/test/ruby/test_process.rb
1616
+++ b/test/ruby/test_process.rb
1717
@@ -292,7 +292,7 @@ class TestProcess < Test::Unit::TestCase

debian/patches/extract-gems-sequential-Keep-using-RUNRUBY.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Subject: extract-gems-sequential: Keep using RUNRUBY
1515
1 file changed, 1 insertion(+), 3 deletions(-)
1616

1717
diff --git a/common.mk b/common.mk
18-
index 0ea360c..9b34859 100644
18+
index 594b5da..0b2aa6a 100644
1919
--- a/common.mk
2020
+++ b/common.mk
2121
@@ -1537,7 +1537,7 @@ update-gems$(gnumake:yes=-sequential): PHONY
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
From: Sorah Fukumori <[email protected]>
2+
Date: Sat, 26 Apr 2025 11:08:01 +0900
3+
Subject: gc/mmtk: avoid fn_addr_eq for MSRV 1.74
4+
5+
---
6+
gc/mmtk/src/abi.rs | 3 ++-
7+
1 file changed, 2 insertions(+), 1 deletion(-)
8+
9+
diff --git a/gc/mmtk/src/abi.rs b/gc/mmtk/src/abi.rs
10+
index fc9c899..011c496 100644
11+
--- a/gc/mmtk/src/abi.rs
12+
+++ b/gc/mmtk/src/abi.rs
13+
@@ -153,6 +153,7 @@ impl ObjectClosure {
14+
///
15+
/// Note that this function is not reentrant. Don't call this function in either `callback` or
16+
/// `f`.
17+
+ #[allow(unpredictable_function_pointer_comparisons)]
18+
pub fn set_temporarily_and_run_code<'env, T, F1, F2>(
19+
&mut self,
20+
mut visit_object: F1,
21+
@@ -163,7 +164,7 @@ impl ObjectClosure {
22+
F2: 'env + FnOnce() -> T,
23+
{
24+
debug_assert!(
25+
- std::ptr::fn_addr_eq(self.c_function, THE_UNREGISTERED_CLOSURE_FUNC),
26+
+ self.c_function == THE_UNREGISTERED_CLOSURE_FUNC,
27+
"set_temporarily_and_run_code is recursively called."
28+
);
29+
self.c_function = Self::c_function_registered::<F1>;

0 commit comments

Comments
 (0)