about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2021-03-08 15:43:18 -0800
committerManish Goregaokar <manishsmail@gmail.com>2021-04-12 09:45:59 -0700
commit664c3e71b8eebf824f5e652e0f0511acda99394c (patch)
treec79297deeb720f22d3db668cad5d686c3251a1f5 /library/std/src
parentc18c0ad2bc5988ca7953459e5a35ece8e69e35e7 (diff)
downloadrust-664c3e71b8eebf824f5e652e0f0511acda99394c.tar.gz
rust-664c3e71b8eebf824f5e652e0f0511acda99394c.zip
Turn old edition lints (anonymous-parameters, keyword-idents) into warn-by-default on 2015
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/keyword_docs.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/keyword_docs.rs b/library/std/src/keyword_docs.rs
index 2a3d44fb17d..39ed62425ce 100644
--- a/library/std/src/keyword_docs.rs
+++ b/library/std/src/keyword_docs.rs
@@ -1768,6 +1768,7 @@ mod super_keyword {}
 /// In the 2015 edition the parameters pattern was not needed for traits:
 ///
 /// ```rust,edition2015
+/// # #![allow(anonymous_parameters)]
 /// trait Tr {
 ///     fn f(i32);
 /// }