Skip to content

Commit fc6c19e

Browse files
committed
fix rebase
1 parent 86b3f3f commit fc6c19e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

compiler/rustc_hir/src/hir.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// ignore-tidy-filelength
2-
use crate::def::{DefKind, Namespace, Res};
32
use crate::def::{CtorKind, DefKind, Namespace, Res};
43
use crate::def_id::DefId;
54
crate use crate::hir_id::HirId;
@@ -1562,7 +1561,7 @@ impl Expr<'_> {
15621561
ExprKind::Type(base, _)
15631562
| ExprKind::Unary(_, base)
15641563
| ExprKind::Field(base, _)
1565-
| ExprKind::Index(base, _)
1564+
| ExprKind::Index(base, _)
15661565
| ExprKind::AddrOf(.., base)
15671566
| ExprKind::Cast(base, _) => {
15681567
// This isn't exactly true for `Index` and all `Unnary`, but we are using this

src/test/ui/return/tail-expr-as-potential-return.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ error[E0308]: mismatched types
33
|
44
LL | / if x {
55
LL | | Err(42)
6-
| | ^^^^^^^ expected `()`, found enum `std::result::Result`
6+
| | ^^^^^^^ expected `()`, found enum `Result`
77
LL | | }
88
| |_____- expected this to be `()`
99
|
1010
= note: expected unit type `()`
11-
found enum `std::result::Result<_, {integer}>`
11+
found enum `Result<_, {integer}>`
1212
help: you might have meant to return this value
1313
|
1414
LL | return Err(42);

0 commit comments

Comments
 (0)