@@ -51,7 +51,7 @@ The pains (that pend [rust-lang/rust#110613](https://github.com/rust-lang/rust/i
5151 macros are loaded in your crate's namespace, and hence they can't use ` $crate ` metavariable to
5252 refer to the rest of the macros and non-macro functionality).
5353- In doctests
54- - load with ` any: ` like ` ::prudent::load!(any: "linted .rs"); `
54+ - load with ` any: ` like ` ::prudent::load!(any: "frontend_linted .rs"); `
5555 - import with ` use crate::prudent::*; ` which you put outside of your ` fn main() `
5656 - have ` fn main() `
5757 - do ** not** have the test logic at the top level, otherwise rustdoc/doctest mechanism
@@ -117,7 +117,7 @@ let _todo = ();
117117```
118118
119119``` rust
120- :: prudent :: load! (any : " linted .rs" );
120+ :: prudent :: load! (any : " frontend_linted .rs" );
121121use crate :: prudent :: unsafe_method;
122122struct SNonCopy {}
123123impl SNonCopy {
@@ -137,7 +137,7 @@ fn main() {
137137
138138## unsafe_method > self: mutable reference
139139``` rust
140- :: prudent :: load! (any : " linted .rs" );
140+ :: prudent :: load! (any : " frontend_linted .rs" );
141141use crate :: prudent :: unsafe_method;
142142struct SNonCopy {}
143143impl SNonCopy {
@@ -156,7 +156,7 @@ fn main() {
156156
157157## unsafe_method > self: by value
158158``` rust
159- :: prudent :: load! (any : " linted .rs" );
159+ :: prudent :: load! (any : " frontend_linted .rs" );
160160use crate :: prudent :: unsafe_method;
161161fn main () {
162162 {
@@ -190,7 +190,7 @@ fn main() {
190190# unsafe_ref
191191## unsafe_ref - one arg, basic reference
192192``` rust
193- :: prudent :: load! (any : " linted .rs" );
193+ :: prudent :: load! (any : " frontend_linted .rs" );
194194use crate :: prudent :: unsafe_ref;
195195const B : bool = true ;
196196const PT : * const bool = & B as * const bool ;
@@ -203,7 +203,7 @@ fn main() {
203203
204204## unsafe_ref - one arg, slice
205205``` rust
206- :: prudent :: load! (any : " linted .rs" );
206+ :: prudent :: load! (any : " frontend_linted .rs" );
207207use crate :: prudent :: unsafe_ref;
208208const BS : [bool ; 2 ] = [true , false ];
209209const PT : * const [bool ] = & BS as * const [bool ];
@@ -216,7 +216,7 @@ fn main() {
216216
217217## unsafe_ref - one arg, dyn reference
218218``` rust
219- :: prudent :: load! (any : " linted .rs" );
219+ :: prudent :: load! (any : " frontend_linted .rs" );
220220use crate :: prudent :: unsafe_ref;
221221# use core :: fmt :: Display ;
222222const B : bool = true ;
@@ -228,7 +228,7 @@ fn main() {}
228228
229229## unsafe_ref - two args, lifetimed reference
230230``` rust
231- :: prudent :: load! (any : " linted .rs" );
231+ :: prudent :: load! (any : " frontend_linted .rs" );
232232use crate :: prudent :: unsafe_ref;
233233const B : bool = true ;
234234const PT : * const bool = & B as * const bool ;
@@ -241,7 +241,7 @@ fn main() {
241241
242242## unsafe_ref - two args, lifetimed dyn reference
243243``` rust
244- :: prudent :: load! (any : " linted .rs" );
244+ :: prudent :: load! (any : " frontend_linted .rs" );
245245use crate :: prudent :: unsafe_ref;
246246use core :: fmt :: Display ;
247247const B : bool = true ;
@@ -253,7 +253,7 @@ fn main() {}
253253
254254## unsafe_ref - two args, lifetimed slice
255255``` rust
256- :: prudent :: load! (any : " linted .rs" );
256+ :: prudent :: load! (any : " frontend_linted .rs" );
257257use crate :: prudent :: unsafe_ref;
258258const BS : [bool ; 2 ] = [true , false ];
259259const PT : * const [bool ] = & BS as * const [bool ];
@@ -266,7 +266,7 @@ fn main() {
266266
267267## unsafe_ref - two args, typed basic reference
268268``` rust
269- :: prudent :: load! (any : " linted .rs" );
269+ :: prudent :: load! (any : " frontend_linted .rs" );
270270use crate :: prudent :: unsafe_ref;
271271const B : bool = true ;
272272const PT : * const bool = & B as * const bool ;
@@ -279,7 +279,7 @@ fn main() {
279279
280280## unsafe_ref - two args, typed slice
281281``` rust
282- :: prudent :: load! (any : " linted .rs" );
282+ :: prudent :: load! (any : " frontend_linted .rs" );
283283use crate :: prudent :: unsafe_ref;
284284const BS : [bool ; 2 ] = [true , false ];
285285const PT : * const [bool ] = & BS as * const [bool ];
@@ -292,7 +292,7 @@ fn main() {
292292
293293## unsafe_ref - two args, typed dyn reference
294294``` rust
295- :: prudent :: load! (any : " linted .rs" );
295+ :: prudent :: load! (any : " frontend_linted .rs" );
296296use crate :: prudent :: unsafe_ref;
297297# use core :: fmt :: Display ;
298298const B : bool = true ;
@@ -308,7 +308,7 @@ fn main() {
308308# unsafe_mut
309309## unsafe_mut - one arg, basic reference
310310``` rust
311- :: prudent :: load! (any : " linted .rs" );
311+ :: prudent :: load! (any : " frontend_linted .rs" );
312312use crate :: prudent :: unsafe_mut;
313313fn main () {
314314 let mut b : bool = true ;
@@ -321,7 +321,7 @@ fn main() {
321321
322322## unsafe_mut - one arg, slice
323323``` rust
324- :: prudent :: load! (any : " linted .rs" );
324+ :: prudent :: load! (any : " frontend_linted .rs" );
325325use crate :: prudent :: unsafe_mut;
326326fn main () {
327327 let mut bs : [bool ; 2 ] = [true , false ];
@@ -334,7 +334,7 @@ fn main() {
334334
335335## unsafe_mut - one arg, dyn reference
336336``` rust
337- :: prudent :: load! (any : " linted .rs" );
337+ :: prudent :: load! (any : " frontend_linted .rs" );
338338use crate :: prudent :: unsafe_mut;
339339# use core :: fmt :: Display ;
340340fn main () {
@@ -348,7 +348,7 @@ fn main() {
348348
349349## unsafe_mut - two args, lifetimed reference
350350``` rust
351- :: prudent :: load! (any : " linted .rs" );
351+ :: prudent :: load! (any : " frontend_linted .rs" );
352352use crate :: prudent :: unsafe_mut;
353353fn main () {
354354 let b : & 'static mut bool = Box :: leak ( Box :: new (true ) );
@@ -362,7 +362,7 @@ fn main() {
362362
363363## unsafe_mut - two args, lifetimed dyn reference
364364``` rust
365- :: prudent :: load! (any : " linted .rs" );
365+ :: prudent :: load! (any : " frontend_linted .rs" );
366366use crate :: prudent :: unsafe_mut;
367367# use core :: fmt :: Display ;
368368fn main () {
@@ -377,7 +377,7 @@ fn main() {
377377
378378## unsafe_mut - two args, lifetimed slice
379379``` rust
380- :: prudent :: load! (any : " linted .rs" );
380+ :: prudent :: load! (any : " frontend_linted .rs" );
381381use crate :: prudent :: unsafe_mut;
382382fn main () {
383383 let bs : & 'static mut [bool ] = Box :: leak ( Box :: new ([true , false ]) );
@@ -391,7 +391,7 @@ fn main() {
391391
392392## unsafe_mut - two args, typed basic reference
393393``` rust
394- :: prudent :: load! (any : " linted .rs" );
394+ :: prudent :: load! (any : " frontend_linted .rs" );
395395use crate :: prudent :: unsafe_mut;
396396fn main () {
397397 let mut b : bool = true ;
@@ -404,7 +404,7 @@ fn main() {
404404
405405## unsafe_mut - two args, typed slice
406406``` rust
407- :: prudent :: load! (any : " linted .rs" );
407+ :: prudent :: load! (any : " frontend_linted .rs" );
408408use crate :: prudent :: unsafe_mut;
409409fn main () {
410410 let bs : & 'static mut [bool ] = Box :: leak ( Box :: new ([true , false ]) );
@@ -418,7 +418,7 @@ fn main() {
418418
419419## unsafe_mut - two args, typed dyn reference
420420``` rust
421- :: prudent :: load! (any : " linted .rs" );
421+ :: prudent :: load! (any : " frontend_linted .rs" );
422422use crate :: prudent :: unsafe_mut;
423423# use core :: fmt :: Display ;
424424fn main () {
@@ -439,7 +439,7 @@ Only for types that implement/derive [core::marker::Copy].
439439
440440## unsafe_val - one arg, basic
441441``` rust
442- :: prudent :: load! (any : " linted .rs" );
442+ :: prudent :: load! (any : " frontend_linted .rs" );
443443use crate :: prudent :: unsafe_val;
444444fn main () {
445445 const B : bool = true ;
@@ -452,7 +452,7 @@ fn main() {
452452
453453## unsafe_val - two args, typed
454454``` rust
455- :: prudent :: load! (any : " linted .rs" );
455+ :: prudent :: load! (any : " frontend_linted .rs" );
456456use crate :: prudent :: unsafe_val;
457457fn main () {
458458 const B : bool = true ;
@@ -465,7 +465,7 @@ fn main() {
465465
466466# unsafe_set
467467``` rust
468- :: prudent :: load! (any : " linted .rs" );
468+ :: prudent :: load! (any : " frontend_linted .rs" );
469469use crate :: prudent :: unsafe_set;
470470fn main () {
471471 let mut b : bool = true ;
@@ -477,7 +477,7 @@ fn main() {
477477```
478478
479479``` rust
480- :: prudent :: load! (any : " linted .rs" );
480+ :: prudent :: load! (any : " frontend_linted .rs" );
481481use crate :: prudent :: unsafe_set;
482482struct SNonCopy {}
483483fn main () {
@@ -493,7 +493,7 @@ fn main() {
493493
494494# unsafe_static_set
495495``` rust
496- :: prudent :: load! (any : " linted .rs" );
496+ :: prudent :: load! (any : " frontend_linted .rs" );
497497use crate :: prudent :: unsafe_static_set;
498498static mut B : bool = true ;
499499
0 commit comments