You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
: config: global: robust to drop order in test overrides (#1457)
Summary:
`override_key` now pushes frames onto a per-key stack with unique tokens, allowing out-of-order drops and deterministic restoration. `ConfigValueGuard::drop` pops the active frame, restores the previous or default value, and updates the mirrored env var only when the top changes. `ensure_test_override_layer_mut` removed as redundant. `Key::name` moved to an unconstrained impl to relax the `Named` bound.
adds tests verifying LIFO restoration and stability under out-of-order drops, covering both attrs and env behavior.
Differential Revision: D84085259
0 commit comments