Skip to content

Commit 2f549aa

Browse files
authored
Rollup merge of #128368 - nnethercote:rustfmt-tweaks, r=cuviper
Formatting tweaks Some small post-#125443 formatting tweaks. r? ``@cuviper``
2 parents 95d9f1c + 70fcf9e commit 2f549aa

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

compiler/rustc_lint/src/macro_expr_fragment_specifier_2024_migration.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//! Migration code for the `expr_fragment_specifier_2024`
2-
//! rule.
1+
//! Migration code for the `expr_fragment_specifier_2024` rule.
2+
33
use rustc_ast::token::{Token, TokenKind};
44
use rustc_ast::tokenstream::{TokenStream, TokenTree};
55
use rustc_session::lint::FutureIncompatibilityReason;

library/std/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,6 @@ mod panicking;
667667
#[allow(dead_code, unused_attributes, fuzzy_provenance_casts, unsafe_op_in_unsafe_fn)]
668668
mod backtrace_rs;
669669

670-
// Re-export macros defined in core.
671670
#[unstable(feature = "cfg_match", issue = "115585")]
672671
pub use core::cfg_match;
673672
#[unstable(
@@ -686,6 +685,7 @@ pub use core::{
686685
env, file, format_args, format_args_nl, include, include_bytes, include_str, line, log_syntax,
687686
module_path, option_env, stringify, trace_macros,
688687
};
688+
// Re-export macros defined in core.
689689
#[stable(feature = "rust1", since = "1.0.0")]
690690
#[allow(deprecated, deprecated_in_future)]
691691
pub use core::{

library/std/src/sys/pal/sgx/thread.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![cfg_attr(test, allow(dead_code))] // why is this necessary?
2+
23
use super::abi::usercalls;
34
use super::unsupported;
45
use crate::ffi::CStr;

library/std/src/sys/pal/windows/net.rs

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pub mod netc {
2121
//!
2222
//! Some Windows API types are not quite what's expected by our cross-platform
2323
//! net code. E.g. naming differences or different pointer types.
24+
2425
use core::ffi::{c_char, c_int, c_uint, c_ulong, c_ushort, c_void};
2526

2627
use crate::sys::c::{self, ADDRESS_FAMILY, ADDRINFOA, SOCKADDR, SOCKET};

0 commit comments

Comments
 (0)