Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/cargo/core/registry.rs b/src/cargo/core/registry.rs
index 0380c447d..a0cc41d85 100644
--- a/src/cargo/core/registry.rs
+++ b/src/cargo/core/registry.rs
@@ -726,7 +726,9 @@ fn lock(
// If this dependency did not have a locked version, then we query
// all known locked packages to see if they match this dependency.
- // If anything does then we lock it to that and move on.
+ // If anything does then we lock it to that and move on. This will help
0x0000 | 00 61 73 6d | version 1
| 01 00 00 00
0x0008 | 01 0f | type section
0x000a | 02 | 2 count
0x000b | 60 00 00 | [type 0] Func(FuncType { params: [], returns: [] })
0x000e | 62 02 01 66 | [type 1] Instance(InstanceType { exports: [ExportType { name: "f", ty: Function(0) }, ExportType { name: "g", ty: Global(GlobalType { content_type: I32, mutable: false }) }] })
| 00 00 01 67
| 03 7f 00
0x0019 | 02 06 | import section
0x001b | 01 | 1 count
use std::panic;
// Goal: Use catch_unwind() and extract the panic message from the result.
//
fn main() {
let result = panic::catch_unwind(|| {
panic!("oh no!");
});
assert!(result.is_err());
(module
(func $test (param i32) (result externref)
i32.const 0
if
else
end
local.get 0
table.get 0
)
(table 4 externref)
(module
(func)
(table $table 100 externref)
(func (export "run") (param externref externref externref externref externref externref externref externref externref externref)
(call 0)
(table.set $table (i32.const 2111897723) (table.get $table (i32.const 8380672)))
(table.set $table (i32.const 2246115459) (table.get $table (i32.const 8904960)))
(table.set $table (i32.const 2380333195) (table.get $table (i32.const 9429248)))
(table.set $table (i32.const 2514550931) (table.get $table (i32.const 9953536)))
(table.set $table (i32.const 2648768667) (table.get $table (i32.const 10477824)))
(elem $f3z)
(module $$esl
(func $qz??i32x4.bitmaske
(export "c $555in555E")
(export "0554M******+*****e 4$qq")
)
(module
(export "q**")
(export "00AGGGGle $$qq")
)
(func $a)
(elem declare funcref)
(elem declare funcref (ref.func $a))
(module
(func
unreachable
i32.const 0
select
block (param i32)
unreachable
end))
(module
;; 64 random types to force the block type below to get encoded as sleb
(func (param f32 f32 f32 f32 f32 f32))
(func (param i32 f32 f32 f32 f32 f32))
(func (param f32 i32 f32 f32 f32 f32))
(func (param i32 i32 f32 f32 f32 f32))
(func (param f32 f32 i32 f32 f32 f32))
(func (param i32 f32 i32 f32 f32 f32))
(func (param f32 i32 i32 f32 f32 f32))
(func (param i32 i32 i32 f32 f32 f32))