Skip to content

Commit 7251d43

Browse files
Name warp#15443 as the incoming caller in the dead_code comments
1 parent 32b4a32 commit 7251d43

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

app/src/workspaces/user_workspaces.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,11 @@ pub struct CreateTeamResponse {
185185
/// [`TeamScope`]'s contract. Code with no window at all (e.g. background GEAP token refresh)
186186
/// is not this type's job -- it needs its own accessor that reads across every one of the
187187
/// user's teams explicitly, in the shape of `UserWorkspaces::teams_allow_codebase_context`.
188-
// No production code pins a scope yet: the reads migrated so far are all live policy, which
189-
// resolves through the borrowed [`TeamContext`] instead. Only this module's tests construct
190-
// one. Drop the `#[allow(dead_code)]` when a real caller needs a scope that outlives its mint
191-
// point -- a chosen destination recorded against the team it was chosen under.
188+
// No *production* code pins a scope yet, so only this module's tests construct one: every read
189+
// migrated so far is live policy, which resolves through the borrowed [`TeamContext`] instead.
190+
// warp#15443 is the incoming real caller -- it moves one by value into
191+
// `apply_onboarding_settings` from `root_view.rs`, where the scope genuinely outlives its mint
192+
// point. Drop the `#[allow(dead_code)]` when that lands.
192193
#[allow(dead_code)]
193194
pub(crate) struct TeamContextForOperation {
194195
team_uid: Option<ServerId>,
@@ -444,7 +445,7 @@ impl UserWorkspaces {
444445
/// [`TeamContextForOperation`]. This is the only way application code mints one. Always
445446
/// succeeds -- a window with no team selected still yields a scope, just one whose
446447
/// `team_uid()` is `None`; see [`TeamScope`]'s contract for what that means to a getter.
447-
// Only tests mint one today; see [`TeamContextForOperation`].
448+
// Only tests mint one until warp#15443 lands; see [`TeamContextForOperation`].
448449
#[allow(dead_code)]
449450
pub(crate) fn team_context_for_operation<T: Entity>(
450451
&self,

0 commit comments

Comments
 (0)