Skip to content

Commit d0d30b0

Browse files
committed
fix rebase
1 parent 2e2f820 commit d0d30b0

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/librustc_infer/infer/error_reporting/nice_region_error/trait_impl_difference.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//! Error Reporting for `impl` items that do not match the obligations from their `trait`.
22
3-
use crate::hir;
4-
use crate::hir::def_id::DefId;
53
use crate::infer::error_reporting::nice_region_error::NiceRegionError;
64
use crate::infer::lexical_region_resolve::RegionResolutionError;
75
use crate::infer::{Subtype, ValuePairs};
86
use crate::traits::ObligationCauseCode::CompareImplMethodObligation;
97
use rustc_data_structures::fx::FxIndexSet;
108
use rustc_errors::ErrorReported;
9+
use rustc_hir::def_id::DefId;
10+
use rustc_hir::ItemKind;
1111
use rustc_middle::ty::error::ExpectedFound;
1212
use rustc_middle::ty::fold::TypeFoldable;
1313
use rustc_middle::ty::{self, Ty};
@@ -85,7 +85,7 @@ impl<'a, 'tcx> NiceRegionError<'a, 'tcx> {
8585
if let Some(id) = tcx.hir().as_local_hir_id(trait_def_id) {
8686
let parent_id = tcx.hir().get_parent_item(id);
8787
let trait_item = tcx.hir().expect_item(parent_id);
88-
if let hir::ItemKind::Trait(_, _, generics, _, _) = &trait_item.kind {
88+
if let ItemKind::Trait(_, _, generics, _, _) = &trait_item.kind {
8989
for param_ty in visitor.0 {
9090
if let Some(generic) = generics.get_named(param_ty.name) {
9191
err.span_label(generic.span, &format!(

src/test/ui/issues/issue-20831-debruijn.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ note: ...so that the types are compatible
8787
|
8888
LL | fn subscribe(&mut self, t : Box<dyn Subscriber<Input=<Self as Publisher>::Output> + 'a>) {
8989
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
90-
= note: expected `Publisher<'_>`
91-
found `Publisher<'_>`
90+
= note: expected `Publisher<'_>`
91+
found `Publisher<'_>`
9292

9393
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
9494
--> $DIR/issue-20831-debruijn.rs:28:33

src/test/ui/regions/regions-normalize-in-where-clause-list.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ LL | | where <() as Project<'a, 'b>>::Item : Eq
6363
LL | | {
6464
LL | | }
6565
| |_^
66-
= note: expected `Project<'a, 'b>`
67-
found `Project<'_, '_>`
66+
= note: expected `Project<'a, 'b>`
67+
found `Project<'_, '_>`
6868

6969
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
7070
--> $DIR/regions-normalize-in-where-clause-list.rs:22:4
@@ -87,8 +87,8 @@ note: ...so that the types are compatible
8787
|
8888
LL | fn bar<'a, 'b>()
8989
| ^^^
90-
= note: expected `Project<'a, 'b>`
91-
found `Project<'_, '_>`
90+
= note: expected `Project<'a, 'b>`
91+
found `Project<'_, '_>`
9292

9393
error: aborting due to 3 previous errors
9494

0 commit comments

Comments
 (0)