Skip to content

Commit 96b0d1a

Browse files
Renamed frontend_with_tests.rs to frontend_with_compile_fail_tests.rs
1 parent 54460c7 commit 96b0d1a

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

src/frontend_linted.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// https://github.com/prudent-rs/prudent/, https://crates.io/crates/prudent and
66
// https://docs.rs/prudent/latest/prudent.
77

8-
// For docs see frontend_with_tests.rs
8+
// For docs see frontend_with_compile_fail_tests.rs
99
#![allow(missing_docs)]
1010

1111
#[doc(hidden)]

src/frontend_unlinted.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// https://github.com/prudent-rs/prudent/, https://crates.io/crates/prudent and
44
// https://docs.rs/prudent/latest/prudent.
55

6-
// For docs see frontend_with_tests.rs
6+
// For docs see frontend_with_compile_fail_tests.rs
77
#![allow(missing_docs)]
88

99
#[doc(hidden)]
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const _VERIFY_MODULE_PATH: () = {
2020
let path = core::module_path!().as_bytes();
2121
if !matches!(path, b"prudent::frontend") {
2222
panic!(
23-
"Do NOT load frontend_with_tests.rs in other crates. It's internal in prudent only."
23+
"Do NOT load frontend_with_compile_fail_tests.rs in other crates. It's internal in prudent only."
2424
);
2525
}
2626
};
@@ -63,7 +63,7 @@ pub use crate::frontend_untested::PRUDENT_INTERNAL_LINTED_VERSION;
6363
/// ```
6464
/// Use the result of `unsafe_fn!` immediately as an array/slice:
6565
/// ```test_harness
66-
/// //TODO failing
66+
/// //TODO? failing??
6767
/// //# ::prudent::load!("frontend_linted.rs");
6868
/// //::prudent::load!(any: "frontend_linted.rs");
6969
/// ::prudent::load!(any: "frontend_linted.rs");
@@ -75,6 +75,7 @@ pub use crate::frontend_untested::PRUDENT_INTERNAL_LINTED_VERSION;
7575
/// ```
7676
/// Use the result of `unsafe_fn!` immediately as a mutable array/slice (assign/modify its slot(s)):
7777
/// ```
78+
/// // @TODO MOVE OUT TO coverage_positive/
7879
/// ::prudent::load!(any: "frontend_linted.rs");
7980
/// use self::prudent::*;
8081
/// fn _test_unsafe_fn_returning_mut_ref() {
@@ -92,6 +93,7 @@ pub use crate::frontend_untested::PRUDENT_INTERNAL_LINTED_VERSION;
9293
/// ```
9394
/// The same, but the function takes an argument (and no leak):
9495
/// ```
96+
/// // @TODO MOVE OUT TO coverage_positive/
9597
/// ::prudent::load!(any: "frontend_linted.rs");
9698
/// use crate::prudent::*;
9799
/// unsafe fn return_same_mut_ref<T>(mref: &mut T) -> &mut T {
@@ -219,6 +221,7 @@ pub use crate::frontend_untested::internal_prudent_unsafe_method_internal_build_
219221
#[allow(clippy::useless_attribute)]
220222
#[allow(clippy::needless_doctest_main)]
221223
/// ```
224+
/// // @TODO MOVE OUT TO coverage_positive/
222225
/// ::prudent::load!(any: "frontend_linted.rs");
223226
/// //use self::prudent::*;
224227
/// fn main() {

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub mod backend;
126126
#[path = "frontend_unlinted.rs"]
127127
mod frontend_untested;
128128

129-
#[path = "frontend_with_tests.rs"]
129+
#[path = "frontend_with_compile_fail_tests.rs"]
130130
#[doc(hidden)]
131131
pub mod frontend;
132132

0 commit comments

Comments
 (0)