Commit e775322
committed
Clarify note about extended temps in initializers
We have a note that describes why, perhaps surprisingly, it's OK to
have a reference to a static with an interior mutable value in the
final value of a constant item but it's not OK if the interior mutable
value is a temporary from the initializer. There was room to improve
how this was worded, so let's take it.1 parent 26d7a3a commit e775322
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
146 | 154 | | |
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
150 | 158 | | |
151 | 159 | | |
152 | | - | |
| 160 | + | |
153 | 161 | | |
154 | 162 | | |
155 | 163 | | |
| |||
0 commit comments