fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1DefId(0:8 ~ thir_flat_const_variant[1f54]::{impl#0}::BAR1): 2Thir { 3 body_type: Const( 4 Foo, 5 ), 6 arms: [], 7 blocks: [], 8 exprs: [ 9 Expr { 10 kind: Tuple { 11 fields: [], 12 }, 13 ty: (), 14 temp_lifetime: Some( 15 Node(3), 16 ), 17 span: $DIR/thir-flat-const-variant.rs:12:32: 12:34 (#0), 18 }, 19 Expr { 20 kind: Scope { 21 region_scope: Node(7), 22 lint_level: Explicit( 23 HirId(DefId(0:8 ~ thir_flat_const_variant[1f54]::{impl#0}::BAR1).7), 24 ), 25 value: e0, 26 }, 27 ty: (), 28 temp_lifetime: Some( 29 Node(3), 30 ), 31 span: $DIR/thir-flat-const-variant.rs:12:32: 12:34 (#0), 32 }, 33 Expr { 34 kind: Adt( 35 AdtExpr { 36 adt_def: Foo, 37 variant_index: 0, 38 args: [], 39 user_ty: None, 40 fields: [ 41 FieldExpr { 42 name: 0, 43 expr: e1, 44 }, 45 ], 46 base: None, 47 }, 48 ), 49 ty: Foo, 50 temp_lifetime: Some( 51 Node(3), 52 ), 53 span: $DIR/thir-flat-const-variant.rs:12:23: 12:35 (#0), 54 }, 55 Expr { 56 kind: Scope { 57 region_scope: Node(3), 58 lint_level: Explicit( 59 HirId(DefId(0:8 ~ thir_flat_const_variant[1f54]::{impl#0}::BAR1).3), 60 ), 61 value: e2, 62 }, 63 ty: Foo, 64 temp_lifetime: Some( 65 Node(3), 66 ), 67 span: $DIR/thir-flat-const-variant.rs:12:23: 12:35 (#0), 68 }, 69 Expr { 70 kind: Scope { 71 region_scope: Destruction(3), 72 lint_level: Inherited, 73 value: e3, 74 }, 75 ty: Foo, 76 temp_lifetime: Some( 77 Node(3), 78 ), 79 span: $DIR/thir-flat-const-variant.rs:12:23: 12:35 (#0), 80 }, 81 ], 82 stmts: [], 83 params: [], 84} 85 86DefId(0:9 ~ thir_flat_const_variant[1f54]::{impl#0}::BAR2): 87Thir { 88 body_type: Const( 89 Foo, 90 ), 91 arms: [], 92 blocks: [], 93 exprs: [ 94 Expr { 95 kind: Tuple { 96 fields: [], 97 }, 98 ty: (), 99 temp_lifetime: Some( 100 Node(3), 101 ), 102 span: $DIR/thir-flat-const-variant.rs:13:33: 13:35 (#0), 103 }, 104 Expr { 105 kind: Scope { 106 region_scope: Node(8), 107 lint_level: Explicit( 108 HirId(DefId(0:9 ~ thir_flat_const_variant[1f54]::{impl#0}::BAR2).8), 109 ), 110 value: e0, 111 }, 112 ty: (), 113 temp_lifetime: Some( 114 Node(3), 115 ), 116 span: $DIR/thir-flat-const-variant.rs:13:33: 13:35 (#0), 117 }, 118 Expr { 119 kind: Adt( 120 AdtExpr { 121 adt_def: Foo, 122 variant_index: 0, 123 args: [], 124 user_ty: None, 125 fields: [ 126 FieldExpr { 127 name: 0, 128 expr: e1, 129 }, 130 ], 131 base: None, 132 }, 133 ), 134 ty: Foo, 135 temp_lifetime: Some( 136 Node(3), 137 ), 138 span: $DIR/thir-flat-const-variant.rs:13:23: 13:36 (#0), 139 }, 140 Expr { 141 kind: Scope { 142 region_scope: Node(3), 143 lint_level: Explicit( 144 HirId(DefId(0:9 ~ thir_flat_const_variant[1f54]::{impl#0}::BAR2).3), 145 ), 146 value: e2, 147 }, 148 ty: Foo, 149 temp_lifetime: Some( 150 Node(3), 151 ), 152 span: $DIR/thir-flat-const-variant.rs:13:23: 13:36 (#0), 153 }, 154 Expr { 155 kind: Scope { 156 region_scope: Destruction(3), 157 lint_level: Inherited, 158 value: e3, 159 }, 160 ty: Foo, 161 temp_lifetime: Some( 162 Node(3), 163 ), 164 span: $DIR/thir-flat-const-variant.rs:13:23: 13:36 (#0), 165 }, 166 ], 167 stmts: [], 168 params: [], 169} 170 171DefId(0:10 ~ thir_flat_const_variant[1f54]::{impl#0}::BAR3): 172Thir { 173 body_type: Const( 174 Foo, 175 ), 176 arms: [], 177 blocks: [], 178 exprs: [ 179 Expr { 180 kind: Tuple { 181 fields: [], 182 }, 183 ty: (), 184 temp_lifetime: Some( 185 Node(3), 186 ), 187 span: $DIR/thir-flat-const-variant.rs:14:33: 14:35 (#0), 188 }, 189 Expr { 190 kind: Scope { 191 region_scope: Node(7), 192 lint_level: Explicit( 193 HirId(DefId(0:10 ~ thir_flat_const_variant[1f54]::{impl#0}::BAR3).7), 194 ), 195 value: e0, 196 }, 197 ty: (), 198 temp_lifetime: Some( 199 Node(3), 200 ), 201 span: $DIR/thir-flat-const-variant.rs:14:33: 14:35 (#0), 202 }, 203 Expr { 204 kind: Adt( 205 AdtExpr { 206 adt_def: Foo, 207 variant_index: 0, 208 args: [], 209 user_ty: None, 210 fields: [ 211 FieldExpr { 212 name: 0, 213 expr: e1, 214 }, 215 ], 216 base: None, 217 }, 218 ), 219 ty: Foo, 220 temp_lifetime: Some( 221 Node(3), 222 ), 223 span: $DIR/thir-flat-const-variant.rs:14:24: 14:36 (#0), 224 }, 225 Expr { 226 kind: Scope { 227 region_scope: Node(3), 228 lint_level: Explicit( 229 HirId(DefId(0:10 ~ thir_flat_const_variant[1f54]::{impl#0}::BAR3).3), 230 ), 231 value: e2, 232 }, 233 ty: Foo, 234 temp_lifetime: Some( 235 Node(3), 236 ), 237 span: $DIR/thir-flat-const-variant.rs:14:24: 14:36 (#0), 238 }, 239 Expr { 240 kind: Scope { 241 region_scope: Destruction(3), 242 lint_level: Inherited, 243 value: e3, 244 }, 245 ty: Foo, 246 temp_lifetime: Some( 247 Node(3), 248 ), 249 span: $DIR/thir-flat-const-variant.rs:14:24: 14:36 (#0), 250 }, 251 ], 252 stmts: [], 253 params: [], 254} 255 256DefId(0:11 ~ thir_flat_const_variant[1f54]::{impl#0}::BAR4): 257Thir { 258 body_type: Const( 259 Foo, 260 ), 261 arms: [], 262 blocks: [], 263 exprs: [ 264 Expr { 265 kind: Tuple { 266 fields: [], 267 }, 268 ty: (), 269 temp_lifetime: Some( 270 Node(3), 271 ), 272 span: $DIR/thir-flat-const-variant.rs:15:34: 15:36 (#0), 273 }, 274 Expr { 275 kind: Scope { 276 region_scope: Node(8), 277 lint_level: Explicit( 278 HirId(DefId(0:11 ~ thir_flat_const_variant[1f54]::{impl#0}::BAR4).8), 279 ), 280 value: e0, 281 }, 282 ty: (), 283 temp_lifetime: Some( 284 Node(3), 285 ), 286 span: $DIR/thir-flat-const-variant.rs:15:34: 15:36 (#0), 287 }, 288 Expr { 289 kind: Adt( 290 AdtExpr { 291 adt_def: Foo, 292 variant_index: 0, 293 args: [], 294 user_ty: None, 295 fields: [ 296 FieldExpr { 297 name: 0, 298 expr: e1, 299 }, 300 ], 301 base: None, 302 }, 303 ), 304 ty: Foo, 305 temp_lifetime: Some( 306 Node(3), 307 ), 308 span: $DIR/thir-flat-const-variant.rs:15:24: 15:37 (#0), 309 }, 310 Expr { 311 kind: Scope { 312 region_scope: Node(3), 313 lint_level: Explicit( 314 HirId(DefId(0:11 ~ thir_flat_const_variant[1f54]::{impl#0}::BAR4).3), 315 ), 316 value: e2, 317 }, 318 ty: Foo, 319 temp_lifetime: Some( 320 Node(3), 321 ), 322 span: $DIR/thir-flat-const-variant.rs:15:24: 15:37 (#0), 323 }, 324 Expr { 325 kind: Scope { 326 region_scope: Destruction(3), 327 lint_level: Inherited, 328 value: e3, 329 }, 330 ty: Foo, 331 temp_lifetime: Some( 332 Node(3), 333 ), 334 span: $DIR/thir-flat-const-variant.rs:15:24: 15:37 (#0), 335 }, 336 ], 337 stmts: [], 338 params: [], 339} 340 341DefId(0:12 ~ thir_flat_const_variant[1f54]::main): 342Thir { 343 body_type: Fn( 344 fn(), 345 ), 346 arms: [], 347 blocks: [ 348 Block { 349 targeted_by_break: false, 350 region_scope: Node(1), 351 opt_destruction_scope: None, 352 span: $DIR/thir-flat-const-variant.rs:18:11: 18:13 (#0), 353 stmts: [], 354 expr: None, 355 safety_mode: Safe, 356 }, 357 ], 358 exprs: [ 359 Expr { 360 kind: Block { 361 block: b0, 362 }, 363 ty: (), 364 temp_lifetime: Some( 365 Node(2), 366 ), 367 span: $DIR/thir-flat-const-variant.rs:18:11: 18:13 (#0), 368 }, 369 Expr { 370 kind: Scope { 371 region_scope: Node(2), 372 lint_level: Explicit( 373 HirId(DefId(0:12 ~ thir_flat_const_variant[1f54]::main).2), 374 ), 375 value: e0, 376 }, 377 ty: (), 378 temp_lifetime: Some( 379 Node(2), 380 ), 381 span: $DIR/thir-flat-const-variant.rs:18:11: 18:13 (#0), 382 }, 383 Expr { 384 kind: Scope { 385 region_scope: Destruction(2), 386 lint_level: Inherited, 387 value: e1, 388 }, 389 ty: (), 390 temp_lifetime: Some( 391 Node(2), 392 ), 393 span: $DIR/thir-flat-const-variant.rs:18:11: 18:13 (#0), 394 }, 395 ], 396 stmts: [], 397 params: [], 398} 399