Commit 97abd04
committed
Simplify const_refs_to_static
This removes some content for const_refs_to_static which seems to
duplicate content elsewhere. In particular:
* Remove the examples of allowed use of `static` in `const_eval.md`. We
don't show examples for any of the other permitted uses. Additionally,
I believe the other points in the list already cover concerns such as
interior mutability (and possibly more precise way, since the existing
content mentions things like transient places).
* I think a single statement that reads of `extern` statics is
sufficient to follow the pattern of all the other allowed behaviors.
* Removed the examples from the `constant-items.md` chapter about
allowing use of `static`s. Again, we generally don't duplicate what
is allowed unless there is some explicit statement indicating that
it is not. Also, I am reluctant to duplicate what is allowed between
`const_eval.md` and `constant-items.md`.1 parent 9af6601 commit 97abd04
2 files changed
+2
-63
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
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 | 75 | | |
110 | 76 | | |
111 | 77 | | |
| |||
141 | 107 | | |
142 | 108 | | |
143 | 109 | | |
144 | | - | |
| 110 | + | |
145 | 111 | | |
146 | 112 | | |
147 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 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 | 93 | | |
120 | 94 | | |
121 | 95 | | |
| |||
136 | 110 | | |
137 | 111 | | |
138 | 112 | | |
139 | | - | |
140 | 113 | | |
141 | 114 | | |
142 | 115 | | |
| |||
0 commit comments