-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Encode const constructor MIR in crate metadata"
This reverts commit 2010e0a. For now, we'll let this ICE and deal with it later since it's feature-gated anyway. Also add known-bug test for it.
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//@ known-bug: #132985 | ||
//@ aux-build:aux132985.rs | ||
|
||
#![allow(incomplete_features)] | ||
#![feature(min_generic_const_args)] | ||
#![feature(adt_const_params)] | ||
|
||
extern crate aux132985; | ||
use aux132985::Foo; | ||
|
||
fn bar<const N: Foo>() {} | ||
|
||
fn baz() { | ||
bar::<{ Foo }>(); | ||
} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#![feature(adt_const_params)] | ||
|
||
use std::marker::ConstParamTy; | ||
|
||
#[derive(Eq, PartialEq, ConstParamTy)] | ||
pub struct Foo; |