fix(ids crate): move compile-fail .stderr to tests/compile_fail and remove over-broad *.stderr ignore
The previous harness agent placed ids's trybuild fixtures in which left them off the path cargo test --test compile_fail reads (), so every run re-generated new ones (no content match → suite never greens). Move default_task_id.stderr and unscoped_key.stderr next to their .rs inputs. Also remove from . The blanket rule blocked the two intentionally-committed trybuild fixtures (the only non-target .stders in this repo) with no useful gating function; leaving it in place silently drops new or renamed compile-fail assertions on any subsequent clone. Fixes verdict T0.1/compile_fail block per .task-result-T0.1; nothing else changed in lib.rs, derives, or trait impls.
This commit is contained in:
@@ -4,8 +4,6 @@ target
|
|||||||
rust-agentic-task.md
|
rust-agentic-task.md
|
||||||
tasks/artifacts/*
|
tasks/artifacts/*
|
||||||
|
|
||||||
*.stderr
|
|
||||||
|
|
||||||
verify/
|
verify/
|
||||||
reviews/
|
reviews/
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
error[E0599]: no associated function or constant named `default` found for struct `TaskId` in the current scope
|
||||||
|
--> tests/compile_fail/default_task_id.rs:7:28
|
||||||
|
|
|
||||||
|
7 | let _task_id = TaskId::default();
|
||||||
|
| ^^^^^^^ associated function or constant not found in `TaskId`
|
||||||
|
|
|
||||||
|
note: if you're trying to build a new `TaskId` consider using one of the following associated functions:
|
||||||
|
TaskId::new
|
||||||
|
TaskId::from_bytes
|
||||||
|
--> src/lib.rs
|
||||||
|
|
|
||||||
|
| pub fn new(hash: blake3::Hash) -> Self {
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
...
|
||||||
|
| pub fn from_bytes(bytes: [u8; 32]) -> Self {
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
error[E0277]: the trait bound `RunId: StorageKey` is not satisfied
|
||||||
|
--> tests/compile_fail/unscoped_key.rs:10:16
|
||||||
|
|
|
||||||
|
10 | use_as_key(run_id);
|
||||||
|
| ---------- ^^^^^^ the trait `StorageKey` is not implemented for `RunId`
|
||||||
|
| |
|
||||||
|
| required by a bound introduced by this call
|
||||||
|
|
|
||||||
|
help: the following other types implement trait `StorageKey`
|
||||||
|
--> src/lib.rs
|
||||||
|
|
|
||||||
|
| impl<T> StorageKey for Scoped<T> where T: Serialize + for<'de> Deserialize<'de> {}
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Scoped<T>`
|
||||||
|
| impl StorageKey for BranchKey {}
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `BranchKey`
|
||||||
|
note: required by a bound in `use_as_key`
|
||||||
|
--> tests/compile_fail/unscoped_key.rs:6:18
|
||||||
|
|
|
||||||
|
6 | fn use_as_key<K: StorageKey>(_key: K) {}
|
||||||
|
| ^^^^^^^^^^ required by this bound in `use_as_key`
|
||||||
Reference in New Issue
Block a user