Skip to content

chore: remove CotProject references#553

Open
m4tx wants to merge 1 commit intomasterfrom
cotproject
Open

chore: remove CotProject references#553
m4tx wants to merge 1 commit intomasterfrom
cotproject

Conversation

@m4tx
Copy link
Copy Markdown
Member

@m4tx m4tx commented Apr 13, 2026

This struct was removed quite some time ago.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / cleanup
  • Performance improvement
  • Other (describe above)

This struct was removed quite some time ago.
Copilot AI review requested due to automatic review settings April 13, 2026 18:22
@github-actions github-actions Bot added the C-macros Crate: cot-macros label Apr 13, 2026
@github-actions
Copy link
Copy Markdown

🐰 Bencher Report

Branchcotproject
Testbedgithub-ubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
empty_router/empty_router📈 view plot
🚷 view threshold
6.40 ms
(+5.37%)Baseline: 6.08 ms
7.39 ms
(86.64%)
json_api/json_api📈 view plot
🚷 view threshold
1.14 ms
(+7.71%)Baseline: 1.06 ms
1.26 ms
(90.36%)
nested_routers/nested_routers📈 view plot
🚷 view threshold
1.07 ms
(+9.76%)Baseline: 0.98 ms
1.15 ms
(92.79%)
single_root_route/single_root_route📈 view plot
🚷 view threshold
1.03 ms
(+10.16%)Baseline: 0.94 ms
1.12 ms
(92.38%)
single_root_route_burst/single_root_route_burst📈 view plot
🚷 view threshold
16.96 ms
(-4.06%)Baseline: 17.68 ms
21.08 ms
(80.45%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes a stale CotProject reference from the cot-macros UI test fixture so the macro diagnostics no longer mention a struct that has been removed from the cot API.

Changes:

  • Update the UI test source to use cot::Project instead of CotProject in the annotated main signature.
  • Update the corresponding trybuild .stderr expected output to match the new signature text.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
cot-macros/tests/ui/attr_main_args.rs Updates the UI test’s main return type text to avoid CotProject.
cot-macros/tests/ui/attr_main_args.stderr Updates expected diagnostic output to match the revised test source line.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -1,4 +1,4 @@
#[cot::main]
async fn main(arg: i32) -> cot::Result<CotProject> {
async fn main(arg: i32) -> cot::Result<cot::Project> {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

--> tests/ui/attr_main_args.rs:2:15
|
2 | async fn main(arg: i32) -> cot::Result<CotProject> {
2 | async fn main(arg: i32) -> cot::Result<cot::Project> {
Comment on lines 1 to +2
#[cot::main]
async fn main(arg: i32) -> cot::Result<CotProject> {
async fn main(arg: i32) -> cot::Result<cot::Project> {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

@m4tx m4tx requested review from ElijahAhianyo and seqre April 13, 2026 18:27
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
rust 89.99% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

C-macros Crate: cot-macros

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants