diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-30 07:21:13 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-30 07:25:15 +1000 |
| commit | 70fcf9e7908cfa3da975a322b4aa533ad67d52ec (patch) | |
| tree | 112144479dee1f2fe5e55e83fd3b5d3eabc4f6c6 | |
| parent | bd24763aaf32fe92e79491aba05346b570301647 (diff) | |
| download | rust-70fcf9e7908cfa3da975a322b4aa533ad67d52ec.tar.gz rust-70fcf9e7908cfa3da975a322b4aa533ad67d52ec.zip | |
Insert some blank lines.
After things that are immediately followed by a `use` declaration and look like they might apply to that `use` item but actually don't.
| -rw-r--r-- | compiler/rustc_lint/src/macro_expr_fragment_specifier_2024_migration.rs | 4 | ||||
| -rw-r--r-- | library/std/src/sys/pal/sgx/thread.rs | 1 | ||||
| -rw-r--r-- | library/std/src/sys/pal/windows/net.rs | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/macro_expr_fragment_specifier_2024_migration.rs b/compiler/rustc_lint/src/macro_expr_fragment_specifier_2024_migration.rs index c39c86f6fe8..e3b1967da09 100644 --- a/compiler/rustc_lint/src/macro_expr_fragment_specifier_2024_migration.rs +++ b/compiler/rustc_lint/src/macro_expr_fragment_specifier_2024_migration.rs @@ -1,5 +1,5 @@ -//! Migration code for the `expr_fragment_specifier_2024` -//! rule. +//! Migration code for the `expr_fragment_specifier_2024` rule. + use rustc_ast::token::{Token, TokenKind}; use rustc_ast::tokenstream::{TokenStream, TokenTree}; use rustc_session::lint::FutureIncompatibilityReason; diff --git a/library/std/src/sys/pal/sgx/thread.rs b/library/std/src/sys/pal/sgx/thread.rs index df65d1cc8fc..cecd53c352c 100644 --- a/library/std/src/sys/pal/sgx/thread.rs +++ b/library/std/src/sys/pal/sgx/thread.rs @@ -1,4 +1,5 @@ #![cfg_attr(test, allow(dead_code))] // why is this necessary? + use super::abi::usercalls; use super::unsupported; use crate::ffi::CStr; diff --git a/library/std/src/sys/pal/windows/net.rs b/library/std/src/sys/pal/windows/net.rs index e27fdb72256..ce995f5ed5a 100644 --- a/library/std/src/sys/pal/windows/net.rs +++ b/library/std/src/sys/pal/windows/net.rs @@ -21,6 +21,7 @@ pub mod netc { //! //! Some Windows API types are not quite what's expected by our cross-platform //! net code. E.g. naming differences or different pointer types. + use core::ffi::{c_char, c_int, c_uint, c_ulong, c_ushort, c_void}; use crate::sys::c::{self, ADDRESS_FAMILY, ADDRINFOA, SOCKADDR, SOCKET}; |
