Skip to content

Commit 1e6f753

Browse files
committed
Fix tidy
1 parent 3b6d46c commit 1e6f753

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/librustc/infer/error_reporting/need_type_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
175175
name,
176176
))
177177
}
178-
Some(ty::TyS { sty: ty::TyKind::Closure(def_id, substs), .. }) => {
178+
Some(ty::TyS { sty: ty::Closure(def_id, substs), .. }) => {
179179
let msg = " for the closure".to_string();
180180
let fn_sig = substs.closure_sig(*def_id, self.tcx);
181181
let args = fn_sig.inputs()

src/test/ui/inference/cannot-infer-async-enabled-impl-trait-bindings.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
use std::io::Error;
77

8-
fn make_unit() -> Result<(), Error> {
8+
fn make_unit() -> Result<(), Error> {
99
Ok(())
1010
}
1111

1212
fn main() {
1313
let fut = async {
1414
make_unit()?; //~ ERROR type annotations needed
15-
15+
1616
Ok(())
1717
};
1818
}

src/test/ui/inference/cannot-infer-async.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
use std::io::Error;
55

6-
fn make_unit() -> Result<(), Error> {
6+
fn make_unit() -> Result<(), Error> {
77
Ok(())
88
}
99

1010
fn main() {
1111
let fut = async {
1212
make_unit()?; //~ ERROR type annotations needed
13-
13+
1414
Ok(())
1515
};
1616
}

0 commit comments

Comments
 (0)