Skip to content

title_bar: Fix test-support feature mismatch - #62284

Merged
SomeoneToIgnore merged 3 commits into
zed-industries:mainfrom
Caio-Ze:title-bar-test-support
Aug 15, 2026
Merged

title_bar: Fix test-support feature mismatch#62284
SomeoneToIgnore merged 3 commits into
zed-industries:mainfrom
Caio-Ze:title-bar-test-support

Conversation

@Caio-Ze

@Caio-Ze Caio-Ze commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #46337, same fix as #48280.

title_bar tests enable remote/test-support, which adds RemoteConnectionOptions::Mock. But without recent_projects/test-support, the match arms for that variant aren't compiled, causing a non-exhaustive match error when testing the crate in isolation:

error[E0004]: non-exhaustive patterns: `&RemoteConnectionOptions::Mock(_)` not covered
    --> crates/remote_connection/src/remote_connection.rs:233:76

CI doesn't catch this because collab and sidebar enable recent_projects/test-support during workspace-wide tests.

Adding remote_connection/test-support instead isn't enough — that just moves the same error into recent_projects. recent_projects/test-support covers both.

Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Aug 6, 2026
@smitbarmase smitbarmase added the area:title bar Issues suitable for title bar. label Aug 7, 2026
@MrSubidubi MrSubidubi changed the title title_bar: Fix test-support feature mismatch title_bar: Fix test-support feature mismatch Aug 7, 2026
@RemcoSmitsDev RemcoSmitsDev self-assigned this Aug 15, 2026

@RemcoSmitsDev RemcoSmitsDev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Thanks for your contribution!

@SomeoneToIgnore SomeoneToIgnore self-assigned this Aug 15, 2026
@SomeoneToIgnore
SomeoneToIgnore added this pull request to the merge queue Aug 15, 2026
Merged via the queue into zed-industries:main with commit 939d2d7 Aug 15, 2026
36 checks passed
playdohface pushed a commit to playdohface/zed that referenced this pull request Aug 29, 2026
Follow-up to zed-industries#46337, same fix as zed-industries#48280.

`title_bar` tests enable `remote/test-support`, which adds
`RemoteConnectionOptions::Mock`. But without
`recent_projects/test-support`, the match arms for that variant aren't
compiled, causing a non-exhaustive match error when testing the crate in
isolation:

```
error[E0004]: non-exhaustive patterns: `&RemoteConnectionOptions::Mock(_)` not covered
    --> crates/remote_connection/src/remote_connection.rs:233:76
```

CI doesn't catch this because `collab` and `sidebar` enable
`recent_projects/test-support` during workspace-wide tests.

Adding `remote_connection/test-support` instead isn't enough — that just
moves the same error into `recent_projects`.
`recent_projects/test-support` covers both.

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:title bar Issues suitable for title bar. cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants