From 1988508720aa7e9f4032b6b6b312bca8bdaa9133 Mon Sep 17 00:00:00 2001 From: Stiopa Koltsov Date: Tue, 26 Jul 2022 08:42:57 -0700 Subject: [PATCH] Mark ProfileMode non-exhaustive Summary: So users won't break if additional profile modes added. Reviewed By: ndmitchell Differential Revision: D38153289 fbshipit-source-id: 8e96ed2fd751498e86e7e81819ce62299672a22c --- starlark-rust/starlark/src/eval/runtime/profile/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/starlark-rust/starlark/src/eval/runtime/profile/mod.rs b/starlark-rust/starlark/src/eval/runtime/profile/mod.rs index 5383da0b2ed0..732555f86259 100644 --- a/starlark-rust/starlark/src/eval/runtime/profile/mod.rs +++ b/starlark-rust/starlark/src/eval/runtime/profile/mod.rs @@ -30,6 +30,7 @@ pub(crate) mod typecheck; /// How to profile starlark code. #[derive(Debug, PartialEq, Eq, Hash, Clone, Dupe)] +#[non_exhaustive] pub enum ProfileMode { /// The heap profile mode provides information about the time spent in each function and allocations /// performed by each function. Enabling this mode the side effect of disabling garbage-collection.