diff options
| author | Michael Goulet <michael@errs.io> | 2024-10-29 23:42:59 +0000 | 
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-10-30 16:23:16 +0000 | 
| commit | 802f3a78a6eea323617964a168a612d1b0826bd6 (patch) | |
| tree | d8eea7d61cf7386fa8cd4e514eb8ce0f31839ef6 /compiler/rustc_hir_analysis/src/bounds.rs | |
| parent | 298c7462c3bf66d0afd39284cb65ec78a787a594 (diff) | |
| download | rust-802f3a78a6eea323617964a168a612d1b0826bd6.tar.gz rust-802f3a78a6eea323617964a168a612d1b0826bd6.zip  | |
Merge HostPolarity and BoundConstness
Diffstat (limited to 'compiler/rustc_hir_analysis/src/bounds.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/bounds.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/bounds.rs b/compiler/rustc_hir_analysis/src/bounds.rs index 09ddc6ca9de..9b02651a8bd 100644 --- a/compiler/rustc_hir_analysis/src/bounds.rs +++ b/compiler/rustc_hir_analysis/src/bounds.rs @@ -84,11 +84,11 @@ impl<'tcx> Bounds<'tcx> { &mut self, tcx: TyCtxt<'tcx>, bound_trait_ref: ty::PolyTraitRef<'tcx>, - host: ty::HostPolarity, + constness: ty::BoundConstness, span: Span, ) { if tcx.is_const_trait(bound_trait_ref.def_id()) { - self.clauses.push((bound_trait_ref.to_host_effect_clause(tcx, host), span)); + self.clauses.push((bound_trait_ref.to_host_effect_clause(tcx, constness), span)); } else { tcx.dcx().span_delayed_bug(span, "tried to lower {host:?} bound for non-const trait"); }  | 
