Properly encode AnonConst into crate metadata

Fixes #68104

Previous, we were encoding AnonConst as a regular Const, causing us to
treat them differently after being deserialized in another compilation
session.
This commit is contained in:
Aaron Hill
2020-05-26 00:18:47 -04:00
parent 698c5c6d95
commit ebe5a916b0
5 changed files with 31 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
// aux-build:impl-const.rs
// run-pass
#![feature(const_generics)]
#![allow(incomplete_features)]
extern crate impl_const;
use impl_const::*;
pub fn main() {
let n = Num::<5>;
n.five();
}