Commit d695610
[Guideline] Add do not divide by 0 (#132)
* [Guideline] Add do not divide by 0
* Remove example code from compliant example
As stated there is no compliant way to do this, so no example should be
present.
* Add compliant example with a suggestion
While the guideline does not strictly apply to this example, it is a
good suggestion for what to do instead.
* Lowercasing of guideline metadata
Co-authored-by: Pete LeVasseur <[email protected]>
* Add Rust std link transformation
Co-authored-by: Pete LeVasseur <[email protected]>
* Clarify scope of expressions this applies to
* Remove "Note" phrase
It is not recommended for normative language
Co-authored-by: Alex Eris Celeste née Gilding <[email protected]>
* Add missing phrase to NonZero recommendation
Also moved to the Rationale.
* Example compliant example with a match expression
* Downgrade guideline to Required
Mandatory is a bit strong for panics as determined in today's meeting.
* Add compliant manual check example
* Add defect tag
* Formatting and prose improvements
Co-authored-by: Félix Fischer <[email protected]>
* Adding more explanation to the examples
Co-authored-by: Félix Fischer <[email protected]>
---------
Co-authored-by: Pete LeVasseur <[email protected]>
Co-authored-by: Alex Eris Celeste née Gilding <[email protected]>
Co-authored-by: Alex Eris Celeste née Gilding <[email protected]>
Co-authored-by: Félix Fischer <[email protected]>1 parent 6412306 commit d695610
1 file changed
+69
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
86 | 155 | | |
87 | 156 | | |
88 | 157 | | |
| |||
0 commit comments