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.