- if is_type_diagnostic_item(cx, return_ty(cx, impl_item.hir_id()), sym::result_type)
- || is_type_diagnostic_item(cx, return_ty(cx, impl_item.hir_id()), sym::option_type);
+ if is_type_diagnostic_item(cx, return_ty(cx, impl_item.hir_id()), sym::Result)
+ || is_type_diagnostic_item(cx, return_ty(cx, impl_item.hir_id()), sym::Option);