@@ -17,8 +17,8 @@ use crate::ty::{GenericArgsRef, TyCtxt};
1717
1818use rustc_data_structures:: sync:: Lrc ;
1919use rustc_errors:: { Applicability , Diag , EmissionGuarantee } ;
20- use rustc_hir as hir;
2120use rustc_hir:: def_id:: DefId ;
21+ use rustc_hir:: { HirId , MatchSource } ;
2222use rustc_span:: def_id:: { LocalDefId , CRATE_DEF_ID } ;
2323use rustc_span:: symbol:: Symbol ;
2424use rustc_span:: { Span , DUMMY_SP } ;
@@ -262,10 +262,10 @@ pub enum ObligationCauseCode<'tcx> {
262262 /// expression that caused the obligation, and the `usize`
263263 /// indicates exactly which predicate it is in the list of
264264 /// instantiated predicates.
265- ExprItemObligation ( DefId , rustc_hir :: HirId , usize ) ,
265+ ExprItemObligation ( DefId , HirId , usize ) ,
266266
267267 /// Combines `ExprItemObligation` and `BindingObligation`.
268- ExprBindingObligation ( DefId , Span , rustc_hir :: HirId , usize ) ,
268+ ExprBindingObligation ( DefId , Span , HirId , usize ) ,
269269
270270 /// A type like `&'a T` is WF only if `T: 'a`.
271271 ReferenceOutlivesReferent ( Ty < ' tcx > ) ,
@@ -287,13 +287,13 @@ pub enum ObligationCauseCode<'tcx> {
287287 /// `S { ... }` must be `Sized`.
288288 StructInitializerSized ,
289289 /// Type of each variable must be `Sized`.
290- VariableType ( hir :: HirId ) ,
290+ VariableType ( HirId ) ,
291291 /// Argument type must be `Sized`.
292- SizedArgumentType ( Option < hir :: HirId > ) ,
292+ SizedArgumentType ( Option < HirId > ) ,
293293 /// Return type must be `Sized`.
294294 SizedReturnType ,
295295 /// Return type of a call expression must be `Sized`.
296- SizedCallReturnType ( Option < hir :: HirId > ) ,
296+ SizedCallReturnType ( Option < HirId > ) ,
297297 /// Yield type must be `Sized`.
298298 SizedYieldType ,
299299 /// Inline asm operand type must be `Sized`.
@@ -335,9 +335,9 @@ pub enum ObligationCauseCode<'tcx> {
335335
336336 FunctionArgumentObligation {
337337 /// The node of the relevant argument in the function call.
338- arg_hir_id : hir :: HirId ,
338+ arg_hir_id : HirId ,
339339 /// The node of the function call.
340- call_hir_id : hir :: HirId ,
340+ call_hir_id : HirId ,
341341 /// The obligation introduced by this argument.
342342 parent_code : InternedObligationCauseCode < ' tcx > ,
343343 } ,
@@ -402,18 +402,18 @@ pub enum ObligationCauseCode<'tcx> {
402402 ReturnNoExpression ,
403403
404404 /// `return` with an expression
405- ReturnValue ( hir :: HirId ) ,
405+ ReturnValue ( HirId ) ,
406406
407407 /// Opaque return type of this function
408408 OpaqueReturnType ( Option < ( Ty < ' tcx > , Span ) > ) ,
409409
410410 /// Block implicit return
411- BlockTailExpression ( hir :: HirId , hir :: MatchSource ) ,
411+ BlockTailExpression ( HirId , MatchSource ) ,
412412
413413 /// #[feature(trivial_bounds)] is not enabled
414414 TrivialBound ,
415415
416- AwaitableExpr ( hir :: HirId ) ,
416+ AwaitableExpr ( HirId ) ,
417417
418418 ForLoopIterator ,
419419
@@ -431,8 +431,8 @@ pub enum ObligationCauseCode<'tcx> {
431431 MatchImpl ( ObligationCause < ' tcx > , DefId ) ,
432432
433433 BinOp {
434- lhs_hir_id : hir :: HirId ,
435- rhs_hir_id : Option < hir :: HirId > ,
434+ lhs_hir_id : HirId ,
435+ rhs_hir_id : Option < HirId > ,
436436 rhs_span : Option < Span > ,
437437 rhs_is_lit : bool ,
438438 output_ty : Option < Ty < ' tcx > > ,
@@ -562,14 +562,14 @@ pub enum StatementAsExpression {
562562#[ derive( Clone , Debug , PartialEq , Eq , HashStable , TyEncodable , TyDecodable ) ]
563563#[ derive( TypeVisitable , TypeFoldable ) ]
564564pub struct MatchExpressionArmCause < ' tcx > {
565- pub arm_block_id : Option < hir :: HirId > ,
565+ pub arm_block_id : Option < HirId > ,
566566 pub arm_ty : Ty < ' tcx > ,
567567 pub arm_span : Span ,
568- pub prior_arm_block_id : Option < hir :: HirId > ,
568+ pub prior_arm_block_id : Option < HirId > ,
569569 pub prior_arm_ty : Ty < ' tcx > ,
570570 pub prior_arm_span : Span ,
571571 pub scrut_span : Span ,
572- pub source : hir :: MatchSource ,
572+ pub source : MatchSource ,
573573 pub prior_non_diverging_arms : Vec < Span > ,
574574 // Is the expectation of this match expression an RPIT?
575575 pub tail_defines_return_position_impl_trait : Option < LocalDefId > ,
@@ -578,8 +578,8 @@ pub struct MatchExpressionArmCause<'tcx> {
578578#[ derive( Copy , Clone , Debug , PartialEq , Eq ) ]
579579#[ derive( TypeFoldable , TypeVisitable , HashStable , TyEncodable , TyDecodable ) ]
580580pub struct IfExpressionCause < ' tcx > {
581- pub then_id : hir :: HirId ,
582- pub else_id : hir :: HirId ,
581+ pub then_id : HirId ,
582+ pub else_id : HirId ,
583583 pub then_ty : Ty < ' tcx > ,
584584 pub else_ty : Ty < ' tcx > ,
585585 pub outer_span : Option < Span > ,
0 commit comments