Itunsupported is only called on line 53:
|
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(), |
It
unsupportedis only called on line 53:rust/src/librustc_mir/build/mod.rs
Lines 40 to 53 in a05f82f