diff options
| author | Boxy <rust@boxyuwu.dev> | 2025-04-24 11:31:33 +0100 | 
|---|---|---|
| committer | Boxy <rust@boxyuwu.dev> | 2025-04-24 11:59:20 +0100 | 
| commit | bdfeb8f36bb2716eb8f5aca32ba4f81563a6818b (patch) | |
| tree | 4651a63fdf66bd493f20dc9beceab66973ab044a /compiler/rustc_hir_analysis/src/check | |
| parent | 7f695232a80fa1833e2282f2577c5e1ff066bf39 (diff) | |
| download | rust-bdfeb8f36bb2716eb8f5aca32ba4f81563a6818b.tar.gz rust-bdfeb8f36bb2716eb8f5aca32ba4f81563a6818b.zip | |
Remove `weak` alias terminology
Diffstat (limited to 'compiler/rustc_hir_analysis/src/check')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/wfcheck.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/compiler/rustc_hir_analysis/src/check/wfcheck.rs b/compiler/rustc_hir_analysis/src/check/wfcheck.rs index 33d5a86beb3..425edc0e773 100644 --- a/compiler/rustc_hir_analysis/src/check/wfcheck.rs +++ b/compiler/rustc_hir_analysis/src/check/wfcheck.rs @@ -1991,7 +1991,7 @@ fn check_variances_for_type_defn<'tcx>( ItemKind::TyAlias(..) => { assert!( tcx.type_alias_is_lazy(item.owner_id), - "should not be computing variance of non-weak type alias" + "should not be computing variance of non-free type alias" ); } kind => span_bug!(item.span, "cannot compute the variances of {kind:?}"), @@ -2223,7 +2223,7 @@ impl<'tcx> TypeVisitor<TyCtxt<'tcx>> for IsProbablyCyclical<'tcx> { fn visit_ty(&mut self, ty: Ty<'tcx>) -> ControlFlow<(), ()> { let def_id = match ty.kind() { ty::Adt(adt_def, _) => Some(adt_def.did()), - ty::Alias(ty::Weak, alias_ty) => Some(alias_ty.def_id), + ty::Alias(ty::Free, alias_ty) => Some(alias_ty.def_id), _ => None, }; if let Some(def_id) = def_id { | 
