diff options
| author | bors <bors@rust-lang.org> | 2021-07-25 11:11:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-07-25 11:11:02 +0000 |
| commit | 6489ee10410f7be70dbefad322d1a3e1533ab282 (patch) | |
| tree | 79e33e87955dfb85756c97f4854866c9a608ef17 /src/test/ui/const-generics | |
| parent | 71a6c7c80398143a67e27b01412f4b2ec12bde8b (diff) | |
| parent | f798510d02005c2bbb1269c384c321918c578f74 (diff) | |
| download | rust-6489ee10410f7be70dbefad322d1a3e1533ab282.tar.gz rust-6489ee10410f7be70dbefad322d1a3e1533ab282.zip | |
Auto merge of #83723 - cjgillot:ownernode, r=petrochenkov
Store all HIR owners in the same container This replaces the previous storage in a BTreeMap for each of Item/ImplItem/TraitItem/ForeignItem. This should allow for a more compact storage. Based on https://github.com/rust-lang/rust/pull/83114
Diffstat (limited to 'src/test/ui/const-generics')
| -rw-r--r-- | src/test/ui/const-generics/const-param-elided-lifetime.min.stderr | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/ui/const-generics/const-param-elided-lifetime.min.stderr b/src/test/ui/const-generics/const-param-elided-lifetime.min.stderr index 48d33a785ae..613918f78f3 100644 --- a/src/test/ui/const-generics/const-param-elided-lifetime.min.stderr +++ b/src/test/ui/const-generics/const-param-elided-lifetime.min.stderr @@ -47,28 +47,28 @@ LL | impl<const N: &u8> A<N> { = help: more complex types are supported with `#![feature(const_generics)]` error: `&'static u8` is forbidden as the type of a const generic parameter - --> $DIR/const-param-elided-lifetime.rs:23:15 + --> $DIR/const-param-elided-lifetime.rs:18:21 | -LL | impl<const N: &u8> B for A<N> {} - | ^^^ +LL | fn foo<const M: &u8>(&self) {} + | ^^^ | = note: the only supported types are integers, `bool` and `char` = help: more complex types are supported with `#![feature(const_generics)]` error: `&'static u8` is forbidden as the type of a const generic parameter - --> $DIR/const-param-elided-lifetime.rs:27:17 + --> $DIR/const-param-elided-lifetime.rs:23:15 | -LL | fn bar<const N: &u8>() {} - | ^^^ +LL | impl<const N: &u8> B for A<N> {} + | ^^^ | = note: the only supported types are integers, `bool` and `char` = help: more complex types are supported with `#![feature(const_generics)]` error: `&'static u8` is forbidden as the type of a const generic parameter - --> $DIR/const-param-elided-lifetime.rs:18:21 + --> $DIR/const-param-elided-lifetime.rs:27:17 | -LL | fn foo<const M: &u8>(&self) {} - | ^^^ +LL | fn bar<const N: &u8>() {} + | ^^^ | = note: the only supported types are integers, `bool` and `char` = help: more complex types are supported with `#![feature(const_generics)]` |
