This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- m2 2020-07-19 10:25:16.219914330 -0700 | |
| +++ m3 2020-07-19 10:25:18.543914882 -0700 | |
| @@ -118,8 +118,7 @@ | |
| 7f6cdcaa6000-7f6cdcca6000 rw-p 00000000 00:00 0 | |
| 7f6cdcca6000-7f6cdcca7000 ---p 00000000 00:00 0 | |
| 7f6cdcca7000-7f6cdcea7000 rw-p 00000000 00:00 0 | |
| -7f6cdd147000-7f6cdd149000 rw-p 00000000 00:00 0 | |
| -7f6cdd149000-7f6cdd161000 r-xp 00000000 00:00 0 | |
| +7f6cdd147000-7f6cdd161000 r-xp 00000000 00:00 0 | |
| 7f6cdd161000-7f6cdd162000 ---p 00000000 00:00 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- m1 2020-07-19 10:25:13.379913654 -0700 | |
| +++ m2 2020-07-19 10:25:16.219914330 -0700 | |
| @@ -118,6 +118,7 @@ | |
| 7f6cdcaa6000-7f6cdcca6000 rw-p 00000000 00:00 0 | |
| 7f6cdcca6000-7f6cdcca7000 ---p 00000000 00:00 0 | |
| 7f6cdcca7000-7f6cdcea7000 rw-p 00000000 00:00 0 | |
| +7f6cdd147000-7f6cdd149000 rw-p 00000000 00:00 0 | |
| 7f6cdd149000-7f6cdd161000 r-xp 00000000 00:00 0 | |
| 7f6cdd161000-7f6cdd162000 ---p 00000000 00:00 0 | |
| 7f6cdd162000-7f6cdd164000 rw-p 00000000 00:00 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use wasmtime::*; | |
| fn main() -> Result<(), Box<dyn std::error::Error>> { | |
| let mut config = Config::new(); | |
| config.profiler(ProfilingStrategy::JitDump)?; | |
| let engine = Engine::new(&config); | |
| let store = Store::new(&engine); | |
| let module = Module::from_file(&engine, "./fib.wasm")?; | |
| let instance = Instance::new(&store, &module, &[])?; | |
| let start = instance.get_func("main").unwrap(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![crate_type = "rlib"] | |
| #![cfg_attr(crate_level, allow(elided_lifetimes_in_paths))] | |
| #![cfg_attr(crate_level_warnings, allow(warnings))] | |
| mod foo { | |
| #![allow(elided_lifetimes_in_paths)] | |
| #![allow(warnings)] | |
| use std::fmt::*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![crate_type = "rlib"] | |
| mod foo { | |
| #![allow(elided_lifetimes_in_paths)] | |
| use std::fmt::*; | |
| struct A; | |
| impl Debug for A { | |
| fn fmt(&self, _f: &mut Formatter) -> Result { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/cargo/sources/path.rs b/src/cargo/sources/path.rs | |
| index cf406e8dd..77c164671 100644 | |
| --- a/src/cargo/sources/path.rs | |
| +++ b/src/cargo/sources/path.rs | |
| @@ -522,6 +522,7 @@ impl<'cfg> Source for PathSource<'cfg> { | |
| fn fingerprint(&self, pkg: &Package) -> CargoResult<String> { | |
| let (max, max_path) = self.last_modified_file(pkg)?; | |
| + let max_path = max_path.strip_prefix(&self.path).unwrap_or(&max_path); | |
| Ok(format!("{} ({})", max, max_path.display())) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| failed test: tests/testsuite/proposals/function-references/br_on_null.wast | |
| Caused by: | |
| unexpected token, expected one of: `func`, `extern`, `any`, `exn`, `eq`, `i31`, an index | |
| --> tests/testsuite/proposals/function-references/br_on_null.wast:20:66 | |
| | | |
| 20 | (func (export "nullable-null") (result i32) (call $n (ref.null (type $t)))) | |
| | ^ | |
| failed test: tests/testsuite/proposals/function-references/br_table.wast |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn main() { | |
| let n = 42; | |
| println!("fib({}) = {}", n, fib(n)); | |
| } | |
| fn fib(n: u32) -> u32 { | |
| if n <= 2 { | |
| 1 | |
| } else { | |
| fib(n - 1) + fib(n - 2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; ModuleID = 'foo.3a1fbbbh-cgu.0' | |
| source_filename = "foo.3a1fbbbh-cgu.0" | |
| target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" | |
| target triple = "wasm32-unknown-unknown" | |
| ; Function Attrs: nounwind | |
| define void @bar() unnamed_addr #0 { | |
| start: | |
| tail call void @inline_me() | |
| ret void |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn hex_encode_fallback<'a>(src: &[u8], dst: &'a mut [u8]) -> Result<&'a str, usize> { | |
| fn hex(byte: u8) -> u8 { | |
| static TABLE: &[u8] = b"0123456789abcdef"; | |
| TABLE[byte as usize] | |
| } | |
| for (byte, slots) in src.iter().zip(dst.chunks_mut(2)) { | |
| slots[0] = hex((*byte >> 4) & 0xf); | |
| slots[1] = hex(*byte & 0xf); | |
| } |