Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rustc option for instrument-coverage #1377

Merged
merged 4 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
components: llvm-tools-preview
- run: cargo test-all-features
env:
RUSTFLAGS: '-Zinstrument-coverage'
RUSTFLAGS: '-C instrument-coverage -C link-dead-code'
LLVM_PROFILE_FILE: '%p-%m.profraw'
- name: Install grcov
run: |
Expand Down
1 change: 0 additions & 1 deletion config/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// https://doc.rust-lang.org/src/alloc/prelude/v1.rs.html
pub use alloc::{
borrow::ToOwned,
boxed::Box,
format,
string::{String, ToString},
vec,
Expand Down
7 changes: 2 additions & 5 deletions light-client-verifier/src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
// Re-export according to alloc::prelude::v1 because it is not yet stabilized
// https://doc.rust-lang.org/src/alloc/prelude/v1.rs.html
#[allow(unused_imports)]
pub use alloc::vec;
pub use alloc::{
borrow::ToOwned,
boxed::Box,
format,
string::{String, ToString},
vec,
vec::Vec,
};
// will be included in 2021 edition.
pub use core::convert::{TryFrom, TryInto};
pub use core::prelude::v1::*;
5 changes: 3 additions & 2 deletions proto/src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// Re-export according to alloc::prelude::v1 because it is not yet stabilized
// https://doc.rust-lang.org/src/alloc/prelude/v1.rs.html

#[allow(unused_imports)]
pub use alloc::vec;
pub use alloc::{
borrow::ToOwned,
boxed::Box,
format,
string::{String, ToString},
vec,
vec::Vec,
};
pub use core::prelude::v1::*;