Rollup merge of #93990 - lcnr:pre-89862-cleanup, r=estebank

pre #89862 cleanup

changes used in #89862 which can be landed without the rest of this PR being finished.

r? `@estebank`
This commit is contained in:
Matthias Krüger 2022-02-19 06:45:31 +01:00 committed by GitHub
commit 78e4456e1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 89 additions and 55 deletions

View file

@ -9,5 +9,5 @@ impl<const N: u32> Foo<N> {
fn main() {
let foo = Foo::<1>::foo();
let foo = Foo::foo();
//~^ error: type annotations needed for `Foo<{_: u32}>`
//~^ error: type annotations needed for `Foo<N>`
}

View file

@ -1,4 +1,4 @@
error[E0282]: type annotations needed for `Foo<{_: u32}>`
error[E0282]: type annotations needed for `Foo<N>`
--> $DIR/doesnt_infer.rs:11:15
|
LL | let foo = Foo::foo();

View file

@ -4,5 +4,5 @@ use std::simd::Mask;
fn main() {
let y = Mask::<_, _>::splat(false);
//~^ error: type annotations needed for `Mask<_, {_: usize}>`
//~^ ERROR: type annotations needed for
}

View file

@ -1,4 +1,4 @@
error[E0283]: type annotations needed for `Mask<_, {_: usize}>`
error[E0283]: type annotations needed for `Mask<_, LANES>`
--> $DIR/issue-91614.rs:6:13
|
LL | let y = Mask::<_, _>::splat(false);