diff options
| author | bors <bors@rust-lang.org> | 2025-04-28 17:22:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-04-28 17:22:11 +0000 |
| commit | 25cdf1f67463c9365d8d83778c933ec7480e940b (patch) | |
| tree | 3692f9b718b4427606d5f966f253b81328268486 /compiler/rustc_const_eval/src | |
| parent | 7d65abfe80f9eee93296d1ce08f845c9bf7039f8 (diff) | |
| parent | dd3ca71b4e63a2eb167b37879abb2830af45a0b3 (diff) | |
| download | rust-25cdf1f67463c9365d8d83778c933ec7480e940b.tar.gz rust-25cdf1f67463c9365d8d83778c933ec7480e940b.zip | |
Auto merge of #140388 - GuillaumeGomez:rollup-aj9o3ch, r=GuillaumeGomez
Rollup of 7 pull requests Successful merges: - #140056 (Fix a wrong error message in 2024 edition) - #140220 (Fix detection of main function if there are expressions around it) - #140249 (Remove `weak` alias terminology) - #140316 (Introduce `BoxMarker` to improve pretty-printing correctness) - #140347 (ci: clean more disk space in codebuild) - #140349 (ci: use aws codebuild for the `dist-x86_64-linux` job) - #140379 (rustc-dev-guide subtree update) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/util/type_name.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/util/type_name.rs b/compiler/rustc_const_eval/src/util/type_name.rs index e14cd603c58..30e96ae4143 100644 --- a/compiler/rustc_const_eval/src/util/type_name.rs +++ b/compiler/rustc_const_eval/src/util/type_name.rs @@ -56,7 +56,7 @@ impl<'tcx> Printer<'tcx> for AbsolutePathPrinter<'tcx> { | ty::Coroutine(def_id, args) => self.print_def_path(def_id, args), ty::Foreign(def_id) => self.print_def_path(def_id, &[]), - ty::Alias(ty::Weak, _) => bug!("type_name: unexpected weak projection"), + ty::Alias(ty::Free, _) => bug!("type_name: unexpected free alias"), ty::Alias(ty::Inherent, _) => bug!("type_name: unexpected inherent projection"), ty::CoroutineWitness(..) => bug!("type_name: unexpected `CoroutineWitness`"), } |
