We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e26004 commit 1566db7Copy full SHA for 1566db7
clippy_lints/src/ref_option_ref.rs
@@ -40,7 +40,7 @@ impl<'tcx> LateLintPass<'tcx> for RefOptionRef {
40
if let Some(res) = last.res;
41
if let Some(def_id) = res.opt_def_id();
42
43
- if match_def_path(cx, def_id, &paths::OPTION);
+ if cx.tcx.is_diagnostic_item(sym!(option_type), def_id);
44
if let Some(ref params) = last_path_segment(qpath).args ;
45
if !params.parenthesized;
46
if let Some(inner_ty) = params.args.iter().find_map(|arg| match arg {
0 commit comments