Skip to content

Commit d161d06

Browse files
committed
rustfmt tests/run-make-fulldeps/.
Note: I inserted blank lines between the items in `pretty-expanded/input.rs` because it looked better that way.
1 parent 5875f3f commit d161d06

File tree

3 files changed

+30
-9
lines changed

3 files changed

+30
-9
lines changed

rustfmt.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ ignore = [
1717
"/tests/incremental/", # These tests are somewhat sensitive to source code layout.
1818
"/tests/pretty/", # These tests are very sensitive to source code layout.
1919
"/tests/run-make/translation/test.rs", # This test contains syntax errors.
20-
"/tests/run-make-fulldeps/",
2120
"/tests/run-pass-valgrind/",
2221
"/tests/rustdoc/",
2322
"/tests/rustdoc-gui/",

tests/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ use std::any::Any;
2727
struct TheBackend;
2828

2929
impl CodegenBackend for TheBackend {
30-
fn locale_resource(&self) -> &'static str { "" }
30+
fn locale_resource(&self) -> &'static str {
31+
""
32+
}
3133

3234
fn codegen_crate<'a, 'tcx>(
3335
&self,
@@ -62,7 +64,10 @@ impl CodegenBackend for TheBackend {
6264
codegen_results: CodegenResults,
6365
outputs: &OutputFilenames,
6466
) -> Result<(), ErrorGuaranteed> {
65-
use rustc_session::{config::{CrateType, OutFileName}, output::out_filename};
67+
use rustc_session::{
68+
config::{CrateType, OutFileName},
69+
output::out_filename,
70+
};
6671
use std::io::Write;
6772
let crate_name = codegen_results.crate_info.local_crate_name;
6873
for &crate_type in sess.opts.crate_types.iter() {
Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
// #13544
22

3-
#[derive(Debug)] pub struct A;
4-
#[derive(Debug)] pub struct B(isize);
5-
#[derive(Debug)] pub struct C { x: isize }
6-
#[derive(Debug)] pub enum D {}
7-
#[derive(Debug)] pub enum E { y }
8-
#[derive(Debug)] pub enum F { z(isize) }
3+
#[derive(Debug)]
4+
pub struct A;
5+
6+
#[derive(Debug)]
7+
pub struct B(isize);
8+
9+
#[derive(Debug)]
10+
pub struct C {
11+
x: isize,
12+
}
13+
14+
#[derive(Debug)]
15+
pub enum D {}
16+
17+
#[derive(Debug)]
18+
pub enum E {
19+
y,
20+
}
21+
22+
#[derive(Debug)]
23+
pub enum F {
24+
z(isize),
25+
}

0 commit comments

Comments
 (0)