coverage: Extract hole spans from HIR instead of MIR · rust-lang/rust@63c04f0 (original) (raw)

`@@ -167,15 +167,16 @@ Number of file 0 mappings: 14

`

167

167

` = ((c6 + c7) + c8)

`

168

168

``

169

169

`Function name: async::j

`

170

``

`-

Raw bytes (53): 0x[01, 01, 02, 07, 0d, 05, 09, 09, 01, 35, 01, 13, 0c, 05, 14, 09, 00, 0a, 01, 00, 0e, 00, 1b, 05, 00, 1f, 00, 27, 09, 01, 09, 00, 0a, 11, 00, 0e, 00, 1a, 09, 00, 1e, 00, 20, 0d, 01, 0e, 00, 10, 03, 02, 01, 00, 02]

`

``

170

`+

Raw bytes (58): 0x[01, 01, 02, 07, 0d, 05, 09, 0a, 01, 35, 01, 00, 0d, 01, 0b, 0b, 00, 0c, 05, 01, 09, 00, 0a, 01, 00, 0e, 00, 1b, 05, 00, 1f, 00, 27, 09, 01, 09, 00, 0a, 11, 00, 0e, 00, 1a, 09, 00, 1e, 00, 20, 0d, 01, 0e, 00, 10, 03, 02, 01, 00, 02]

`

171

171

`Number of files: 1

`

172

172

`- file 0 => global file 1

`

173

173

`Number of expressions: 2

`

174

174

`- expression 0 operands: lhs = Expression(1, Add), rhs = Counter(3)

`

175

175

`- expression 1 operands: lhs = Counter(1), rhs = Counter(2)

`

176

``

`-

Number of file 0 mappings: 9

`

177

``

`-

`

178

``

`-

`

``

176

`+

Number of file 0 mappings: 10

`

``

177

`+

`

``

178

`+

`

``

179

`+

`

179

180

`- Code(Counter(0)) at (prev + 0, 14) to (start + 0, 27)

`

180

181

`- Code(Counter(1)) at (prev + 0, 31) to (start + 0, 39)

`

181

182

`- Code(Counter(2)) at (prev + 1, 9) to (start + 0, 10)

`

`@@ -186,48 +187,48 @@ Number of file 0 mappings: 9

`

186

187

` = ((c1 + c2) + c3)

`

187

188

``

188

189

`Function name: async::j::c

`

189

``

`-

Raw bytes (26): 0x[01, 01, 01, 01, 05, 04, 01, 37, 05, 01, 12, 05, 02, 0d, 00, 0e, 02, 0a, 0d, 00, 0e, 01, 02, 05, 00, 06]

`

``

190

`+

Raw bytes (26): 0x[01, 01, 01, 01, 05, 04, 01, 37, 05, 01, 12, 05, 02, 0d, 00, 0e, 02, 02, 0d, 00, 0e, 01, 02, 05, 00, 06]

`

190

191

`Number of files: 1

`

191

192

`- file 0 => global file 1

`

192

193

`Number of expressions: 1

`

193

194

`- expression 0 operands: lhs = Counter(0), rhs = Counter(1)

`

194

195

`Number of file 0 mappings: 4

`

195

196

`- Code(Counter(0)) at (prev + 55, 5) to (start + 1, 18)

`

196

197

`- Code(Counter(1)) at (prev + 2, 13) to (start + 0, 14)

`

197

``

`-

`

``

198

`+

`

198

199

` = (c0 - c1)

`

199

200

`- Code(Counter(0)) at (prev + 2, 5) to (start + 0, 6)

`

200

201

``

201

202

`Function name: async::j::d

`

202

``

`-

Raw bytes (9): 0x[01, 01, 00, 01, 01, 46, 05, 00, 17]

`

``

203

`+

Raw bytes (9): 0x[01, 01, 00, 01, 01, 3e, 05, 00, 17]

`

203

204

`Number of files: 1

`

204

205

`- file 0 => global file 1

`

205

206

`Number of expressions: 0

`

206

207

`Number of file 0 mappings: 1

`

207

``

`-

`

``

208

`+

`

208

209

``

209

210

`Function name: async::j::f

`

210

``

`-

Raw bytes (9): 0x[01, 01, 00, 01, 01, 47, 05, 00, 17]

`

``

211

`+

Raw bytes (9): 0x[01, 01, 00, 01, 01, 3f, 05, 00, 17]

`

211

212

`Number of files: 1

`

212

213

`- file 0 => global file 1

`

213

214

`Number of expressions: 0

`

214

215

`Number of file 0 mappings: 1

`

