about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-02-04 18:49:37 +0100
committerGitHub <noreply@github.com>2025-02-04 18:49:37 +0100
commitb07fa7696b87da65b09d022ff4c1211361ab0ee4 (patch)
tree799b480453ab29656533cdc12b048c667d073788 /compiler/rustc_codegen_gcc/src
parenta8ecb79d19e1bad732dae7f34f2481499db12f7c (diff)
parentfbcaa9b0a16cb3eed67cc3dc2429574f28dcac17 (diff)
downloadrust-b07fa7696b87da65b09d022ff4c1211361ab0ee4.tar.gz
rust-b07fa7696b87da65b09d022ff4c1211361ab0ee4.zip
Rollup merge of #136284 - oli-obk:push-zsxuwnzmonnl, r=lcnr
Allow using named consts in pattern types

This required a refactoring first: I had to stop using `hir::Pat`in `hir::TyKind::Pat` and instead create a separate `TyPat` that has `ConstArg` for range ends instead of `PatExpr`. Within the type system we should be using `ConstArg` for all constants, as otherwise we'd be maintaining two separate const systems that could diverge. The big advantage of this PR is that we now inherit all the rules from const generics and don't have a separate system. While this makes things harder for users (const generic rules wrt what is allowed in those consts), it also means we don't accidentally allow some things like referring to assoc consts or doing math on generic consts.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
0 files changed, 0 insertions, 0 deletions