From 005e64b663f2105d59392eef55ce1b4f5e7eb22c Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Thu, 12 Sep 2019 15:45:43 +0200 Subject: [PATCH] Do not require using extern instead of extern C --- ci/style.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ci/style.rs b/ci/style.rs index 70fc0a0814377..dcb3536ec30ba 100644 --- a/ci/style.rs +++ b/ci/style.rs @@ -17,7 +17,6 @@ //! * No trailing whitespace //! * No tabs //! * 80-character lines -//! * `extern` instead of `extern "C"` //! * Specific module layout: //! 1. use directives //! 2. typedefs @@ -126,9 +125,6 @@ fn check_style(file: &str, path: &Path, err: &mut Errors) { if line.len() > 80 { err.error(path, i, "line longer than 80 chars"); } - if line.contains("extern \"C\"") { - err.error(path, i, "use `extern` instead of `extern \"C\""); - } if line.contains("#[cfg(") && !line.contains(" if ") && !(line.contains("target_endian") || line.contains("target_arch"))