about summary refs log tree commit diff
path: root/src/lib.rs
diff options
context:
space:
mode:
authormcarton <cartonmartin+git@gmail.com>2016-01-16 18:47:45 +0100
committermcarton <cartonmartin+git@gmail.com>2016-01-16 18:47:45 +0100
commitc6604bb281d6f8ca77c33f15e67a26e0ceeb95a3 (patch)
tree7f1fdbd31c45b5ffab38270780dcb5cf073d2627 /src/lib.rs
parent604be945d27c37f3415b52a3c249984a860a2f56 (diff)
downloadrust-c6604bb281d6f8ca77c33f15e67a26e0ceeb95a3.tar.gz
rust-c6604bb281d6f8ca77c33f15e67a26e0ceeb95a3.zip
Add a lint to warn about call to `.*or(foo(..))`
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9bb59693795..4e13ba5c458 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -194,6 +194,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
         methods::OK_EXPECT,
         methods::OPTION_MAP_UNWRAP_OR,
         methods::OPTION_MAP_UNWRAP_OR_ELSE,
+        methods::OR_FUN_CALL,
         methods::SEARCH_IS_SOME,
         methods::SHOULD_IMPLEMENT_TRAIT,
         methods::STR_TO_STRING,