-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update rustc option for instrument-coverage (#1377)
* chore: update rustc flag for instrument-coverage In nightly, the compiler flag graduated from -Z to -C (stable options). * CI: link dead code for coverage Throw in -C link-dead-code into the compiler flags for the nightly-coverage CI job. * Fix prelude imports Remove imports that are reported as unused by the nightly compiler, override the lint for the vec macro import that is actually used. * Restore vec macro import in prelude Override the lint more selectively, specifically for this macro re-export.
- Loading branch information
Showing
4 changed files
with
6 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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::*; |