From 856784fee00badccf3968d795becf41c940565f5 Mon Sep 17 00:00:00 2001 From: zjp Date: Fri, 30 Jan 2026 15:37:21 +0000 Subject: [PATCH 01/10] ui(graph): plot adt Node for Constructor caller --- ui/app/utils/graph.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/app/utils/graph.ts b/ui/app/utils/graph.ts index eb9db7d..81471ed 100644 --- a/ui/app/utils/graph.ts +++ b/ui/app/utils/graph.ts @@ -551,7 +551,8 @@ export class Plot { switch (kind) { case AdtFnKind.MethodImmutableRefReceiver: case AdtFnKind.MethodMutableRefReceiver: - case AdtFnKind.MethodOwnedReceiver: { + case AdtFnKind.MethodOwnedReceiver: + case AdtFnKind.Constructor: { const field = Object.entries(info.field) .map(([name, access]) => ({ name, access })) .filter(f => f.access !== FieldAccessKind.Other) From bffda4b1b677a8b5a400d7402a66e7327dc5fe79 Mon Sep 17 00:00:00 2001 From: zjp Date: Fri, 30 Jan 2026 15:38:29 +0000 Subject: [PATCH 02/10] ui: better default example of std and core --- ui/app/lib/topbar.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/lib/topbar.ts b/ui/app/lib/topbar.ts index 795f9a3..dba68b1 100644 --- a/ui/app/lib/topbar.ts +++ b/ui/app/lib/topbar.ts @@ -148,8 +148,8 @@ export const CRATES: Crate[] = [Crate.std, Crate.core, Crate.alloc, Crate.ostd]; export function defaultCrateItemQuery(crate: Crate): string { switch (crate) { - case Crate.std: return "std::time::Instant::now"; - case Crate.core: return "core::str::::len"; + case Crate.std: return "std::::from_raw_fd"; + case Crate.core: return "core::ptr::write_volatile"; case Crate.alloc: return "alloc::vec::Vec::::set_len"; case Crate.ostd: return "ostd::init"; default: return ""; From 12c0efdd0e5ace115ff4cf2b9283c51e980bc20a Mon Sep 17 00:00:00 2001 From: zjp Date: Sat, 31 Jan 2026 07:40:51 +0000 Subject: [PATCH 03/10] fix(SearchFn): only mark unsafe caller as unsafe --- ui/app/components/widget/SearchFn.vue | 7 +++++-- ui/app/lib/topbar.ts | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/app/components/widget/SearchFn.vue b/ui/app/components/widget/SearchFn.vue index df7a918..80dad8b 100644 --- a/ui/app/components/widget/SearchFn.vue +++ b/ui/app/components/widget/SearchFn.vue @@ -23,12 +23,15 @@