Skip to content
Snippets Groups Projects
Unverified Commit ca2d53e2 authored by Aaron Hill's avatar Aaron Hill
Browse files

Run 'cargo fmt'

parent 476b6759
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,8 @@ fn main() { ...@@ -7,7 +7,8 @@ fn main() {
rustc_minor_nightly().expect("Failed to get rustc version"); rustc_minor_nightly().expect("Failed to get rustc version");
let rustc_dep_of_std = env::var("CARGO_FEATURE_RUSTC_DEP_OF_STD").is_ok(); let rustc_dep_of_std = env::var("CARGO_FEATURE_RUSTC_DEP_OF_STD").is_ok();
let align_cargo_feature = env::var("CARGO_FEATURE_ALIGN").is_ok(); let align_cargo_feature = env::var("CARGO_FEATURE_ALIGN").is_ok();
let const_extern_fn_cargo_feature = env::var("CARGO_FEATURE_CONST_EXTERN_FN").is_ok(); let const_extern_fn_cargo_feature =
env::var("CARGO_FEATURE_CONST_EXTERN_FN").is_ok();
let libc_ci = env::var("LIBC_CI").is_ok(); let libc_ci = env::var("LIBC_CI").is_ok();
if env::var("CARGO_FEATURE_USE_STD").is_ok() { if env::var("CARGO_FEATURE_USE_STD").is_ok() {
...@@ -103,7 +104,8 @@ fn rustc_minor_nightly() -> Option<(u32, bool)> { ...@@ -103,7 +104,8 @@ fn rustc_minor_nightly() -> Option<(u32, bool)> {
let minor = pieces.next(); let minor = pieces.next();
let nightly_raw = otry!(otry!(pieces.next()).split('-').nth(1)); let nightly_raw = otry!(otry!(pieces.next()).split('-').nth(1));
let nightly = nightly_raw.starts_with("dev") || nightly_raw.starts_with("nightly"); let nightly =
nightly_raw.starts_with("dev") || nightly_raw.starts_with("nightly");
let minor = otry!(otry!(minor).parse().ok()); let minor = otry!(otry!(minor).parse().ok());
Some((minor, nightly)) Some((minor, nightly))
......
#![cfg(libc_const_extern_fn)] // If this does not hold, the file is empty #![cfg(libc_const_extern_fn)] // If this does not hold, the file is empty
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
const _FOO: libc::c_uint = unsafe { libc::CMSG_SPACE(1) }; const _FOO: libc::c_uint = unsafe { libc::CMSG_SPACE(1) };
//^ if CMSG_SPACE is not const, this will fail to compile //^ if CMSG_SPACE is not const, this will fail to compile
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment