Skip to content

Commit 1f52c23

Browse files
committed
Fix some tidy errors
Signed-off-by: Ayush <ayushsingh1325@gmail.com>
1 parent e85df7a commit 1f52c23

File tree

6 files changed

+5
-13
lines changed

6 files changed

+5
-13
lines changed

library/std/src/os/uefi/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,5 @@ pub mod env;
66
pub mod ffi;
77
pub mod net;
88
pub mod path;
9-
pub mod process;
109
pub mod raw;
1110
pub mod thread;
12-
13-
#[cfg(test)]
14-
mod tests;

library/std/src/os/uefi/process.rs

Whitespace-only changes.

library/std/src/os/uefi/tests.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/doc/rustc/src/platform-support/unknown-uefi.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pub extern "C" fn main(_h: *mut core::ffi::c_void, _st: *mut core::ffi::c_void)
177177

178178
## Example: Hello World
179179
This is an example UEFI application that prints "Hello World!", then waits for
180-
key input before it exits. It serves as base example how to write UEFI
180+
key input before it exits. It serves as base example how to write UEFI
181181
applications without any helper modules other than the standalone UEFI protocol
182182
definitions provided by the `r-efi` crate.
183183

@@ -337,7 +337,7 @@ compiled from the above source (named custom):
337337
cargo +custom build --target x86_64-unknown-uefi
338338
```
339339

340-
```rust,ignore
340+
```rust,ignore(platform-specific)
341341
pub fn main() {}
342342
```
343343

@@ -355,12 +355,11 @@ compiled from the above source (named custom):
355355
cargo +custom build --target x86_64-unknown-uefi
356356
```
357357

358-
```rust,ignore
358+
```rust,ignore(platform-specific)
359359
pub fn main() {
360360
println!("Enter Name: ");
361361
let mut s = String::new();
362-
io::stdin().read_line(&mut s).expect("Did not enter a correct string");
362+
std::io::stdin().read_line(&mut s).expect("Did not enter a correct string");
363363
println!("Hello World from {}", s);
364364
}
365365
```
366-

src/test/ui/abi/abi-sysv64-arg-passing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ mod tests {
319319
unsafe {
320320
let null = ptr::null();
321321
let q = QuadFloats { a: 10.2, b: 20.3, c: 30.4, d: 40.5 };
322-
assert_eq!(get_c_exhaust_sysv64_ints(null, null, null, null, null, null, null, q), q.c,);
322+
assert_eq!(get_c_exhaust_sysv64_ints(null, null, null, null, null, null, null, q), q.c);
323323
}
324324
}
325325

src/test/ui/cfg/cfg-target-family.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// build-pass
22
// ignore-sgx
33
// ignore-uefi no uefi family
4-
54
// pretty-expanded FIXME #23616
65

76
#[cfg(target_family = "windows")]
@@ -12,4 +11,3 @@ pub fn main() {}
1211

1312
#[cfg(all(target_family = "wasm", not(target_os = "emscripten")))]
1413
pub fn main() {}
15-

0 commit comments

Comments
 (0)