docs(harness): record Windows gates and defer Linux execution
This commit is contained in:
+474
@@ -0,0 +1,474 @@
|
||||
Checking oa-desktop v0.2.0 (C:\Users\User\Documents\Git\ARCADIA-Studio\crates\oa-desktop)
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\app\reference_authoring.rs:29:61
|
||||
|
|
||||
29 | Message::Workflow(workflow::Event::Semantic(semantic_review::Event::Row {
|
||||
| ___________________________________-------------------------_^
|
||||
| | |
|
||||
| | arguments to this enum variant are incorrect
|
||||
30 | | address: *address,
|
||||
31 | | facet: Some(facet.clone()),
|
||||
32 | | event: RowEvent::ReferenceEvent(event),
|
||||
33 | | }))
|
||||
| |_________________^ expected `Box<Event>`, found `Event`
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
29 ~ Message::Workflow(workflow::Event::Semantic(Box::new(semantic_review::Event::Row {
|
||||
30 | address: *address,
|
||||
31 | facet: Some(facet.clone()),
|
||||
32 | event: RowEvent::ReferenceEvent(event),
|
||||
33 ~ })))
|
||||
|
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\app\reference_authoring\tests.rs:77:57
|
||||
|
|
||||
77 | Message::Workflow(workflow::Event::Semantic(semantic_review::Event::Row {
|
||||
| _______________________________-------------------------_^
|
||||
| | |
|
||||
| | arguments to this enum variant are incorrect
|
||||
78 | | address: *address,
|
||||
79 | | facet: Some(facet.clone()),
|
||||
80 | | event: RowEvent::ReferenceOpen(request),
|
||||
81 | | }))
|
||||
| |_____________^ expected `Box<Event>`, found `Event`
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
77 ~ Message::Workflow(workflow::Event::Semantic(Box::new(semantic_review::Event::Row {
|
||||
78 | address: *address,
|
||||
79 | facet: Some(facet.clone()),
|
||||
80 | event: RowEvent::ReferenceOpen(request),
|
||||
81 ~ })))
|
||||
|
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\app\reference_authoring\tests.rs:128:68
|
||||
|
|
||||
128 | let _ = app.update(Message::Workflow(workflow::Event::Semantic(addressed)));
|
||||
| ------------------------- ^^^^^^^^^ expected `Box<Event>`, found `Event`
|
||||
| |
|
||||
| arguments to this enum variant are incorrect
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
128 | let _ = app.update(Message::Workflow(workflow::Event::Semantic(Box::new(addressed))));
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\app\reference_authoring\tests\mounted.rs:113:45
|
||||
|
|
||||
112 | ... Message::Workflow(workflow::Event::Semantic(
|
||||
| ------------------------- arguments to this enum variant are incorrect
|
||||
113 | ... state.address_event(RowEvent::OperationRationale(raw)),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Box<Event>`, found `Event`
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
113 | Box::new(state.address_event(RowEvent::OperationRationale(raw))),
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\app\reference_authoring\tests\mounted.rs:123:45
|
||||
|
|
||||
122 | ... Message::Workflow(workflow::Event::Semantic(
|
||||
| ------------------------- arguments to this enum variant are incorrect
|
||||
123 | ... state.address_event(RowEvent::ReferenceOpen(request)),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Box<Event>`, found `Event`
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
123 | Box::new(state.address_event(RowEvent::ReferenceOpen(request))),
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\app\reference_authoring\tests\mounted.rs:728:13
|
||||
|
|
||||
726 | messages.as_slice(),
|
||||
| ------------------- this expression has type `&[app::Message]`
|
||||
727 | [Message::Workflow(workflow::Event::Semantic(
|
||||
728 | / semantic_review::Event::Row {
|
||||
729 | | event: RowEvent::ReferenceEvent(chooser::Event {
|
||||
730 | | action: Action::Close(Close::Outside),
|
||||
731 | | ..
|
||||
732 | | }),
|
||||
733 | | ..
|
||||
734 | | }
|
||||
| |_____________^ expected `Box<Event>`, found `Event`
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\app\reference_authoring\tests\mounted.rs:837:9
|
||||
|
|
||||
836 | let _ = app.update(Message::Workflow(workflow::Event::Semantic(
|
||||
| ------------------------- arguments to this enum variant are incorrect
|
||||
837 | semantic_review::Event::Direction(TransitionDirection::SaToOa),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Box<Event>`, found `Event`
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
837 | Box::new(semantic_review::Event::Direction(TransitionDirection::SaToOa)),
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\app\reference_authoring\tests.rs:566:72
|
||||
|
|
||||
566 | let _ = app.update(Message::Workflow(workflow::Event::Semantic(event)));
|
||||
| ------------------------- ^^^^^ expected `Box<Event>`, found `Event`
|
||||
| |
|
||||
| arguments to this enum variant are incorrect
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
566 | let _ = app.update(Message::Workflow(workflow::Event::Semantic(Box::new(event))));
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\app\reference_authoring\tests.rs:576:9
|
||||
|
|
||||
575 | let _ = app.update(Message::Workflow(workflow::Event::Semantic(
|
||||
| ------------------------- arguments to this enum variant are incorrect
|
||||
576 | / semantic_review::Event::Row {
|
||||
577 | | address,
|
||||
578 | | facet: Some(facet),
|
||||
579 | | event: RowEvent::ReferenceOpen(old_open),
|
||||
580 | | },
|
||||
| |_________^ expected `Box<Event>`, found `Event`
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
576 ~ Box::new(semantic_review::Event::Row {
|
||||
577 | address,
|
||||
578 | facet: Some(facet),
|
||||
579 | event: RowEvent::ReferenceOpen(old_open),
|
||||
580 ~ }),
|
||||
|
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\app\review_navigation_tests.rs:19:49
|
||||
|
|
||||
19 | send(app, Message::Workflow(Event::Semantic(event)));
|
||||
| --------------- ^^^^^ expected `Box<Event>`, found `Event`
|
||||
| |
|
||||
| arguments to this enum variant are incorrect
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
19 | send(app, Message::Workflow(Event::Semantic(Box::new(event))));
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\forms\data_fields.rs:673:79
|
||||
|
|
||||
673 | let _ = app.update(Message::Workflow(crate::workflow::Event::Semantic(event)));
|
||||
| -------------------------------- ^^^^^ expected `Box<Event>`, found `Event`
|
||||
| |
|
||||
| arguments to this enum variant are incorrect
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
673 | let _ = app.update(Message::Workflow(crate::workflow::Event::Semantic(Box::new(event))));
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\semantic_review\batch.rs:751:113
|
||||
|
|
||||
751 | ...ss(message(Event::Direction(if direction == TransitionDirection::OaToSa { TransitionDirection::SaToOa } else { TransitionDirection::OaToSa }))),
|
||||
| ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Box<Event>`, found `Event`
|
||||
| |
|
||||
| arguments to this function are incorrect
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: closure parameter defined here
|
||||
--> crates\oa-desktop\src\semantic_review\batch.rs:697:24
|
||||
|
|
||||
697 | let message = |event| Message::Workflow(crate::workflow::Event::Semantic(event));
|
||||
| ^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
751 | button(text("Reverse direction").size(12)).padding(7).style(crate::style::nav).on_press(message(Box::new(Event::Direction(if direction == TransitionDirection::OaToSa { TransitionDirection::SaToOa } else { TransitionDirection::OaToSa })))),
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\semantic_review\batch.rs:758:25
|
||||
|
|
||||
757 | pick_list(available, self.add_trace.clone(), move |choice| message(
|
||||
| ------- arguments to this function are incorrect
|
||||
758 | Event::ChooseTrace(choice)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Box<Event>`, found `Event`
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: closure parameter defined here
|
||||
--> crates\oa-desktop\src\semantic_review\batch.rs:697:24
|
||||
|
|
||||
697 | let message = |event| Message::Workflow(crate::workflow::Event::Semantic(event));
|
||||
| ^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
758 | Box::new(Event::ChooseTrace(choice))
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\semantic_review\batch.rs:767:43
|
||||
|
|
||||
767 | .on_press(message(Event::OpenTrace)),
|
||||
| ------- ^^^^^^^^^^^^^^^^ expected `Box<Event>`, found `Event`
|
||||
| |
|
||||
| arguments to this function are incorrect
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: closure parameter defined here
|
||||
--> crates\oa-desktop\src\semantic_review\batch.rs:697:24
|
||||
|
|
||||
697 | let message = |event| Message::Workflow(crate::workflow::Event::Semantic(event));
|
||||
| ^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
767 | .on_press(message(Box::new(Event::OpenTrace))),
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\semantic_review\batch.rs:774:25
|
||||
|
|
||||
774 | message(Event::Focus(RowAddress::from_trace(
|
||||
| _________________-------_^
|
||||
| | |
|
||||
| | arguments to this function are incorrect
|
||||
775 | | &base.traces[&choice.id],
|
||||
776 | | direction,
|
||||
777 | | )))
|
||||
| |__________________^ expected `Box<Event>`, found `Event`
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: closure parameter defined here
|
||||
--> crates\oa-desktop\src\semantic_review\batch.rs:697:24
|
||||
|
|
||||
697 | let message = |event| Message::Workflow(crate::workflow::Event::Semantic(event));
|
||||
| ^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
774 ~ message(Box::new(Event::Focus(RowAddress::from_trace(
|
||||
775 | &base.traces[&choice.id],
|
||||
776 | direction,
|
||||
777 ~ ))))
|
||||
|
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\semantic_review\batch.rs:809:64
|
||||
|
|
||||
809 | .map(|address| move |included| message(Event::Include(address, included)))
|
||||
| ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Box<Event>`, found `Event`
|
||||
| |
|
||||
| arguments to this function are incorrect
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: closure parameter defined here
|
||||
--> crates\oa-desktop\src\semantic_review\batch.rs:697:24
|
||||
|
|
||||
697 | let message = |event| Message::Workflow(crate::workflow::Event::Semantic(event));
|
||||
| ^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
809 | .map(|address| move |included| message(Box::new(Event::Include(address, included))))
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\semantic_review\batch_tests.rs:526:9
|
||||
|
|
||||
525 | let _ = app.update(Message::Workflow(crate::workflow::Event::Semantic(
|
||||
| -------------------------------- arguments to this enum variant are incorrect
|
||||
526 | Event::ChooseTrace(view::choice(&f.project, f.traces[1])),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Box<Event>`, found `Event`
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
526 | Box::new(Event::ChooseTrace(view::choice(&f.project, f.traces[1]))),
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\semantic_review\batch_tests.rs:529:9
|
||||
|
|
||||
528 | let _ = app.update(Message::Workflow(crate::workflow::Event::Semantic(
|
||||
| -------------------------------- arguments to this enum variant are incorrect
|
||||
529 | Event::OpenTrace,
|
||||
| ^^^^^^^^^^^^^^^^ expected `Box<Event>`, found `Event`
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
529 | Box::new(Event::OpenTrace),
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\semantic_review\row.rs:929:56
|
||||
|
|
||||
929 | Message::Workflow(crate::workflow::Event::Semantic(Event::Editor(event)))
|
||||
| -------------------------------- ^^^^^^^^^^^^^^^^^^^^ expected `Box<Event>`, found `Event`
|
||||
| |
|
||||
| arguments to this enum variant are incorrect
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
929 | Message::Workflow(crate::workflow::Event::Semantic(Box::new(Event::Editor(event))))
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\semantic_review\view.rs:16:56
|
||||
|
|
||||
16 | Message::Workflow(crate::workflow::Event::Semantic(Event::Editor(event)))
|
||||
| -------------------------------- ^^^^^^^^^^^^^^^^^^^^ expected `Box<Event>`, found `Event`
|
||||
| |
|
||||
| arguments to this enum variant are incorrect
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
16 | Message::Workflow(crate::workflow::Event::Semantic(Box::new(Event::Editor(event))))
|
||||
| +++++++++ +
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> crates\oa-desktop\src\semantic_review\tests.rs:7:9
|
||||
|
|
||||
6 | let _ = app.update(Message::Workflow(crate::workflow::Event::Semantic(
|
||||
| -------------------------------- arguments to this enum variant are incorrect
|
||||
7 | state(app).address_event(event),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Box<Event>`, found `Event`
|
||||
|
|
||||
= note: expected struct `std::boxed::Box<semantic_review::batch::Event>`
|
||||
found enum `semantic_review::batch::Event`
|
||||
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
||||
note: tuple variant defined here
|
||||
--> crates\oa-desktop\src\workflow.rs:22:5
|
||||
|
|
||||
22 | Semantic(Box<crate::semantic_review::Event>),
|
||||
| ^^^^^^^^
|
||||
help: store this in the heap by calling `Box::new`
|
||||
|
|
||||
7 | Box::new(state(app).address_event(event)),
|
||||
| +++++++++ +
|
||||
|
||||
For more information about this error, try `rustc --explain E0308`.
|
||||
error: could not compile `oa-desktop` (bin "arcadia-studio" test) due to 21 previous errors
|
||||
Reference in New Issue
Block a user