There used to be a #[allow(dead_code)] attr on all methods generated by #[derive(IntoHeap)], to silence this kind of warning:
warning: method is never used: `set_car`
--> toy_vm.rs:8:17
|
8 | #[derive(Debug, IntoHeap)]
| ^^^^^^^^
|
= note: #[warn(dead_code)] on by default
warning: method is never used: `set_cdr`
--> toy_vm.rs:8:17
|
8 | #[derive(Debug, IntoHeap)]
| ^^^^^^^^
|
= note: #[warn(dead_code)] on by default
Not every field's setter is going to be used. In fact I think it's plausible to have fields that are never even got (GCLeaf fields used for their destructors)
There used to be a
#[allow(dead_code)]
attr on all methods generated by#[derive(IntoHeap)]
, to silence this kind of warning:Not every field's setter is going to be used. In fact I think it's plausible to have fields that are never even got (
GCLeaf
fields used for their destructors)