Skip to content

Commit 7fd74c6

Browse files
committed
clippy_lint: Add Known Problems message
1 parent 1566db7 commit 7fd74c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clippy_lints/src/ref_option_ref.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::utils::{last_path_segment, match_def_path, paths, snippet, span_lint_and_sugg};
1+
use crate::utils::{last_path_segment, snippet, span_lint_and_sugg};
22
use rustc_hir::{GenericArg, Mutability, Ty, TyKind};
33
use rustc_lint::{LateContext, LateLintPass};
44
use rustc_session::{declare_lint_pass, declare_tool_lint};
@@ -12,7 +12,8 @@ declare_clippy_lint! {
1212
/// **Why is this bad?** Since `&` is Copy, it's useless to have a
1313
/// reference on `Option<&T>`.
1414
///
15-
/// **Known problems:** None.
15+
/// **Known problems:** It may be irrevelent to use this lint on
16+
/// public API code as it will make a breaking change to apply it.
1617
///
1718
/// **Example:**
1819
///

0 commit comments

Comments
 (0)