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 1a44434 commit 7b7e325Copy full SHA for 7b7e325
compiler/rustc_middle/src/ty/abstract_const.rs
@@ -35,6 +35,10 @@ pub type BoundAbstractConst<'tcx> =
35
36
impl<'tcx> TyCtxt<'tcx> {
37
pub fn expand_abstract_consts<T: TypeFoldable<TyCtxt<'tcx>>>(self, ac: T) -> T {
38
+ if !self.features().generic_const_exprs() {
39
+ return ac
40
+ }
41
+
42
struct Expander<'tcx> {
43
tcx: TyCtxt<'tcx>,
44
}
0 commit comments