diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-10-23 22:08:21 +0200 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-10-23 22:10:44 +0200 |
| commit | 83ecbb4a294abca245f8c515e298464e9425b9a2 (patch) | |
| tree | f5eb924523f50cda5128b9405ac245a11958c451 /compiler/rustc_hir/src | |
| parent | 4a15a256626d3a9e017a18bb60bf98b1a6358bd5 (diff) | |
| download | rust-83ecbb4a294abca245f8c515e298464e9425b9a2.tar.gz rust-83ecbb4a294abca245f8c515e298464e9425b9a2.zip | |
add tests for self with const params
Diffstat (limited to 'compiler/rustc_hir/src')
| -rw-r--r-- | compiler/rustc_hir/src/def.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_hir/src/def.rs b/compiler/rustc_hir/src/def.rs index 62b12542877..193247af584 100644 --- a/compiler/rustc_hir/src/def.rs +++ b/compiler/rustc_hir/src/def.rs @@ -206,8 +206,10 @@ pub enum Res<Id = hir::HirId> { /// ```rust /// impl Foo { fn test() -> [u8; std::mem::size_of::<Self>()] {} } /// ``` + /// We do however allow `Self` in repeat expression even if it is generic to not break code + /// which already works on stable while causing the `const_evaluatable_unchecked` future compat lint. /// - /// FIXME(lazy_normalization_consts): Remove this bodge once this feature is stable. + /// FIXME(lazy_normalization_consts): Remove this bodge once that feature is stable. SelfTy(Option<DefId> /* trait */, Option<(DefId, bool)> /* impl */), ToolMod, // e.g., `rustfmt` in `#[rustfmt::skip]` |
