From b989101a558f0c2963a6a42b068c81f8b4606988 Mon Sep 17 00:00:00 2001 From: "Zack M. Davis" Date: Sun, 1 Oct 2017 16:44:33 -0700 Subject: make non_snake_case lint allow extern no-mangle functions Resolves #31924. --- src/test/compile-fail/issue-31924-non-snake-ffi.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/test/compile-fail/issue-31924-non-snake-ffi.rs (limited to 'src/test/compile-fail') diff --git a/src/test/compile-fail/issue-31924-non-snake-ffi.rs b/src/test/compile-fail/issue-31924-non-snake-ffi.rs new file mode 100644 index 00000000000..d9ce1159c0e --- /dev/null +++ b/src/test/compile-fail/issue-31924-non-snake-ffi.rs @@ -0,0 +1,18 @@ +// Copyright 2017 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![feature(rustc_attrs)] +#![deny(non_snake_case)] + +#[no_mangle] +pub extern "C" fn SparklingGenerationForeignFunctionInterface() {} + +#[rustc_error] +fn main() {} //~ ERROR compilation successful -- cgit 1.4.1-3-g733a5