mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-23 12:23:22 +00:00
more clippylike (from issue title)
This commit is contained in:
parent
ae635a60e6
commit
7bb411c239
@ -75,7 +75,7 @@ impl LintPass for TypePass {
|
||||
for path in dlists.iter() {
|
||||
if match_ty_unwrap(ty, path.as_slice()).is_some() {
|
||||
span_note_and_lint(cx, CLIPPY_DLIST, ty.span,
|
||||
"You seem to be trying to use a DList. Perhaps you meant some other data structure?",
|
||||
"I see you're using a DList! Perhaps you meant some other data structure?",
|
||||
"A RingBuf might work.");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user