The following code:
#![warn(rust_2018_compatibility)]
#![allow(dead_code, unused_imports)]
#![feature(rust_2018_preview)]
extern crate libc as foo;
use foo::getpid;
fn main() {}
generates no warnings, but when compiling with --edition 2018 it will yield an error about no crate foo