File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -301,4 +301,45 @@ Macros
301301 fn example_function() {
302302 // Compliant implementation
303303 }
304+
305+ .. guideline :: Do not hide unsafe blocks within macro expansions
306+ :id: gui_FRLaMIMb4t3S
307+ :category: required
308+ :status: draft
309+ :release: todo
310+ :fls: fls_4vjbkm4ceymk
311+ :decidability: todo
312+ :scope: todo
313+ :tags: reduce-human-error
314+
315+ Description of the guideline goes here.
316+
317+ .. rationale ::
318+ :id: rat_WJubG7KuUDLW
319+ :status: draft
320+
321+ Explanation of why this guideline is important.
322+
323+ .. non_compliant_example ::
324+ :id: non_compl_ex_AyFnP0lJLHxi
325+ :status: draft
326+
327+ Explanation of code example.
304328
329+ .. code-block :: rust
330+
331+ fn example_function() {
332+ // Non-compliant implementation
333+ }
334+
335+ .. compliant_example ::
336+ :id: compl_ex_pO5gP1aj2v4F
337+ :status: draft
338+
339+ Explanation of code example.
340+
341+ .. code-block :: rust
342+
343+ fn example_function() {
344+ // Compliant implementation
345+ }
You can’t perform that action at this time.
0 commit comments