@@ -15,7 +15,7 @@ included in the list.
15
15
However, extremely rare or obscure corner cases are considered
16
16
legitimate bugs. (We begin with such a case.)
17
17
18
- 1 . ` impl core::iter::RandomAccessIter for core::iter::Rev `
18
+ ### ` impl core::iter::RandomAccessIter for core::iter::Rev `
19
19
20
20
if one calls the `iter.idx(index)` with `index <= amt`,
21
21
then it calls the wrapped inner iterstor with a wrapped
@@ -29,7 +29,7 @@ legitimate bugs. (We begin with such a case.)
29
29
reference:
30
30
https://github.com/rust-lang/rust/pull/22532#issuecomment-75168901
31
31
32
- 2 . ` std::sys::windows::time::SteadyTime `
32
+ ### ` std::sys::windows::time::SteadyTime `
33
33
34
34
`fn ns` was converting a tick count `t` to nanoseconds
35
35
via the computation `t * 1_000_000_000 / frequency()`;
@@ -51,7 +51,8 @@ legitimate bugs. (We begin with such a case.)
51
51
overflow forces such bugs to be fixed in some manner
52
52
rather than ignored.
53
53
54
- 3 . ` std::rt::lang_start `
54
+ ### ` std::rt::lang_start `
55
+
55
56
The runtime startup uses a fairly loose computation to
56
57
determine the stack extent to pass to
57
58
record_os_managed_stack_bounds (which sets up guard
@@ -104,7 +105,7 @@ legitimate bugs. (We begin with such a case.)
104
105
saturated arithmetic in both cases, though obviously
105
106
that could be tweaked a bit.)
106
107
107
- 4. struct order of evaluation
108
+ ### struct order of evaluation
108
109
109
110
There is an explanatory story here:
110
111
@@ -124,3 +125,22 @@ legitimate bugs. (We begin with such a case.)
124
125
but it probably would have been much harder to diagnose
125
126
since the panic would have happened at some arbitrary
126
127
point later in the control flow.
128
+
129
+ ### Invalid ` Span ` constructions:
130
+
131
+ https://github.com/rust-lang/rust/issues/23480
132
+
133
+ Experts in the syntax system probably already knew
134
+ about this bug, but overflow checking forced everyone
135
+ to be reminded of it, repeatedly, in:
136
+
137
+ https://github.com/rust-lang/rust/issues/23115
138
+
139
+ See in particular:
140
+
141
+ https://github.com/rust-lang/rust/issues/23115#issuecomment-82960834
142
+
143
+ We have not actually *fixed* issue #23480 at the time of
144
+ this writing. Instead we put in a workaround:
145
+
146
+ https://github.com/rust-lang/rust/pull/23489
0 commit comments