We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bbf959 commit b2f586dCopy full SHA for b2f586d
2 files changed
compiler/rustc_ast_lowering/src/lib.rs
@@ -56,13 +56,9 @@ use rustc_hir::def_id::{DefId, LOCAL_CRATE, LocalDefId, LocalDefIdMap};
56
use rustc_hir::definitions::PerParentDisambiguatorState;
57
use rustc_hir::lints::DelayedLint;
58
use rustc_hir::{
59
- self as hir, AngleBrackets, ConstArg, GenericArg, HirId, ItemLocalMap, LifetimeSource,
60
- LifetimeSyntax, MissingLifetimeKind, ParamName, PredicateOrigin, Target, TraitCandidate,
61
- find_attr,
62
-};
63
-use rustc_hir::{
64
- self as hir, ConstArg, GenericArg, HirId, IsAnonInPath, ItemLocalMap, LangItem, ParamName,
65
- PredicateOrigin, TraitCandidate,
+ self as hir, AngleBrackets, ConstArg, GenericArg, HirId, IsAnonInPath, ItemLocalMap, LangItem,
+ LifetimeSource, LifetimeSyntax, MissingLifetimeKind, ParamName, PredicateOrigin, Target,
+ TraitCandidate, find_attr,
66
};
67
use rustc_index::{Idx, IndexVec};
68
use rustc_macros::extension;
compiler/rustc_hir_analysis/src/hir_ty_lowering/bounds.rs
@@ -193,11 +193,11 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
193
);
194
} else {
195
predicates.insert((
196
- ty::Binder::bind_with_vars(
197
- ty::ClauseKind::ConstArgHasType(ct, ct_ty),
198
- ty::List::empty(),
199
- )
200
- .upcast(tcx),
+ ty::Binder::bind_with_vars(
+ ty::ClauseKind::ConstArgHasType(ct, ct_ty),
+ ty::List::empty(),
+ )
+ .upcast(tcx),
201
param.span,
202
));
203
}
0 commit comments