File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,9 @@ homepage = "https://github.com/prudent-rs/prudent"
2222
2323[lints .rust ]
2424unexpected_cfgs = { level = " forbid" }
25+
26+ [features ]
27+ # NOT for any builds (not even for debugging). Only for "activating" src/frontend_linted.rs in your
28+ # rust-analyzer/IDE, so you get better editing.
29+ internal_use_frontend_linted = []
30+ # default = ["internal_use_frontend_linted"]
Original file line number Diff line number Diff line change 1212#[ allow( unused) ]
1313pub const PRUDENT_INTERNAL_LINTED_VERSION : & str = "0.0.3-beta" ;
1414
15+ #[ cfg( not( feature = "internal_use_frontend_linted" ) ) ]
1516const _VERIFY_MODULE_PATH: ( ) = {
1617 let path = core:: module_path!( ) . as_bytes ( ) ;
1718 if matches ! (
Original file line number Diff line number Diff line change @@ -122,9 +122,16 @@ macro_rules! internal_coverage_positive {
122122
123123pub mod backend;
124124
125+ #[ cfg( feature = "internal_use_frontend_linted" ) ]
126+ compile_error ! ( "Use feature internal_use_frontend_linted only for easier editing." ) ;
127+
125128/// Frontend macros.
129+ #[ cfg( not( feature = "internal_use_frontend_linted" ) ) ]
126130#[ path = "frontend_unlinted.rs" ]
127131mod frontend_untested;
132+ #[ cfg( feature = "internal_use_frontend_linted" ) ]
133+ #[ path = "frontend_linted.rs" ]
134+ mod frontend_untested;
128135
129136#[ path = "frontend_with_compile_fail_tests.rs" ]
130137#[ doc( hidden) ]
You can’t perform that action at this time.
0 commit comments