diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-08 00:07:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-08 00:07:31 +0200 |
| commit | 4ea77975ab2d9fd31309d8c11013d553d22745d6 (patch) | |
| tree | 88f68b325dcd6fbd340c17eeaee9ed6a3865a5d3 /src/librustc/ich | |
| parent | 83e2b5e7afc59ae937b7ff4f8cc8317a6f2f09d7 (diff) | |
| parent | 74d8679eff1819a8b7aae6f38ca521dc893b448d (diff) | |
| download | rust-4ea77975ab2d9fd31309d8c11013d553d22745d6.tar.gz rust-4ea77975ab2d9fd31309d8c11013d553d22745d6.zip | |
Rollup merge of #64066 - petrochenkov:softstab, r=matthewjasper
Support "soft" feature-gating using a lint Use it for feature-gating `#[bench]`. Closes https://github.com/rust-lang/rust/issues/63798.
Diffstat (limited to 'src/librustc/ich')
| -rw-r--r-- | src/librustc/ich/impls_syntax.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc/ich/impls_syntax.rs b/src/librustc/ich/impls_syntax.rs index 646060bc8be..a33181e5925 100644 --- a/src/librustc/ich/impls_syntax.rs +++ b/src/librustc/ich/impls_syntax.rs @@ -115,9 +115,10 @@ for ::syntax::attr::StabilityLevel { hasher: &mut StableHasher<W>) { mem::discriminant(self).hash_stable(hcx, hasher); match *self { - ::syntax::attr::StabilityLevel::Unstable { ref reason, ref issue } => { + ::syntax::attr::StabilityLevel::Unstable { ref reason, ref issue, ref is_soft } => { reason.hash_stable(hcx, hasher); issue.hash_stable(hcx, hasher); + is_soft.hash_stable(hcx, hasher); } ::syntax::attr::StabilityLevel::Stable { ref since } => { since.hash_stable(hcx, hasher); |
