Unverified Commit 511b9c68 authored by Michael Müller's avatar Michael Müller Committed by GitHub
Browse files

Fix code coverage (#917)

* Add `-Clink-dead-code`

* Test trait cross-call only when not measuring code coverage

Otherwise a linker error will happen due
to `__ink_enforce_error` being included.

* Fix `clippy::derivable_impls`

* Fix `dead_code`

The `struct` is only a public-facing API.

* Fix yaml

* Remove `allow(dead_code)`

* Actually use `$POLL_SLEEP`

* Produce `unreachable!` instead of linker error for `codecov` CI stage

* Move `if` condition outside of `quote`

* Improve macro hygiene

* Reduce code duplication
parent b4e2781c
Pipeline #158616 passed with stages
in 24 minutes and 29 seconds