Skip to content

Commit dd83e7d

Browse files
authored
Merge branch 'master' into rwstauner/yjit-exit-splat-proc-rest
2 parents 0e555d5 + 3b3ab33 commit dd83e7d

File tree

7 files changed

+21
-15
lines changed

7 files changed

+21
-15
lines changed

.github/actions/setup/directories/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ runs:
100100
path: ${{ inputs.srcdir }}
101101
fetch-depth: ${{ inputs.fetch-depth }}
102102

103-
- uses: actions/cache@a7833574556fa59680c1b7cb190c1735db73ebf0 # v5.0.0
103+
- uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
104104
with:
105105
path: ${{ inputs.srcdir }}/.downloaded-cache
106106
key: ${{ runner.os }}-${{ runner.arch }}-downloaded-cache

lib/bundler/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def cli_help
104104
primary_commands = ["install", "update", "cache", "exec", "config", "help"]
105105

106106
list = self.class.printable_commands(true)
107-
by_name = list.group_by {|name, _message| name.match(/^bundle (\w+)/)[1] }
107+
by_name = list.group_by {|name, _message| name.match(/^bundler? (\w+)/)[1] }
108108
utilities = by_name.keys.sort - primary_commands
109109
primary_commands.map! {|name| (by_name[name] || raise("no primary command #{name}")).first }
110110
utilities.map! {|name| by_name[name].first }

set.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,13 +1988,6 @@ rb_set_size(VALUE set)
19881988
/*
19891989
* Document-class: Set
19901990
*
1991-
* Copyright (c) 2002-2024 Akinori MUSHA <[email protected]>
1992-
*
1993-
* Documentation by Akinori MUSHA and Gavin Sinclair.
1994-
*
1995-
* All rights reserved. You can redistribute and/or modify it under the same
1996-
* terms as Ruby.
1997-
*
19981991
* The Set class implements a collection of unordered values with no
19991992
* duplicates. It is a hybrid of Array's intuitive inter-operation
20001993
* facilities and Hash's fast lookup.

spec/bundler/bundler/cli_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,4 +282,15 @@ def out_with_macos_man_workaround
282282
bundler "--version"
283283
expect(out).to eq("#{Bundler::VERSION} (simulating Bundler 5)")
284284
end
285+
286+
it "shows cli_help when bundler install and no Gemfile is found" do
287+
bundler "install", raise_on_error: false
288+
expect(err).to include("Could not locate Gemfile")
289+
290+
expect(out).to include("Bundler version #{Bundler::VERSION}").
291+
and include("\n\nBundler commands:\n\n").
292+
and include("\n\n Primary commands:\n").
293+
and include("\n\n Utilities:\n").
294+
and include("\n\nOptions:\n")
295+
end
285296
end

zjit/src/hir.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,9 +1297,11 @@ impl<'a> std::fmt::Display for InsnPrinter<'a> {
12971297
Ok(())
12981298
}
12991299
Insn::InvokeBuiltin { bf, args, leaf, .. } => {
1300+
let bf_name = unsafe { CStr::from_ptr(bf.name) }.to_str().unwrap();
13001301
write!(f, "InvokeBuiltin{} {}",
13011302
if *leaf { " leaf" } else { "" },
1302-
unsafe { CStr::from_ptr(bf.name) }.to_str().unwrap())?;
1303+
// e.g. Code that use `Primitive.cexpr!`. From BUILTIN_INLINE_PREFIX.
1304+
if bf_name.starts_with("_bi") { "<inline_expr>" } else { bf_name })?;
13031305
for arg in args {
13041306
write!(f, ", {arg}")?;
13051307
}

zjit/src/hir/opt_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2588,7 +2588,7 @@ mod hir_opt_tests {
25882588
v13:Fixnum[1] = Const Value(1)
25892589
PatchPoint MethodRedefined(Integer@0x1000, zero?@0x1008, cme:0x1010)
25902590
IncrCounter inline_iseq_optimized_send_count
2591-
v23:BasicObject = InvokeBuiltin leaf _bi285, v13
2591+
v23:BasicObject = InvokeBuiltin leaf <inline_expr>, v13
25922592
CheckInterrupts
25932593
Return v23
25942594
");
@@ -2620,7 +2620,7 @@ mod hir_opt_tests {
26202620
PatchPoint MethodRedefined(Array@0x1008, first@0x1010, cme:0x1018)
26212621
PatchPoint NoSingletonClass(Array@0x1008)
26222622
IncrCounter inline_iseq_optimized_send_count
2623-
v31:BasicObject = InvokeBuiltin leaf _bi132, v17
2623+
v31:BasicObject = InvokeBuiltin leaf <inline_expr>, v17
26242624
CheckInterrupts
26252625
Return v31
26262626
");

zjit/src/hir/tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3026,7 +3026,7 @@ pub mod hir_build_tests {
30263026
EntryPoint JIT(0)
30273027
Jump bb2(v4)
30283028
bb2(v6:BasicObject):
3029-
v10:HeapObject = InvokeBuiltin leaf _bi20, v6
3029+
v10:HeapObject = InvokeBuiltin leaf <inline_expr>, v6
30303030
Jump bb3(v6, v10)
30313031
bb3(v12:BasicObject, v13:HeapObject):
30323032
CheckInterrupts
@@ -3140,7 +3140,7 @@ pub mod hir_build_tests {
31403140
EntryPoint JIT(0)
31413141
Jump bb2(v4)
31423142
bb2(v6:BasicObject):
3143-
v10:StringExact = InvokeBuiltin leaf _bi28, v6
3143+
v10:StringExact = InvokeBuiltin leaf <inline_expr>, v6
31443144
Jump bb3(v6, v10)
31453145
bb3(v12:BasicObject, v13:StringExact):
31463146
CheckInterrupts
@@ -3162,7 +3162,7 @@ pub mod hir_build_tests {
31623162
EntryPoint JIT(0)
31633163
Jump bb2(v4)
31643164
bb2(v6:BasicObject):
3165-
v10:StringExact = InvokeBuiltin leaf _bi12, v6
3165+
v10:StringExact = InvokeBuiltin leaf <inline_expr>, v6
31663166
Jump bb3(v6, v10)
31673167
bb3(v12:BasicObject, v13:StringExact):
31683168
CheckInterrupts

0 commit comments

Comments
 (0)