215

``

`-

`

``

216

`+

`

216

217

``

217

218

`Function name: async::k (unused)

`

218

``

`-

Raw bytes (29): 0x[01, 01, 00, 05, 00, 4f, 01, 01, 0c, 00, 02, 0e, 00, 10, 00, 01, 0e, 00, 10, 00, 01, 0e, 00, 10, 00, 02, 01, 00, 02]

`

``

219

`+

Raw bytes (29): 0x[01, 01, 00, 05, 00, 47, 01, 01, 0c, 00, 02, 0e, 00, 10, 00, 01, 0e, 00, 10, 00, 01, 0e, 00, 10, 00, 02, 01, 00, 02]

`

219

220

`Number of files: 1

`

220

221

`- file 0 => global file 1

`

221

222

`Number of expressions: 0

`

222

223

`Number of file 0 mappings: 5

`

223

``

`-

`

``

224

`+

`

224

225

`- Code(Zero) at (prev + 2, 14) to (start + 0, 16)

`

225

226

`- Code(Zero) at (prev + 1, 14) to (start + 0, 16)

`

226

227

`- Code(Zero) at (prev + 1, 14) to (start + 0, 16)

`

227

228

`- Code(Zero) at (prev + 2, 1) to (start + 0, 2)

`

228

229

``

229

230

`Function name: async::l

`

230

``

`-

Raw bytes (37): 0x[01, 01, 04, 01, 07, 05, 09, 0f, 02, 09, 05, 05, 01, 57, 01, 01, 0c, 02, 02, 0e, 00, 10, 05, 01, 0e, 00, 10, 09, 01, 0e, 00, 10, 0b, 02, 01, 00, 02]

`

``

231

`+

Raw bytes (37): 0x[01, 01, 04, 01, 07, 05, 09, 0f, 02, 09, 05, 05, 01, 4f, 01, 01, 0c, 02, 02, 0e, 00, 10, 05, 01, 0e, 00, 10, 09, 01, 0e, 00, 10, 0b, 02, 01, 00, 02]

`

231

232

`Number of files: 1

`

232

233

`- file 0 => global file 1

`

233

234

`Number of expressions: 4

`

`@@ -236,7 +237,7 @@ Number of expressions: 4

`

236

237

`- expression 2 operands: lhs = Expression(3, Add), rhs = Expression(0, Sub)

`

237

238

`- expression 3 operands: lhs = Counter(2), rhs = Counter(1)

`

238

239

`Number of file 0 mappings: 5

`

239

``

`-

`

``

240

`+

`

240

241

`- Code(Expression(0, Sub)) at (prev + 2, 14) to (start + 0, 16)

`

241

242

` = (c0 - (c1 + c2))

`

242

243

`- Code(Counter(1)) at (prev + 1, 14) to (start + 0, 16)

`

`@@ -245,26 +246,26 @@ Number of file 0 mappings: 5

`

245

246

` = ((c2 + c1) + (c0 - (c1 + c2)))

`

246

247

``

247

248

`Function name: async::m

`

248

``

`-

Raw bytes (9): 0x[01, 01, 00, 01, 01, 5f, 01, 00, 19]

`

``

249

`+

Raw bytes (9): 0x[01, 01, 00, 01, 01, 57, 01, 00, 19]

`

249

250

`Number of files: 1

`

250

251

`- file 0 => global file 1

`

251

252

`Number of expressions: 0

`

252

253

`Number of file 0 mappings: 1

`

253

``

`-

`

``

254

`+

`

254

255

``

255

256

`Function name: async::m::{closure#0} (unused)

`

256

``

`-

Raw bytes (9): 0x[01, 01, 00, 01, 00, 5f, 19, 00, 22]

`

``

257

`+

Raw bytes (9): 0x[01, 01, 00, 01, 00, 57, 19, 00, 22]

`

257

258

`Number of files: 1

`

258

259

`- file 0 => global file 1

`

259

260

`Number of expressions: 0

`

260

261

`Number of file 0 mappings: 1

`

261

``

`-

`

``

262

`+

`

262

263

``

263

264

`Function name: async::main

`

264

``

`-

Raw bytes (9): 0x[01, 01, 00, 01, 01, 61, 01, 08, 02]

`

``

265

`+

Raw bytes (9): 0x[01, 01, 00, 01, 01, 59, 01, 08, 02]

`

265

266

`Number of files: 1

`

266

267

`- file 0 => global file 1

`

267

268

`Number of expressions: 0

`

268

269

`Number of file 0 mappings: 1

`

269

``

`-

`

``

270

`+

`

270

271

``