- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Closed
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.
Description
Itunsupported is only called on line 53:
rust/src/librustc_mir/build/mod.rs
Lines 40 to 53 in a05f82f
| let unsupported = || { | |
| span_bug!(tcx.hir.span(id), "can't build MIR for {:?}", def_id); | |
| }; | |
| // Figure out what primary body this item has. | |
| let body_id = match tcx.hir.get(id) { | |
| hir::map::NodeVariant(variant) => | |
| return create_constructor_shim(tcx, id, &variant.node.data), | |
| hir::map::NodeStructCtor(ctor) => | |
| return create_constructor_shim(tcx, id, ctor), | |
| _ => match tcx.hir.maybe_body_owned_by(id) { | |
| Some(body) => body, | |
| None => unsupported(), | 
Metadata
Metadata
Assignees
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.