Skip to content

Commit 7fdf881

Browse files
bugadanit-moe
authored andcommitted
Remove the test cfg
1 parent f469e67 commit 7fdf881

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
`[dev-dependencies]`.
2626
- Tests modules can now contain helper functions (=functions without test/init attributes).
2727

28+
### Removed
29+
30+
- Removed the `#[cfg(test)]` attribute from the test module.
31+
2832
## [0.6.2]
2933

3034
### Changed
@@ -114,9 +118,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
114118

115119
Initial release on crates.io
116120

117-
[unreleased]: https://github.com/probe-rs/embedded-test/compare/v0.7.0...master
121+
[unreleased]: https://github.com/probe-rs/embedded-test/compare/v0.7.0-alpha.3...master
122+
123+
[0.7.0-alpha.3]: https://github.com/probe-rs/embedded-test/compare/v0.7.0-alpha.2...v0.7.0-alpha.3
124+
125+
[0.7.0-alpha.2]: https://github.com/probe-rs/embedded-test/compare/v0.7.0-alpha.1...v0.7.0-alpha.2
126+
127+
[0.7.0-alpha.1]: https://github.com/probe-rs/embedded-test/compare/v0.7.0-alpha.0...v0.7.0-alpha.1
118128

119-
[0.7.0]: https://github.com/probe-rs/embedded-test/compare/v0.6.2...v0.7.0
129+
[0.7.0-alpha.0]: https://github.com/probe-rs/embedded-test/compare/v0.6.2...v0.7.0-alpha.0
120130

121131
[0.6.2]: https://github.com/probe-rs/embedded-test/compare/v0.6.1...v0.6.2
122132

macros/src/attributes/tests.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ pub(crate) fn expand(args: TokenStream, input: TokenStream) -> TokenStream {
2525

2626
let mod_name = format_ident!("{}", validated_module.module_name);
2727
quote!(
28-
#[cfg(test)]
2928
mod #mod_name {
3029
#(#untouched_tokens)*
3130

0 commit comments

Comments
 (0)