diff --git a/tests/ui/delegation/auxiliary/recursive-delegation-aux.rs b/tests/ui/delegation/auxiliary/recursive-delegation-aux.rs index 5df644974f3e..56d99cec880a 100644 --- a/tests/ui/delegation/auxiliary/recursive-delegation-aux.rs +++ b/tests/ui/delegation/auxiliary/recursive-delegation-aux.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] fn foo() {} diff --git a/tests/ui/delegation/bad-resolve.rs b/tests/ui/delegation/bad-resolve.rs index 79acaec021a6..5744bd1f994c 100644 --- a/tests/ui/delegation/bad-resolve.rs +++ b/tests/ui/delegation/bad-resolve.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { const C: u32 = 0; diff --git a/tests/ui/delegation/bad-resolve.stderr b/tests/ui/delegation/bad-resolve.stderr index 6fde0bb13877..f79eaa5bfc28 100644 --- a/tests/ui/delegation/bad-resolve.stderr +++ b/tests/ui/delegation/bad-resolve.stderr @@ -1,5 +1,5 @@ error[E0324]: item `C` is an associated method, which doesn't match its trait `Trait` - --> $DIR/bad-resolve.rs:24:5 + --> $DIR/bad-resolve.rs:23:5 | LL | const C: u32 = 0; | ----------------- item in trait @@ -8,7 +8,7 @@ LL | reuse ::C; | ^^^^^^^^^^^^^^^^^^^^^^ does not match trait error[E0324]: item `Type` is an associated method, which doesn't match its trait `Trait` - --> $DIR/bad-resolve.rs:27:5 + --> $DIR/bad-resolve.rs:26:5 | LL | type Type; | ---------- item in trait @@ -17,7 +17,7 @@ LL | reuse ::Type; | ^^^^^^^^^^^^^^^^^^^^^^^^^ does not match trait error[E0407]: method `baz` is not a member of trait `Trait` - --> $DIR/bad-resolve.rs:30:5 + --> $DIR/bad-resolve.rs:29:5 | LL | reuse ::baz; | ^^^^^^^^^^^^^^^^^^^^---^ @@ -26,7 +26,7 @@ LL | reuse ::baz; | not a member of trait `Trait` error[E0407]: method `foo2` is not a member of trait `Trait` - --> $DIR/bad-resolve.rs:37:5 + --> $DIR/bad-resolve.rs:36:5 | LL | reuse Trait::foo2 { self.0 } | ^^^^^^^^^^^^^----^^^^^^^^^^^ @@ -35,19 +35,19 @@ LL | reuse Trait::foo2 { self.0 } | not a member of trait `Trait` error[E0423]: expected function, found associated constant `Trait::C` - --> $DIR/bad-resolve.rs:24:11 + --> $DIR/bad-resolve.rs:23:11 | LL | reuse ::C; | ^^^^^^^^^^^^^^^ not a function error[E0575]: expected method or associated constant, found associated type `Trait::Type` - --> $DIR/bad-resolve.rs:27:11 + --> $DIR/bad-resolve.rs:26:11 | LL | reuse ::Type; | ^^^^^^^^^^^^^^^^^^ not a method or associated constant error[E0576]: cannot find method or associated constant `baz` in trait `Trait` - --> $DIR/bad-resolve.rs:30:25 + --> $DIR/bad-resolve.rs:29:25 | LL | fn bar() {} | -------- similarly named associated function `bar` defined here @@ -62,13 +62,13 @@ LL + reuse ::bar; | error[E0425]: cannot find function `foo` in this scope - --> $DIR/bad-resolve.rs:35:11 + --> $DIR/bad-resolve.rs:34:11 | LL | reuse foo { &self.0 } | ^^^ not found in this scope error[E0425]: cannot find function `foo2` in trait `Trait` - --> $DIR/bad-resolve.rs:37:18 + --> $DIR/bad-resolve.rs:36:18 | LL | fn foo(&self, x: i32) -> i32 { x } | ---------------------------- similarly named associated function `foo` defined here @@ -83,7 +83,7 @@ LL + reuse Trait::foo { self.0 } | error[E0046]: not all trait items implemented, missing: `Type` - --> $DIR/bad-resolve.rs:22:1 + --> $DIR/bad-resolve.rs:21:1 | LL | type Type; | --------- `Type` from trait @@ -92,7 +92,7 @@ LL | impl Trait for S { | ^^^^^^^^^^^^^^^^ missing `Type` in implementation error[E0433]: cannot find module or crate `unresolved_prefix` in this scope - --> $DIR/bad-resolve.rs:43:7 + --> $DIR/bad-resolve.rs:42:7 | LL | reuse unresolved_prefix::{a, b, c}; | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `unresolved_prefix` @@ -100,7 +100,7 @@ LL | reuse unresolved_prefix::{a, b, c}; = help: you might be missing a crate named `unresolved_prefix` error[E0433]: `crate` in paths can only be used in start position - --> $DIR/bad-resolve.rs:44:29 + --> $DIR/bad-resolve.rs:43:29 | LL | reuse prefix::{self, super, crate}; | ^^^^^ can only be used in path start position diff --git a/tests/ui/delegation/body-identity-glob.rs b/tests/ui/delegation/body-identity-glob.rs index 58b644f46d61..14fbede473a4 100644 --- a/tests/ui/delegation/body-identity-glob.rs +++ b/tests/ui/delegation/body-identity-glob.rs @@ -1,7 +1,6 @@ //@ check-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn foo(&self) {} diff --git a/tests/ui/delegation/body-identity-list.rs b/tests/ui/delegation/body-identity-list.rs index 1f08ab4e1a4c..3ca725ccc955 100644 --- a/tests/ui/delegation/body-identity-list.rs +++ b/tests/ui/delegation/body-identity-list.rs @@ -1,7 +1,6 @@ //@ check-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn foo(&self) {} diff --git a/tests/ui/delegation/correct_body_owner_parent_found_in_diagnostics.rs b/tests/ui/delegation/correct_body_owner_parent_found_in_diagnostics.rs index 5d801f26de16..68a1a936fcaa 100644 --- a/tests/ui/delegation/correct_body_owner_parent_found_in_diagnostics.rs +++ b/tests/ui/delegation/correct_body_owner_parent_found_in_diagnostics.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] use std::marker::PhantomData; diff --git a/tests/ui/delegation/correct_body_owner_parent_found_in_diagnostics.stderr b/tests/ui/delegation/correct_body_owner_parent_found_in_diagnostics.stderr index 6cf844f29b06..ab0c6d66e9c5 100644 --- a/tests/ui/delegation/correct_body_owner_parent_found_in_diagnostics.stderr +++ b/tests/ui/delegation/correct_body_owner_parent_found_in_diagnostics.stderr @@ -1,5 +1,5 @@ error[E0261]: use of undeclared lifetime name `'a` - --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:22:68 + --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:21:68 | LL | reuse ::{foo, bar, meh} { &const { InvariantRef::<'a>::NEW } } | ^^ undeclared lifetime @@ -14,7 +14,7 @@ LL | impl<'a> Trait for Z { | ++++ error[E0261]: use of undeclared lifetime name `'a` - --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:22:68 + --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:21:68 | LL | reuse ::{foo, bar, meh} { &const { InvariantRef::<'a>::NEW } } | ^^ undeclared lifetime @@ -29,7 +29,7 @@ LL | impl<'a> Trait for Z { | ++++ error[E0261]: use of undeclared lifetime name `'a` - --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:22:68 + --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:21:68 | LL | reuse ::{foo, bar, meh} { &const { InvariantRef::<'a>::NEW } } | ^^ undeclared lifetime @@ -44,7 +44,7 @@ LL | impl<'a> Trait for Z { | ++++ error[E0599]: no associated function or constant named `new` found for struct `InvariantRef<'a, T>` in the current scope - --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:9:41 + --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:8:41 | LL | pub struct InvariantRef<'a, T: ?Sized>(&'a T, PhantomData<&'a mut &'a T>); | -------------------------------------- associated function or constant `new` not found for this struct @@ -53,19 +53,19 @@ LL | pub const NEW: Self = InvariantRef::new(&()); | ^^^ associated function or constant not found in `InvariantRef<'_, _>` error[E0277]: the trait bound `u8: Trait` is not satisfied - --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:22:12 + --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:21:12 | LL | reuse ::{foo, bar, meh} { &const { InvariantRef::<'a>::NEW } } | ^^ the trait `Trait` is not implemented for `u8` | help: the trait `Trait` is implemented for `Z` - --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:21:1 + --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:20:1 | LL | impl Trait for Z { | ^^^^^^^^^^^^^^^^ error[E0308]: mismatched types - --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:22:53 + --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:21:53 | LL | reuse ::{foo, bar, meh} { &const { InvariantRef::<'a>::NEW } } | ^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `InvariantRef<'_, ()>` @@ -74,20 +74,20 @@ LL | reuse ::{foo, bar, meh} { &const { InvariantRef::<'a>::NEW found struct `InvariantRef<'_, ()>` error[E0277]: the trait bound `u8: Trait` is not satisfied - --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:22:12 + --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:21:12 | LL | reuse ::{foo, bar, meh} { &const { InvariantRef::<'a>::NEW } } | ^^ the trait `Trait` is not implemented for `u8` | help: the trait `Trait` is implemented for `Z` - --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:21:1 + --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:20:1 | LL | impl Trait for Z { | ^^^^^^^^^^^^^^^^ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` error[E0308]: mismatched types - --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:22:53 + --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:21:53 | LL | reuse ::{foo, bar, meh} { &const { InvariantRef::<'a>::NEW } } | ^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `InvariantRef<'_, ()>` @@ -97,20 +97,20 @@ LL | reuse ::{foo, bar, meh} { &const { InvariantRef::<'a>::NEW = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` error[E0277]: the trait bound `u8: Trait` is not satisfied - --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:22:12 + --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:21:12 | LL | reuse ::{foo, bar, meh} { &const { InvariantRef::<'a>::NEW } } | ^^ the trait `Trait` is not implemented for `u8` | help: the trait `Trait` is implemented for `Z` - --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:21:1 + --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:20:1 | LL | impl Trait for Z { | ^^^^^^^^^^^^^^^^ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` error[E0308]: mismatched types - --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:22:53 + --> $DIR/correct_body_owner_parent_found_in_diagnostics.rs:21:53 | LL | reuse ::{foo, bar, meh} { &const { InvariantRef::<'a>::NEW } } | ^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `InvariantRef<'_, ()>` diff --git a/tests/ui/delegation/duplicate-definition-inside-trait-impl.rs b/tests/ui/delegation/duplicate-definition-inside-trait-impl.rs index 3c796b91d6fa..ecd47a7ccaa9 100644 --- a/tests/ui/delegation/duplicate-definition-inside-trait-impl.rs +++ b/tests/ui/delegation/duplicate-definition-inside-trait-impl.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn foo(&self) -> u32 { 0 } diff --git a/tests/ui/delegation/duplicate-definition-inside-trait-impl.stderr b/tests/ui/delegation/duplicate-definition-inside-trait-impl.stderr index 83d69d2df600..9e2dd8ea84ac 100644 --- a/tests/ui/delegation/duplicate-definition-inside-trait-impl.stderr +++ b/tests/ui/delegation/duplicate-definition-inside-trait-impl.stderr @@ -1,5 +1,5 @@ error[E0201]: duplicate definitions with name `foo`: - --> $DIR/duplicate-definition-inside-trait-impl.rs:19:5 + --> $DIR/duplicate-definition-inside-trait-impl.rs:18:5 | LL | fn foo(&self) -> u32 { 0 } | -------------------------- item in trait @@ -10,13 +10,13 @@ LL | reuse Trait::foo; | ^^^^^^^^^^^^^^^^^ duplicate definition error[E0061]: this function takes 1 argument but 0 arguments were supplied - --> $DIR/duplicate-definition-inside-trait-impl.rs:19:18 + --> $DIR/duplicate-definition-inside-trait-impl.rs:18:18 | LL | reuse Trait::foo; | ^^^ argument #1 of type `&_` is missing | note: method defined here - --> $DIR/duplicate-definition-inside-trait-impl.rs:5:8 + --> $DIR/duplicate-definition-inside-trait-impl.rs:4:8 | LL | fn foo(&self) -> u32 { 0 } | ^^^ ----- @@ -26,7 +26,7 @@ LL | reuse Trait::foo(/* value */); | +++++++++++++ error[E0308]: mismatched types - --> $DIR/duplicate-definition-inside-trait-impl.rs:19:18 + --> $DIR/duplicate-definition-inside-trait-impl.rs:18:18 | LL | reuse Trait::foo; | ^^^- help: consider using a semicolon here: `;` diff --git a/tests/ui/delegation/empty-glob.rs b/tests/ui/delegation/empty-glob.rs index d98579d89725..70c8c6e10d14 100644 --- a/tests/ui/delegation/empty-glob.rs +++ b/tests/ui/delegation/empty-glob.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait {} diff --git a/tests/ui/delegation/empty-glob.stderr b/tests/ui/delegation/empty-glob.stderr index f4d282f6a0f6..92ba982e22a8 100644 --- a/tests/ui/delegation/empty-glob.stderr +++ b/tests/ui/delegation/empty-glob.stderr @@ -1,5 +1,5 @@ error: empty glob delegation is not supported - --> $DIR/empty-glob.rs:8:5 + --> $DIR/empty-glob.rs:7:5 | LL | reuse Trait::*; | ^^^^^^^^^^^^^^^ diff --git a/tests/ui/delegation/empty-list.rs b/tests/ui/delegation/empty-list.rs index e0697f42283e..3a1aae6d31e3 100644 --- a/tests/ui/delegation/empty-list.rs +++ b/tests/ui/delegation/empty-list.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] mod m {} diff --git a/tests/ui/delegation/empty-list.stderr b/tests/ui/delegation/empty-list.stderr index 50d3c0eee223..2c0f0c6ae492 100644 --- a/tests/ui/delegation/empty-list.stderr +++ b/tests/ui/delegation/empty-list.stderr @@ -1,5 +1,5 @@ error: empty list delegation is not supported - --> $DIR/empty-list.rs:6:1 + --> $DIR/empty-list.rs:5:1 | LL | reuse m::{}; | ^^^^^^^^^^^^ diff --git a/tests/ui/delegation/explicit-paths-in-traits-pass.rs b/tests/ui/delegation/explicit-paths-in-traits-pass.rs index 7d281ad150a0..3837642fcbb3 100644 --- a/tests/ui/delegation/explicit-paths-in-traits-pass.rs +++ b/tests/ui/delegation/explicit-paths-in-traits-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] trait ToReuse { fn foo(&self, x: i32) -> i32 { x } diff --git a/tests/ui/delegation/explicit-paths-pass.rs b/tests/ui/delegation/explicit-paths-pass.rs index 7efbb3795185..fd0b9e83689d 100644 --- a/tests/ui/delegation/explicit-paths-pass.rs +++ b/tests/ui/delegation/explicit-paths-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn bar(&self, x: i32) -> i32 { x } diff --git a/tests/ui/delegation/explicit-paths-signature-pass.rs b/tests/ui/delegation/explicit-paths-signature-pass.rs index 11bc8a70db0e..59d14d3becc7 100644 --- a/tests/ui/delegation/explicit-paths-signature-pass.rs +++ b/tests/ui/delegation/explicit-paths-signature-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] mod to_reuse { use crate::S; diff --git a/tests/ui/delegation/explicit-paths.rs b/tests/ui/delegation/explicit-paths.rs index 018025041c0b..2592d3d2698f 100644 --- a/tests/ui/delegation/explicit-paths.rs +++ b/tests/ui/delegation/explicit-paths.rs @@ -1,6 +1,5 @@ //@ edition:2015 #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn foo1(&self, x: i32) -> i32 { x } diff --git a/tests/ui/delegation/explicit-paths.stderr b/tests/ui/delegation/explicit-paths.stderr index 460cfab85f21..30239f3648a5 100644 --- a/tests/ui/delegation/explicit-paths.stderr +++ b/tests/ui/delegation/explicit-paths.stderr @@ -1,5 +1,5 @@ error[E0407]: method `foo3` is not a member of trait `Trait` - --> $DIR/explicit-paths.rs:50:9 + --> $DIR/explicit-paths.rs:49:9 | LL | reuse to_reuse::foo3; | ^^^^^^^^^^^^^^^^----^ @@ -8,7 +8,7 @@ LL | reuse to_reuse::foo3; | not a member of trait `Trait` error[E0407]: method `foo4` is not a member of trait `Trait` - --> $DIR/explicit-paths.rs:52:9 + --> $DIR/explicit-paths.rs:51:9 | LL | reuse F::foo4 { &self.0 } | ^^^^^^^^^----^^^^^^^^^^^^ @@ -17,49 +17,49 @@ LL | reuse F::foo4 { &self.0 } | not a member of trait `Trait` error[E0425]: cannot find function `foo4` in `S` - --> $DIR/explicit-paths.rs:28:14 + --> $DIR/explicit-paths.rs:27:14 | LL | reuse S::foo4; | ^^^^ not found in `S` error[E0425]: cannot find function `foo4` in `F` - --> $DIR/explicit-paths.rs:39:18 + --> $DIR/explicit-paths.rs:38:18 | LL | reuse F::foo4 { &self.0 } | ^^^^ not found in `F` | note: function `fn_to_other::foo4` exists but is inaccessible - --> $DIR/explicit-paths.rs:28:5 + --> $DIR/explicit-paths.rs:27:5 | LL | reuse S::foo4; | ^^^^^^^^^^^^^^ not accessible error[E0425]: cannot find function `foo4` in `F` - --> $DIR/explicit-paths.rs:52:18 + --> $DIR/explicit-paths.rs:51:18 | LL | reuse F::foo4 { &self.0 } | ^^^^ not found in `F` | note: function `fn_to_other::foo4` exists but is inaccessible - --> $DIR/explicit-paths.rs:28:5 + --> $DIR/explicit-paths.rs:27:5 | LL | reuse S::foo4; | ^^^^^^^^^^^^^^ not accessible error[E0425]: cannot find function `foo4` in `F` - --> $DIR/explicit-paths.rs:66:18 + --> $DIR/explicit-paths.rs:65:18 | LL | reuse F::foo4 { &F } | ^^^^ not found in `F` | note: function `fn_to_other::foo4` exists but is inaccessible - --> $DIR/explicit-paths.rs:28:5 + --> $DIR/explicit-paths.rs:27:5 | LL | reuse S::foo4; | ^^^^^^^^^^^^^^ not accessible error[E0119]: conflicting implementations of trait `Trait` for type `S` - --> $DIR/explicit-paths.rs:75:5 + --> $DIR/explicit-paths.rs:74:5 | LL | impl Trait for S { | ---------------- first implementation here @@ -68,7 +68,7 @@ LL | impl Trait for S { | ^^^^^^^^^^^^^^^^ conflicting implementation for `S` error[E0308]: mismatched types - --> $DIR/explicit-paths.rs:62:36 + --> $DIR/explicit-paths.rs:61:36 | LL | trait Trait2 : Trait { | -------------------- found this type parameter @@ -80,24 +80,24 @@ LL | reuse ::foo1 { self } = note: expected reference `&F` found reference `&Self` note: method defined here - --> $DIR/explicit-paths.rs:6:8 + --> $DIR/explicit-paths.rs:5:8 | LL | fn foo1(&self, x: i32) -> i32 { x } | ^^^^ ----- error[E0277]: the trait bound `S2: Trait` is not satisfied - --> $DIR/explicit-paths.rs:77:16 + --> $DIR/explicit-paths.rs:76:16 | LL | reuse ::foo1; | ^^ unsatisfied trait bound | help: the trait `Trait` is not implemented for `S2` - --> $DIR/explicit-paths.rs:74:5 + --> $DIR/explicit-paths.rs:73:5 | LL | struct S2; | ^^^^^^^^^ help: the following other types implement trait `Trait` - --> $DIR/explicit-paths.rs:11:1 + --> $DIR/explicit-paths.rs:10:1 | LL | impl Trait for F {} | ^^^^^^^^^^^^^^^^ `F` @@ -109,7 +109,7 @@ LL | impl Trait for S { | ^^^^^^^^^^^^^^^^ `S` error[E0308]: mismatched types - --> $DIR/explicit-paths.rs:77:30 + --> $DIR/explicit-paths.rs:76:30 | LL | reuse ::foo1; | ^^^^ @@ -120,7 +120,7 @@ LL | reuse ::foo1; = note: expected reference `&S2` found reference `&S` note: method defined here - --> $DIR/explicit-paths.rs:6:8 + --> $DIR/explicit-paths.rs:5:8 | LL | fn foo1(&self, x: i32) -> i32 { x } | ^^^^ ----- diff --git a/tests/ui/delegation/fn-header-variadic.rs b/tests/ui/delegation/fn-header-variadic.rs index 346c49f08e5d..b5056f48a9be 100644 --- a/tests/ui/delegation/fn-header-variadic.rs +++ b/tests/ui/delegation/fn-header-variadic.rs @@ -3,7 +3,6 @@ #![feature(c_variadic)] #![feature(fn_delegation)] -#![allow(incomplete_features)] mod to_reuse { pub unsafe extern "C" fn variadic_fn(n: usize, mut args: ...) {} diff --git a/tests/ui/delegation/fn-header-variadic.stderr b/tests/ui/delegation/fn-header-variadic.stderr index c2d7672939fc..688a965fb4d5 100644 --- a/tests/ui/delegation/fn-header-variadic.stderr +++ b/tests/ui/delegation/fn-header-variadic.stderr @@ -1,5 +1,5 @@ error: delegation to C-variadic functions is not allowed - --> $DIR/fn-header-variadic.rs:12:17 + --> $DIR/fn-header-variadic.rs:11:17 | LL | pub unsafe extern "C" fn variadic_fn(n: usize, mut args: ...) {} | ------------------------------------------------------------- callee defined here @@ -8,7 +8,7 @@ LL | reuse to_reuse::variadic_fn; | ^^^^^^^^^^^ error: delegation to C-variadic functions is not allowed - --> $DIR/fn-header-variadic.rs:14:22 + --> $DIR/fn-header-variadic.rs:13:22 | LL | reuse fn_header_aux::variadic_fn_extern; | ^^^^^^^^^^^^^^^^^^ diff --git a/tests/ui/delegation/fn-header.rs b/tests/ui/delegation/fn-header.rs index 608aef8d9683..d3fb6fb88ed5 100644 --- a/tests/ui/delegation/fn-header.rs +++ b/tests/ui/delegation/fn-header.rs @@ -5,7 +5,6 @@ #![feature(c_variadic)] #![feature(fn_delegation)] -#![allow(incomplete_features)] #![deny(unused_unsafe)] mod to_reuse { diff --git a/tests/ui/delegation/foreign-fn.rs b/tests/ui/delegation/foreign-fn.rs index 1d221da29ceb..6046dab6dfd4 100644 --- a/tests/ui/delegation/foreign-fn.rs +++ b/tests/ui/delegation/foreign-fn.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] #![deny(unsafe_op_in_unsafe_fn)] #![deny(unused_unsafe)] diff --git a/tests/ui/delegation/foreign-fn.stderr b/tests/ui/delegation/foreign-fn.stderr index f7d3dba4bb1c..2b7f4bf87c5c 100644 --- a/tests/ui/delegation/foreign-fn.stderr +++ b/tests/ui/delegation/foreign-fn.stderr @@ -1,5 +1,5 @@ error[E0308]: mismatched types - --> $DIR/foreign-fn.rs:17:30 + --> $DIR/foreign-fn.rs:16:30 | LL | let _: extern "C" fn() = default_unsafe_foo; | --------------- ^^^^^^^^^^^^^^^^^^ expected safe fn, found unsafe fn @@ -11,7 +11,7 @@ LL | let _: extern "C" fn() = default_unsafe_foo; = note: unsafe functions cannot be coerced into safe function pointers error[E0308]: mismatched types - --> $DIR/foreign-fn.rs:19:30 + --> $DIR/foreign-fn.rs:18:30 | LL | let _: extern "C" fn() = unsafe_foo; | --------------- ^^^^^^^^^^ expected safe fn, found unsafe fn diff --git a/tests/ui/delegation/generics/const-type-ice-153433.rs b/tests/ui/delegation/generics/const-type-ice-153433.rs index edd6d0542a99..d0fa87f4cfb6 100644 --- a/tests/ui/delegation/generics/const-type-ice-153433.rs +++ b/tests/ui/delegation/generics/const-type-ice-153433.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] fn main() { fn foo Foo>() {} diff --git a/tests/ui/delegation/generics/const-type-ice-153433.stderr b/tests/ui/delegation/generics/const-type-ice-153433.stderr index 3b537e2f8988..b28bf0242762 100644 --- a/tests/ui/delegation/generics/const-type-ice-153433.stderr +++ b/tests/ui/delegation/generics/const-type-ice-153433.stderr @@ -1,5 +1,5 @@ error[E0405]: cannot find trait `Foo` in this scope - --> $DIR/const-type-ice-153433.rs:5:33 + --> $DIR/const-type-ice-153433.rs:4:33 | LL | fn foo Foo>() {} | ^^^ not found in this scope diff --git a/tests/ui/delegation/generics/const-type-ice-153499.rs b/tests/ui/delegation/generics/const-type-ice-153499.rs index debda0d04a18..2c56d5566735 100644 --- a/tests/ui/delegation/generics/const-type-ice-153499.rs +++ b/tests/ui/delegation/generics/const-type-ice-153499.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait<'a, T, const F: fn(&CStr) -> usize> { //~^ ERROR: cannot find type `CStr` in this scope diff --git a/tests/ui/delegation/generics/const-type-ice-153499.stderr b/tests/ui/delegation/generics/const-type-ice-153499.stderr index 02fd7197dcdc..4f60b168c11d 100644 --- a/tests/ui/delegation/generics/const-type-ice-153499.stderr +++ b/tests/ui/delegation/generics/const-type-ice-153499.stderr @@ -1,5 +1,5 @@ error[E0425]: cannot find type `CStr` in this scope - --> $DIR/const-type-ice-153499.rs:4:33 + --> $DIR/const-type-ice-153499.rs:3:33 | LL | trait Trait<'a, T, const F: fn(&CStr) -> usize> { | ^^^^ not found in this scope @@ -10,7 +10,7 @@ LL + use std::ffi::CStr; | error: using function pointers as const generic parameters is forbidden - --> $DIR/const-type-ice-153499.rs:4:29 + --> $DIR/const-type-ice-153499.rs:3:29 | LL | trait Trait<'a, T, const F: fn(&CStr) -> usize> { | ^^^^^^^^^^^^^^^^^^ @@ -18,7 +18,7 @@ LL | trait Trait<'a, T, const F: fn(&CStr) -> usize> { = note: the only supported types are integers, `bool`, and `char` error: using function pointers as const generic parameters is forbidden - --> $DIR/const-type-ice-153499.rs:10:14 + --> $DIR/const-type-ice-153499.rs:9:14 | LL | reuse Trait::foo; | ^^^ diff --git a/tests/ui/delegation/generics/const-type-ice-154334.rs b/tests/ui/delegation/generics/const-type-ice-154334.rs index 91cf1d3a0a63..3d2d8ca3ed7f 100644 --- a/tests/ui/delegation/generics/const-type-ice-154334.rs +++ b/tests/ui/delegation/generics/const-type-ice-154334.rs @@ -5,6 +5,7 @@ #![feature(fn_delegation)] #![feature(adt_const_params)] #![feature(unsized_const_params)] + trait Trait<'a, T, const N: str> { fn foo<'v, A, B>(&self) {} } diff --git a/tests/ui/delegation/generics/def-path-hash-collision-ice-153410.rs b/tests/ui/delegation/generics/def-path-hash-collision-ice-153410.rs index a7e42ef977f4..9276a0d220ad 100644 --- a/tests/ui/delegation/generics/def-path-hash-collision-ice-153410.rs +++ b/tests/ui/delegation/generics/def-path-hash-collision-ice-153410.rs @@ -1,8 +1,7 @@ //@ compile-flags: -Z deduplicate-diagnostics=yes //@ edition:2024 -#![feature(fn_delegation)] -#![feature(iter_advance_by)] +#![feature(fn_delegation)]#![feature(iter_advance_by)] #![feature(iter_array_chunks)] #![feature(iterator_try_collect)] #![feature(iterator_try_reduce)] @@ -15,7 +14,7 @@ #![feature(iter_partition_in_place)] #![feature(trusted_random_access)] #![feature(try_find)] -#![allow(incomplete_features)] + impl Iterator { //~^ ERROR: expected a type, found a trait [E0782] diff --git a/tests/ui/delegation/generics/def-path-hash-collision-ice-153410.stderr b/tests/ui/delegation/generics/def-path-hash-collision-ice-153410.stderr index f18634e8a2e1..4b4c1bc00663 100644 --- a/tests/ui/delegation/generics/def-path-hash-collision-ice-153410.stderr +++ b/tests/ui/delegation/generics/def-path-hash-collision-ice-153410.stderr @@ -1,11 +1,11 @@ error[E0575]: expected method or associated constant, found associated type `Iterator::Item` - --> $DIR/def-path-hash-collision-ice-153410.rs:22:10 + --> $DIR/def-path-hash-collision-ice-153410.rs:21:10 | LL | reuse< < fn()>::Output>::Item as Iterator>::*; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a method or associated constant error[E0782]: expected a type, found a trait - --> $DIR/def-path-hash-collision-ice-153410.rs:20:6 + --> $DIR/def-path-hash-collision-ice-153410.rs:19:6 | LL | impl Iterator { | ^^^^^^^^ @@ -20,7 +20,7 @@ LL | impl Iterator for /* Type */ { | ++++++++++++++ error[E0223]: ambiguous associated type - --> $DIR/def-path-hash-collision-ice-153410.rs:22:14 + --> $DIR/def-path-hash-collision-ice-153410.rs:21:14 | LL | reuse< < fn()>::Output>::Item as Iterator>::*; | ^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/ui/delegation/generics/free-fn-to-free-fn-pass.rs b/tests/ui/delegation/generics/free-fn-to-free-fn-pass.rs index 625bbdd758c1..7883b8651e4a 100644 --- a/tests/ui/delegation/generics/free-fn-to-free-fn-pass.rs +++ b/tests/ui/delegation/generics/free-fn-to-free-fn-pass.rs @@ -1,6 +1,5 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] mod to_reuse { pub fn types(x: U, y: T) -> (T, U) { diff --git a/tests/ui/delegation/generics/free-fn-to-free-fn.rs b/tests/ui/delegation/generics/free-fn-to-free-fn.rs index 67f7a12d710d..7090975f89a1 100644 --- a/tests/ui/delegation/generics/free-fn-to-free-fn.rs +++ b/tests/ui/delegation/generics/free-fn-to-free-fn.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] mod to_reuse { pub fn consts() -> i32 { diff --git a/tests/ui/delegation/generics/free-fn-to-free-fn.stderr b/tests/ui/delegation/generics/free-fn-to-free-fn.stderr index db88b8d4f8b7..3032dd53a50b 100644 --- a/tests/ui/delegation/generics/free-fn-to-free-fn.stderr +++ b/tests/ui/delegation/generics/free-fn-to-free-fn.stderr @@ -1,5 +1,5 @@ error[E0107]: function takes 0 lifetime arguments but 1 lifetime argument was supplied - --> $DIR/free-fn-to-free-fn.rs:19:5 + --> $DIR/free-fn-to-free-fn.rs:18:5 | LL | late::<'static>(&0u8); | ^^^^----------- help: remove the unnecessary generics @@ -7,13 +7,13 @@ LL | late::<'static>(&0u8); | expected 0 lifetime arguments | note: function defined here, with 0 lifetime parameters - --> $DIR/free-fn-to-free-fn.rs:15:17 + --> $DIR/free-fn-to-free-fn.rs:14:17 | LL | reuse to_reuse::late; | ^^^^ error[E0277]: the trait bound `S: Clone` is not satisfied - --> $DIR/free-fn-to-free-fn.rs:23:12 + --> $DIR/free-fn-to-free-fn.rs:22:12 | LL | bounds(S); | ------ ^ the trait `Clone` is not implemented for `S` @@ -21,7 +21,7 @@ LL | bounds(S); | required by a bound introduced by this call | note: required by a bound in `bounds` - --> $DIR/free-fn-to-free-fn.rs:11:22 + --> $DIR/free-fn-to-free-fn.rs:10:22 | LL | pub fn bounds(_: T) {} | ^^^^^ required by this bound in `bounds` diff --git a/tests/ui/delegation/generics/free-fn-to-trait-infer.rs b/tests/ui/delegation/generics/free-fn-to-trait-infer.rs index f89c17fe266c..0a0665b75268 100644 --- a/tests/ui/delegation/generics/free-fn-to-trait-infer.rs +++ b/tests/ui/delegation/generics/free-fn-to-trait-infer.rs @@ -1,7 +1,6 @@ //@ compile-flags: -Z deduplicate-diagnostics=yes #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn foo(&self, _: U, _: T) {} diff --git a/tests/ui/delegation/generics/free-fn-to-trait-infer.stderr b/tests/ui/delegation/generics/free-fn-to-trait-infer.stderr index 05956f045a27..f1e9231cc405 100644 --- a/tests/ui/delegation/generics/free-fn-to-trait-infer.stderr +++ b/tests/ui/delegation/generics/free-fn-to-trait-infer.stderr @@ -1,23 +1,23 @@ error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions - --> $DIR/free-fn-to-trait-infer.rs:12:15 + --> $DIR/free-fn-to-trait-infer.rs:11:15 | LL | reuse Trait::<_>::foo:: as generic_arguments1; | ^ not allowed in type signatures error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions - --> $DIR/free-fn-to-trait-infer.rs:14:20 + --> $DIR/free-fn-to-trait-infer.rs:13:20 | LL | reuse >::foo as generic_arguments2; | ^ not allowed in type signatures error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions - --> $DIR/free-fn-to-trait-infer.rs:16:8 + --> $DIR/free-fn-to-trait-infer.rs:15:8 | LL | reuse <_ as Trait<_>>::foo as generic_arguments3; | ^ not allowed in type signatures error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions - --> $DIR/free-fn-to-trait-infer.rs:16:19 + --> $DIR/free-fn-to-trait-infer.rs:15:19 | LL | reuse <_ as Trait<_>>::foo as generic_arguments3; | ^ not allowed in type signatures diff --git a/tests/ui/delegation/generics/free-fn-to-trait-method-pass.rs b/tests/ui/delegation/generics/free-fn-to-trait-method-pass.rs index f7b7c09e2ca4..865a8314d01d 100644 --- a/tests/ui/delegation/generics/free-fn-to-trait-method-pass.rs +++ b/tests/ui/delegation/generics/free-fn-to-trait-method-pass.rs @@ -1,6 +1,5 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] mod types { pub trait Trait { diff --git a/tests/ui/delegation/generics/free-fn-to-trait-method.rs b/tests/ui/delegation/generics/free-fn-to-trait-method.rs index eb3a941c8f48..fba3ddb16958 100644 --- a/tests/ui/delegation/generics/free-fn-to-trait-method.rs +++ b/tests/ui/delegation/generics/free-fn-to-trait-method.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] mod default_param { pub trait Trait { diff --git a/tests/ui/delegation/generics/free-fn-to-trait-method.stderr b/tests/ui/delegation/generics/free-fn-to-trait-method.stderr index b35a3188dd94..8b2e603b4c9b 100644 --- a/tests/ui/delegation/generics/free-fn-to-trait-method.stderr +++ b/tests/ui/delegation/generics/free-fn-to-trait-method.stderr @@ -1,5 +1,5 @@ error[E0277]: the trait bound `S: Copy` is not satisfied - --> $DIR/free-fn-to-trait-method.rs:39:18 + --> $DIR/free-fn-to-trait-method.rs:38:18 | LL | bounds(&0u8, S, U); | ------ ^ the trait `Copy` is not implemented for `S` @@ -7,7 +7,7 @@ LL | bounds(&0u8, S, U); | required by a bound introduced by this call | note: required by a bound in `bounds` - --> $DIR/free-fn-to-trait-method.rs:23:54 + --> $DIR/free-fn-to-trait-method.rs:22:54 | LL | fn foo(&self, t: T, u: U) where T: Copy {} | ^^^^ required by this bound in `bounds` @@ -21,7 +21,7 @@ LL | struct S; | error[E0277]: the trait bound `U: Clone` is not satisfied - --> $DIR/free-fn-to-trait-method.rs:39:21 + --> $DIR/free-fn-to-trait-method.rs:38:21 | LL | bounds(&0u8, S, U); | ------ ^ the trait `Clone` is not implemented for `U` @@ -29,7 +29,7 @@ LL | bounds(&0u8, S, U); | required by a bound introduced by this call | note: required by a bound in `bounds` - --> $DIR/free-fn-to-trait-method.rs:23:19 + --> $DIR/free-fn-to-trait-method.rs:22:19 | LL | fn foo(&self, t: T, u: U) where T: Copy {} | ^^^^^ required by this bound in `bounds` diff --git a/tests/ui/delegation/generics/free-to-trait-self-reuse.rs b/tests/ui/delegation/generics/free-to-trait-self-reuse.rs index 4714fa471432..f8471b53c57d 100644 --- a/tests/ui/delegation/generics/free-to-trait-self-reuse.rs +++ b/tests/ui/delegation/generics/free-to-trait-self-reuse.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Bound {} diff --git a/tests/ui/delegation/generics/free-to-trait-self-reuse.stderr b/tests/ui/delegation/generics/free-to-trait-self-reuse.stderr index 842f4cd4eb39..a37a1b777d4d 100644 --- a/tests/ui/delegation/generics/free-to-trait-self-reuse.stderr +++ b/tests/ui/delegation/generics/free-to-trait-self-reuse.stderr @@ -1,21 +1,21 @@ error[E0277]: the trait bound `Struct: Bound` is not satisfied - --> $DIR/free-to-trait-self-reuse.rs:32:49 + --> $DIR/free-to-trait-self-reuse.rs:31:49 | LL | impl<'a, T, const X: usize> Trait<'a, T, X> for Struct {} | ^^^^^^ unsatisfied trait bound | help: the trait `Bound` is not implemented for `Struct` - --> $DIR/free-to-trait-self-reuse.rs:31:1 + --> $DIR/free-to-trait-self-reuse.rs:30:1 | LL | struct Struct; | ^^^^^^^^^^^^^ help: the trait `Bound` is implemented for `usize` - --> $DIR/free-to-trait-self-reuse.rs:16:1 + --> $DIR/free-to-trait-self-reuse.rs:15:1 | LL | impl Bound for usize {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^ note: required by a bound in `Trait` - --> $DIR/free-to-trait-self-reuse.rs:8:11 + --> $DIR/free-to-trait-self-reuse.rs:7:11 | LL | trait Trait<'a, T, const X: usize> | ----- required by a bound in this trait @@ -24,13 +24,13 @@ LL | Self: Bound + Sized, | ^^^^^^^^ required by this bound in `Trait` error[E0277]: the trait bound `String: Trait<'a, T, X>` is not satisfied - --> $DIR/free-to-trait-self-reuse.rs:28:8 + --> $DIR/free-to-trait-self-reuse.rs:27:8 | LL | reuse ::method as error5; | ^^^^^^ the trait `Trait<'a, T, X>` is not implemented for `String` | help: the following other types implement trait `Trait<'a, T, X>` - --> $DIR/free-to-trait-self-reuse.rs:15:1 + --> $DIR/free-to-trait-self-reuse.rs:14:1 | LL | impl<'a, T, const X: usize> Trait<'a, T, X> for usize {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `usize` @@ -39,23 +39,23 @@ LL | impl<'a, T, const X: usize> Trait<'a, T, X> for Struct {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Struct` error[E0277]: the trait bound `Struct: Bound` is not satisfied - --> $DIR/free-to-trait-self-reuse.rs:35:8 + --> $DIR/free-to-trait-self-reuse.rs:34:8 | LL | reuse ::method as error6; | ^^^^^^ unsatisfied trait bound | help: the trait `Bound` is not implemented for `Struct` - --> $DIR/free-to-trait-self-reuse.rs:31:1 + --> $DIR/free-to-trait-self-reuse.rs:30:1 | LL | struct Struct; | ^^^^^^^^^^^^^ help: the trait `Bound` is implemented for `usize` - --> $DIR/free-to-trait-self-reuse.rs:16:1 + --> $DIR/free-to-trait-self-reuse.rs:15:1 | LL | impl Bound for usize {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^ note: required by a bound in `Trait::method` - --> $DIR/free-to-trait-self-reuse.rs:8:11 + --> $DIR/free-to-trait-self-reuse.rs:7:11 | LL | Self: Bound + Sized, | ^^^^^^^^ required by this bound in `Trait::method` @@ -64,7 +64,7 @@ LL | fn method(&self, x: U) {} | ------ required by a bound in this associated function error[E0107]: function takes 3 generic arguments but 2 generic arguments were supplied - --> $DIR/free-to-trait-self-reuse.rs:44:5 + --> $DIR/free-to-trait-self-reuse.rs:43:5 | LL | foo3::(&123, "".to_string()); | ^^^^ ------ ---- supplied 2 generic arguments @@ -72,7 +72,7 @@ LL | foo3::(&123, "".to_string()); | expected 3 generic arguments | note: function defined here, with 3 generic parameters: `Self`, `U`, `B` - --> $DIR/free-to-trait-self-reuse.rs:23:45 + --> $DIR/free-to-trait-self-reuse.rs:22:45 | LL | reuse Trait::<'static, i32, 123>::method as foo3; | ------ ^^^^ @@ -82,7 +82,7 @@ LL | foo3::(&123, "".to_string()); | +++ error[E0107]: function takes 5 generic arguments but 4 generic arguments were supplied - --> $DIR/free-to-trait-self-reuse.rs:47:5 + --> $DIR/free-to-trait-self-reuse.rs:46:5 | LL | bar3::<'static, i32, 123, bool, false>(&mut 123, true); | ^^^^ --- --- ---- ----- supplied 4 generic arguments @@ -90,7 +90,7 @@ LL | bar3::<'static, i32, 123, bool, false>(&mut 123, true); | expected 5 generic arguments | note: function defined here, with 5 generic parameters: `Self`, `T`, `X`, `U`, `B` - --> $DIR/free-to-trait-self-reuse.rs:25:25 + --> $DIR/free-to-trait-self-reuse.rs:24:25 | LL | reuse Trait::method3 as bar3; | ------- ^^^^ @@ -100,7 +100,7 @@ LL | bar3::<'static, i32, 123, bool, false, B>(&mut 123, true); | +++ error[E0107]: function takes 3 generic arguments but 2 generic arguments were supplied - --> $DIR/free-to-trait-self-reuse.rs:49:5 + --> $DIR/free-to-trait-self-reuse.rs:48:5 | LL | bar4::<'static, usize, 321>(&mut 123, vec![123]); | ^^^^ ----- --- supplied 2 generic arguments @@ -108,7 +108,7 @@ LL | bar4::<'static, usize, 321>(&mut 123, vec![123]); | expected 3 generic arguments | note: function defined here, with 3 generic parameters: `Self`, `T`, `X` - --> $DIR/free-to-trait-self-reuse.rs:26:44 + --> $DIR/free-to-trait-self-reuse.rs:25:44 | LL | reuse Trait::method3::, false> as bar4; | ------- ^^^^ diff --git a/tests/ui/delegation/generics/free-to-trait-static-reuse.rs b/tests/ui/delegation/generics/free-to-trait-static-reuse.rs index b82e3fcac1b3..abb69e5fc158 100644 --- a/tests/ui/delegation/generics/free-to-trait-static-reuse.rs +++ b/tests/ui/delegation/generics/free-to-trait-static-reuse.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Bound {} diff --git a/tests/ui/delegation/generics/free-to-trait-static-reuse.stderr b/tests/ui/delegation/generics/free-to-trait-static-reuse.stderr index 4ccbd0b072c3..398fa2e5db92 100644 --- a/tests/ui/delegation/generics/free-to-trait-static-reuse.stderr +++ b/tests/ui/delegation/generics/free-to-trait-static-reuse.stderr @@ -1,21 +1,21 @@ error[E0277]: the trait bound `Struct: Bound` is not satisfied - --> $DIR/free-to-trait-static-reuse.rs:34:49 + --> $DIR/free-to-trait-static-reuse.rs:33:49 | LL | impl<'a, T, const X: usize> Trait<'a, T, X> for Struct {} | ^^^^^^ unsatisfied trait bound | help: the trait `Bound` is not implemented for `Struct` - --> $DIR/free-to-trait-static-reuse.rs:33:1 + --> $DIR/free-to-trait-static-reuse.rs:32:1 | LL | struct Struct; | ^^^^^^^^^^^^^ help: the trait `Bound` is implemented for `usize` - --> $DIR/free-to-trait-static-reuse.rs:14:1 + --> $DIR/free-to-trait-static-reuse.rs:13:1 | LL | impl Bound for usize {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^ note: required by a bound in `Trait` - --> $DIR/free-to-trait-static-reuse.rs:8:11 + --> $DIR/free-to-trait-static-reuse.rs:7:11 | LL | trait Trait<'a, T, const X: usize> | ----- required by a bound in this trait @@ -24,13 +24,13 @@ LL | Self: Bound, | ^^^^^^^^ required by this bound in `Trait` error[E0283]: type annotations needed - --> $DIR/free-to-trait-static-reuse.rs:21:14 + --> $DIR/free-to-trait-static-reuse.rs:20:14 | LL | reuse Trait::static_method as error { self - 123 } | ^^^^^^^^^^^^^ cannot infer type | note: multiple `impl`s satisfying `_: Trait<'a, T, X>` found - --> $DIR/free-to-trait-static-reuse.rs:13:1 + --> $DIR/free-to-trait-static-reuse.rs:12:1 | LL | impl<'a, T, const X: usize> Trait<'a, T, X> for usize {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -39,13 +39,13 @@ LL | impl<'a, T, const X: usize> Trait<'a, T, X> for Struct {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0283]: type annotations needed - --> $DIR/free-to-trait-static-reuse.rs:23:35 + --> $DIR/free-to-trait-static-reuse.rs:22:35 | LL | reuse Trait::<'static, i32, 123>::static_method as error2; | ^^^^^^^^^^^^^ cannot infer type | note: multiple `impl`s satisfying `_: Trait<'static, i32, 123>` found - --> $DIR/free-to-trait-static-reuse.rs:13:1 + --> $DIR/free-to-trait-static-reuse.rs:12:1 | LL | impl<'a, T, const X: usize> Trait<'a, T, X> for usize {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -54,13 +54,13 @@ LL | impl<'a, T, const X: usize> Trait<'a, T, X> for Struct {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0283]: type annotations needed - --> $DIR/free-to-trait-static-reuse.rs:25:35 + --> $DIR/free-to-trait-static-reuse.rs:24:35 | LL | reuse Trait::<'static, i32, 123>::static_method::<'static, String, false> as error3; | ^^^^^^^^^^^^^ cannot infer type | note: multiple `impl`s satisfying `_: Trait<'static, i32, 123>` found - --> $DIR/free-to-trait-static-reuse.rs:13:1 + --> $DIR/free-to-trait-static-reuse.rs:12:1 | LL | impl<'a, T, const X: usize> Trait<'a, T, X> for usize {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -69,13 +69,13 @@ LL | impl<'a, T, const X: usize> Trait<'a, T, X> for Struct {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0283]: type annotations needed - --> $DIR/free-to-trait-static-reuse.rs:27:14 + --> $DIR/free-to-trait-static-reuse.rs:26:14 | LL | reuse Trait::static_method::<'static, Vec, false> as error4 { self + 4 } | ^^^^^^^^^^^^^ cannot infer type | note: multiple `impl`s satisfying `_: Trait<'a, T, X>` found - --> $DIR/free-to-trait-static-reuse.rs:13:1 + --> $DIR/free-to-trait-static-reuse.rs:12:1 | LL | impl<'a, T, const X: usize> Trait<'a, T, X> for usize {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -84,13 +84,13 @@ LL | impl<'a, T, const X: usize> Trait<'a, T, X> for Struct {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `String: Trait<'a, T, X>` is not satisfied - --> $DIR/free-to-trait-static-reuse.rs:30:8 + --> $DIR/free-to-trait-static-reuse.rs:29:8 | LL | reuse ::static_method as error5; | ^^^^^^ the trait `Trait<'a, T, X>` is not implemented for `String` | help: the following other types implement trait `Trait<'a, T, X>` - --> $DIR/free-to-trait-static-reuse.rs:13:1 + --> $DIR/free-to-trait-static-reuse.rs:12:1 | LL | impl<'a, T, const X: usize> Trait<'a, T, X> for usize {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `usize` @@ -99,23 +99,23 @@ LL | impl<'a, T, const X: usize> Trait<'a, T, X> for Struct {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Struct` error[E0277]: the trait bound `Struct: Bound` is not satisfied - --> $DIR/free-to-trait-static-reuse.rs:37:8 + --> $DIR/free-to-trait-static-reuse.rs:36:8 | LL | reuse ::static_method as error6; | ^^^^^^ unsatisfied trait bound | help: the trait `Bound` is not implemented for `Struct` - --> $DIR/free-to-trait-static-reuse.rs:33:1 + --> $DIR/free-to-trait-static-reuse.rs:32:1 | LL | struct Struct; | ^^^^^^^^^^^^^ help: the trait `Bound` is implemented for `usize` - --> $DIR/free-to-trait-static-reuse.rs:14:1 + --> $DIR/free-to-trait-static-reuse.rs:13:1 | LL | impl Bound for usize {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^ note: required by a bound in `Trait::static_method` - --> $DIR/free-to-trait-static-reuse.rs:8:11 + --> $DIR/free-to-trait-static-reuse.rs:7:11 | LL | Self: Bound, | ^^^^^^^^ required by this bound in `Trait::static_method` diff --git a/tests/ui/delegation/generics/generic-params-defaults.rs b/tests/ui/delegation/generics/generic-params-defaults.rs index 66a919555133..96bfd533b790 100644 --- a/tests/ui/delegation/generics/generic-params-defaults.rs +++ b/tests/ui/delegation/generics/generic-params-defaults.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait<'a, 'b, 'c, A = usize, B = u32, C = String, const N: usize = 123> { fn foo(&self) { diff --git a/tests/ui/delegation/generics/generic-params-defaults.stderr b/tests/ui/delegation/generics/generic-params-defaults.stderr index 76fc3fde4753..58242387b172 100644 --- a/tests/ui/delegation/generics/generic-params-defaults.stderr +++ b/tests/ui/delegation/generics/generic-params-defaults.stderr @@ -1,5 +1,5 @@ error: defaults for generic parameters are not allowed here - --> $DIR/generic-params-defaults.rs:5:12 + --> $DIR/generic-params-defaults.rs:4:12 | LL | fn foo(&self) { | ^^^^^^^^^ @@ -12,7 +12,7 @@ error: aborting due to 1 previous error Future incompatibility report: Future breakage diagnostic: error: defaults for generic parameters are not allowed here - --> $DIR/generic-params-defaults.rs:5:12 + --> $DIR/generic-params-defaults.rs:4:12 | LL | fn foo(&self) { | ^^^^^^^^^ diff --git a/tests/ui/delegation/generics/generic-params-same-names.rs b/tests/ui/delegation/generics/generic-params-same-names.rs index ff1d5aa2b3f6..a176930662d4 100644 --- a/tests/ui/delegation/generics/generic-params-same-names.rs +++ b/tests/ui/delegation/generics/generic-params-same-names.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait<'a, 'b, 'c, A, B, C, const N: usize> { fn foo<'a, 'b, 'c, A, B, C, const N: usize>(&self) { diff --git a/tests/ui/delegation/generics/generic-params-same-names.stderr b/tests/ui/delegation/generics/generic-params-same-names.stderr index 71ac05fcada0..6f2f4a0b2265 100644 --- a/tests/ui/delegation/generics/generic-params-same-names.stderr +++ b/tests/ui/delegation/generics/generic-params-same-names.stderr @@ -1,5 +1,5 @@ error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope - --> $DIR/generic-params-same-names.rs:5:12 + --> $DIR/generic-params-same-names.rs:4:12 | LL | trait Trait<'a, 'b, 'c, A, B, C, const N: usize> { | -- first declared here @@ -7,7 +7,7 @@ LL | fn foo<'a, 'b, 'c, A, B, C, const N: usize>(&self) { | ^^ lifetime `'a` already in scope error[E0496]: lifetime name `'b` shadows a lifetime name that is already in scope - --> $DIR/generic-params-same-names.rs:5:16 + --> $DIR/generic-params-same-names.rs:4:16 | LL | trait Trait<'a, 'b, 'c, A, B, C, const N: usize> { | -- first declared here @@ -15,7 +15,7 @@ LL | fn foo<'a, 'b, 'c, A, B, C, const N: usize>(&self) { | ^^ lifetime `'b` already in scope error[E0496]: lifetime name `'c` shadows a lifetime name that is already in scope - --> $DIR/generic-params-same-names.rs:5:20 + --> $DIR/generic-params-same-names.rs:4:20 | LL | trait Trait<'a, 'b, 'c, A, B, C, const N: usize> { | -- first declared here @@ -23,7 +23,7 @@ LL | fn foo<'a, 'b, 'c, A, B, C, const N: usize>(&self) { | ^^ lifetime `'c` already in scope error[E0403]: the name `A` is already used for a generic parameter in this item's generic parameters - --> $DIR/generic-params-same-names.rs:5:24 + --> $DIR/generic-params-same-names.rs:4:24 | LL | trait Trait<'a, 'b, 'c, A, B, C, const N: usize> { | - first use of `A` @@ -31,7 +31,7 @@ LL | fn foo<'a, 'b, 'c, A, B, C, const N: usize>(&self) { | ^ already used error[E0403]: the name `B` is already used for a generic parameter in this item's generic parameters - --> $DIR/generic-params-same-names.rs:5:27 + --> $DIR/generic-params-same-names.rs:4:27 | LL | trait Trait<'a, 'b, 'c, A, B, C, const N: usize> { | - first use of `B` @@ -39,7 +39,7 @@ LL | fn foo<'a, 'b, 'c, A, B, C, const N: usize>(&self) { | ^ already used error[E0403]: the name `C` is already used for a generic parameter in this item's generic parameters - --> $DIR/generic-params-same-names.rs:5:30 + --> $DIR/generic-params-same-names.rs:4:30 | LL | trait Trait<'a, 'b, 'c, A, B, C, const N: usize> { | - first use of `C` @@ -47,7 +47,7 @@ LL | fn foo<'a, 'b, 'c, A, B, C, const N: usize>(&self) { | ^ already used error[E0403]: the name `N` is already used for a generic parameter in this item's generic parameters - --> $DIR/generic-params-same-names.rs:5:39 + --> $DIR/generic-params-same-names.rs:4:39 | LL | trait Trait<'a, 'b, 'c, A, B, C, const N: usize> { | - first use of `N` diff --git a/tests/ui/delegation/generics/generics-aux-pass.rs b/tests/ui/delegation/generics/generics-aux-pass.rs index a2cfe91dc403..06f5c6d4d212 100644 --- a/tests/ui/delegation/generics/generics-aux-pass.rs +++ b/tests/ui/delegation/generics/generics-aux-pass.rs @@ -2,7 +2,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] reuse generics::foo as bar; reuse generics::Trait::foo as trait_foo; diff --git a/tests/ui/delegation/generics/generics-gen-args-errors.rs b/tests/ui/delegation/generics/generics-gen-args-errors.rs index 68e26e41a562..70a69ebcc408 100644 --- a/tests/ui/delegation/generics/generics-gen-args-errors.rs +++ b/tests/ui/delegation/generics/generics-gen-args-errors.rs @@ -1,7 +1,6 @@ //@ compile-flags: -Z deduplicate-diagnostics=yes #![feature(fn_delegation)] -#![allow(incomplete_features)] mod test_1 { fn foo<'a: 'a, 'b: 'b, T: Clone, U: Clone, const N: usize>() {} diff --git a/tests/ui/delegation/generics/generics-gen-args-errors.stderr b/tests/ui/delegation/generics/generics-gen-args-errors.stderr index cf06d397244a..7bf130ba5d6a 100644 --- a/tests/ui/delegation/generics/generics-gen-args-errors.stderr +++ b/tests/ui/delegation/generics/generics-gen-args-errors.stderr @@ -1,5 +1,5 @@ error[E0401]: can't use generic parameters from outer item - --> $DIR/generics-gen-args-errors.rs:34:21 + --> $DIR/generics-gen-args-errors.rs:33:21 | LL | fn check() { | - type parameter from outer item @@ -12,7 +12,7 @@ LL | reuse foo:: as xd; = note: nested items are independent from their parent item for everything except for privacy and name resolution error[E0401]: can't use generic parameters from outer item - --> $DIR/generics-gen-args-errors.rs:34:24 + --> $DIR/generics-gen-args-errors.rs:33:24 | LL | fn check() { | - type parameter from outer item @@ -25,7 +25,7 @@ LL | reuse foo:: as xd; = note: nested items are independent from their parent item for everything except for privacy and name resolution error[E0401]: can't use generic parameters from outer item - --> $DIR/generics-gen-args-errors.rs:34:27 + --> $DIR/generics-gen-args-errors.rs:33:27 | LL | fn check() { | - type parameter from outer item @@ -38,7 +38,7 @@ LL | reuse foo:: as xd; = note: nested items are independent from their parent item for everything except for privacy and name resolution error[E0261]: use of undeclared lifetime name `'asdasd` - --> $DIR/generics-gen-args-errors.rs:53:29 + --> $DIR/generics-gen-args-errors.rs:52:29 | LL | reuse foo::<'static, _, 'asdasd, 'static, 'static, 'static, _> as bar3; | ^^^^^^^ undeclared lifetime @@ -49,7 +49,7 @@ LL | reuse foo'asdasd, ::<'static, _, 'asdasd, 'static, 'static, 'static, _> | ++++++++ error[E0261]: use of undeclared lifetime name `'a` - --> $DIR/generics-gen-args-errors.rs:70:50 + --> $DIR/generics-gen-args-errors.rs:69:50 | LL | reuse foo::<"asdasd", asd, "askdn", 'static, 'a> as bar7; | ^^ undeclared lifetime @@ -60,7 +60,7 @@ LL | reuse foo'a, ::<"asdasd", asd, "askdn", 'static, 'a> as bar7; | +++ error[E0106]: missing lifetime specifiers - --> $DIR/generics-gen-args-errors.rs:117:19 + --> $DIR/generics-gen-args-errors.rs:116:19 | LL | reuse Trait::::foo::<1, 2, 3, _, 6> as bar7; | ^^^^^ expected 3 lifetime parameters @@ -71,7 +71,7 @@ LL | reuse Trait::, Clone, _, 'static, dyn Send, _>::foo'a | ++++++++++++ +++ error[E0423]: expected value, found struct `String` - --> $DIR/generics-gen-args-errors.rs:14:33 + --> $DIR/generics-gen-args-errors.rs:13:33 | LL | bar::(); | ^^^^^^ @@ -81,7 +81,7 @@ LL | bar::(); = note: `String` defined here error[E0425]: cannot find type `asd` in this scope - --> $DIR/generics-gen-args-errors.rs:28:15 + --> $DIR/generics-gen-args-errors.rs:27:15 | LL | bar::(); | ^^^ not found in this scope @@ -92,7 +92,7 @@ LL | fn check() { | +++++ error[E0425]: cannot find type `asd` in this scope - --> $DIR/generics-gen-args-errors.rs:28:20 + --> $DIR/generics-gen-args-errors.rs:27:20 | LL | bar::(); | ^^^ not found in this scope @@ -103,7 +103,7 @@ LL | fn check() { | +++++ error[E0425]: cannot find type `asd` in this scope - --> $DIR/generics-gen-args-errors.rs:28:25 + --> $DIR/generics-gen-args-errors.rs:27:25 | LL | bar::(); | ^^^ not found in this scope @@ -114,73 +114,73 @@ LL | fn check() { | +++++ error[E0425]: cannot find type `asdasd` in this scope - --> $DIR/generics-gen-args-errors.rs:57:39 + --> $DIR/generics-gen-args-errors.rs:56:39 | LL | reuse foo:: as bar4; | ^^^^^^ not found in this scope error[E0425]: cannot find type `asd` in this scope - --> $DIR/generics-gen-args-errors.rs:65:22 + --> $DIR/generics-gen-args-errors.rs:64:22 | LL | reuse foo::<1, 2,asd,String, { let x = 0; }> as bar6; | ^^^ not found in this scope error[E0425]: cannot find type `asd` in this scope - --> $DIR/generics-gen-args-errors.rs:70:27 + --> $DIR/generics-gen-args-errors.rs:69:27 | LL | reuse foo::<"asdasd", asd, "askdn", 'static, 'a> as bar7; | ^^^ not found in this scope error[E0425]: cannot find type `asd` in this scope - --> $DIR/generics-gen-args-errors.rs:85:19 + --> $DIR/generics-gen-args-errors.rs:84:19 | LL | reuse Trait::::foo as bar1; | ^^^ not found in this scope error[E0425]: cannot find type `asd` in this scope - --> $DIR/generics-gen-args-errors.rs:85:24 + --> $DIR/generics-gen-args-errors.rs:84:24 | LL | reuse Trait::::foo as bar1; | ^^^ not found in this scope error[E0425]: cannot find type `asd` in this scope - --> $DIR/generics-gen-args-errors.rs:85:29 + --> $DIR/generics-gen-args-errors.rs:84:29 | LL | reuse Trait::::foo as bar1; | ^^^ not found in this scope error[E0425]: cannot find type `asd` in this scope - --> $DIR/generics-gen-args-errors.rs:85:34 + --> $DIR/generics-gen-args-errors.rs:84:34 | LL | reuse Trait::::foo as bar1; | ^^^ not found in this scope error[E0425]: cannot find type `asd` in this scope - --> $DIR/generics-gen-args-errors.rs:85:39 + --> $DIR/generics-gen-args-errors.rs:84:39 | LL | reuse Trait::::foo as bar1; | ^^^ not found in this scope error[E0425]: cannot find type `asdasa` in this scope - --> $DIR/generics-gen-args-errors.rs:85:44 + --> $DIR/generics-gen-args-errors.rs:84:44 | LL | reuse Trait::::foo as bar1; | ^^^^^^ not found in this scope error[E0425]: cannot find type `DDDD` in this scope - --> $DIR/generics-gen-args-errors.rs:110:34 + --> $DIR/generics-gen-args-errors.rs:109:34 | LL | reuse Trait::<1, 2, 'static, DDDD>::foo::<1, 2, 3, 4, 5, 6> as bar6; | ^^^^ not found in this scope error[E0107]: function takes 2 lifetime arguments but 0 lifetime arguments were supplied - --> $DIR/generics-gen-args-errors.rs:34:15 + --> $DIR/generics-gen-args-errors.rs:33:15 | LL | reuse foo:: as xd; | ^^^ expected 2 lifetime arguments | note: function defined here, with 2 lifetime parameters: `'a`, `'b` - --> $DIR/generics-gen-args-errors.rs:7:8 + --> $DIR/generics-gen-args-errors.rs:6:8 | LL | fn foo<'a: 'a, 'b: 'b, T: Clone, U: Clone, const N: usize>() {} | ^^^ -- -- @@ -190,19 +190,19 @@ LL | reuse foo::<'a, 'b, A, B, C> as xd; | +++++++ error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions - --> $DIR/generics-gen-args-errors.rs:46:11 + --> $DIR/generics-gen-args-errors.rs:45:11 | LL | reuse foo::<> as bar1; | ^^^ not allowed in type signatures error[E0107]: function takes 2 lifetime arguments but 0 lifetime arguments were supplied - --> $DIR/generics-gen-args-errors.rs:49:11 + --> $DIR/generics-gen-args-errors.rs:48:11 | LL | reuse foo:: as bar2; | ^^^ expected 2 lifetime arguments | note: function defined here, with 2 lifetime parameters: `'a`, `'b` - --> $DIR/generics-gen-args-errors.rs:44:8 + --> $DIR/generics-gen-args-errors.rs:43:8 | LL | fn foo<'a: 'a, 'b: 'b, T: Clone, U: Clone, const N: usize>() {} | ^^^ -- -- @@ -212,7 +212,7 @@ LL | reuse foo::<'a, 'b, String, String> as bar2; | +++++++ error[E0107]: function takes 3 generic arguments but 2 generic arguments were supplied - --> $DIR/generics-gen-args-errors.rs:49:11 + --> $DIR/generics-gen-args-errors.rs:48:11 | LL | reuse foo:: as bar2; | ^^^ ------ ------ supplied 2 generic arguments @@ -220,7 +220,7 @@ LL | reuse foo:: as bar2; | expected 3 generic arguments | note: function defined here, with 3 generic parameters: `T`, `U`, `N` - --> $DIR/generics-gen-args-errors.rs:44:8 + --> $DIR/generics-gen-args-errors.rs:43:8 | LL | fn foo<'a: 'a, 'b: 'b, T: Clone, U: Clone, const N: usize>() {} | ^^^ - - -------------- @@ -230,7 +230,7 @@ LL | reuse foo:: as bar2; | +++ error[E0107]: function takes 2 lifetime arguments but 5 lifetime arguments were supplied - --> $DIR/generics-gen-args-errors.rs:53:11 + --> $DIR/generics-gen-args-errors.rs:52:11 | LL | reuse foo::<'static, _, 'asdasd, 'static, 'static, 'static, _> as bar3; | ^^^ --------------------------- help: remove the lifetime arguments @@ -238,19 +238,19 @@ LL | reuse foo::<'static, _, 'asdasd, 'static, 'static, 'static, _> as bar3; | expected 2 lifetime arguments | note: function defined here, with 2 lifetime parameters: `'a`, `'b` - --> $DIR/generics-gen-args-errors.rs:44:8 + --> $DIR/generics-gen-args-errors.rs:43:8 | LL | fn foo<'a: 'a, 'b: 'b, T: Clone, U: Clone, const N: usize>() {} | ^^^ -- -- error[E0107]: function takes 3 generic arguments but 2 generic arguments were supplied - --> $DIR/generics-gen-args-errors.rs:53:11 + --> $DIR/generics-gen-args-errors.rs:52:11 | LL | reuse foo::<'static, _, 'asdasd, 'static, 'static, 'static, _> as bar3; | ^^^ expected 3 generic arguments ------- - supplied 2 generic arguments | note: function defined here, with 3 generic parameters: `T`, `U`, `N` - --> $DIR/generics-gen-args-errors.rs:44:8 + --> $DIR/generics-gen-args-errors.rs:43:8 | LL | fn foo<'a: 'a, 'b: 'b, T: Clone, U: Clone, const N: usize>() {} | ^^^ - - -------------- @@ -260,7 +260,7 @@ LL | reuse foo::<'static, _, 'asdasd, 'static, 'static, 'static, _, N> as ba | +++ error[E0107]: function takes 2 lifetime arguments but 1 lifetime argument was supplied - --> $DIR/generics-gen-args-errors.rs:57:11 + --> $DIR/generics-gen-args-errors.rs:56:11 | LL | reuse foo:: as bar4; | ^^^ ------ supplied 1 lifetime argument @@ -268,7 +268,7 @@ LL | reuse foo:: as bar4; | expected 2 lifetime arguments | note: function defined here, with 2 lifetime parameters: `'a`, `'b` - --> $DIR/generics-gen-args-errors.rs:44:8 + --> $DIR/generics-gen-args-errors.rs:43:8 | LL | fn foo<'a: 'a, 'b: 'b, T: Clone, U: Clone, const N: usize>() {} | ^^^ -- -- @@ -278,13 +278,13 @@ LL | reuse foo:: as bar4; | +++++++++ error[E0107]: function takes 2 lifetime arguments but 0 lifetime arguments were supplied - --> $DIR/generics-gen-args-errors.rs:61:11 + --> $DIR/generics-gen-args-errors.rs:60:11 | LL | reuse foo::<1, 2, _, 4, 5, _> as bar5; | ^^^ expected 2 lifetime arguments | note: function defined here, with 2 lifetime parameters: `'a`, `'b` - --> $DIR/generics-gen-args-errors.rs:44:8 + --> $DIR/generics-gen-args-errors.rs:43:8 | LL | fn foo<'a: 'a, 'b: 'b, T: Clone, U: Clone, const N: usize>() {} | ^^^ -- -- @@ -294,7 +294,7 @@ LL | reuse foo::<'a, 'b, 1, 2, _, 4, 5, _> as bar5; | +++++++ error[E0107]: function takes 3 generic arguments but 6 generic arguments were supplied - --> $DIR/generics-gen-args-errors.rs:61:11 + --> $DIR/generics-gen-args-errors.rs:60:11 | LL | reuse foo::<1, 2, _, 4, 5, _> as bar5; | ^^^ --------- help: remove the unnecessary generic arguments @@ -302,19 +302,19 @@ LL | reuse foo::<1, 2, _, 4, 5, _> as bar5; | expected 3 generic arguments | note: function defined here, with 3 generic parameters: `T`, `U`, `N` - --> $DIR/generics-gen-args-errors.rs:44:8 + --> $DIR/generics-gen-args-errors.rs:43:8 | LL | fn foo<'a: 'a, 'b: 'b, T: Clone, U: Clone, const N: usize>() {} | ^^^ - - -------------- error[E0107]: function takes 2 lifetime arguments but 0 lifetime arguments were supplied - --> $DIR/generics-gen-args-errors.rs:65:11 + --> $DIR/generics-gen-args-errors.rs:64:11 | LL | reuse foo::<1, 2,asd,String, { let x = 0; }> as bar6; | ^^^ expected 2 lifetime arguments | note: function defined here, with 2 lifetime parameters: `'a`, `'b` - --> $DIR/generics-gen-args-errors.rs:44:8 + --> $DIR/generics-gen-args-errors.rs:43:8 | LL | fn foo<'a: 'a, 'b: 'b, T: Clone, U: Clone, const N: usize>() {} | ^^^ -- -- @@ -324,7 +324,7 @@ LL | reuse foo::<'a, 'b, 1, 2,asd,String, { let x = 0; }> as bar6; | +++++++ error[E0107]: function takes 3 generic arguments but 5 generic arguments were supplied - --> $DIR/generics-gen-args-errors.rs:65:11 + --> $DIR/generics-gen-args-errors.rs:64:11 | LL | reuse foo::<1, 2,asd,String, { let x = 0; }> as bar6; | ^^^ ----------------------- help: remove the unnecessary generic arguments @@ -332,25 +332,25 @@ LL | reuse foo::<1, 2,asd,String, { let x = 0; }> as bar6; | expected 3 generic arguments | note: function defined here, with 3 generic parameters: `T`, `U`, `N` - --> $DIR/generics-gen-args-errors.rs:44:8 + --> $DIR/generics-gen-args-errors.rs:43:8 | LL | fn foo<'a: 'a, 'b: 'b, T: Clone, U: Clone, const N: usize>() {} | ^^^ - - -------------- error[E0747]: constant provided when a type was expected - --> $DIR/generics-gen-args-errors.rs:70:17 + --> $DIR/generics-gen-args-errors.rs:69:17 | LL | reuse foo::<"asdasd", asd, "askdn", 'static, 'a> as bar7; | ^^^^^^^^ error[E0107]: function takes 2 lifetime arguments but 0 lifetime arguments were supplied - --> $DIR/generics-gen-args-errors.rs:75:11 + --> $DIR/generics-gen-args-errors.rs:74:11 | LL | reuse foo::<{}, {}, {}> as bar8; | ^^^ expected 2 lifetime arguments | note: function defined here, with 2 lifetime parameters: `'a`, `'b` - --> $DIR/generics-gen-args-errors.rs:44:8 + --> $DIR/generics-gen-args-errors.rs:43:8 | LL | fn foo<'a: 'a, 'b: 'b, T: Clone, U: Clone, const N: usize>() {} | ^^^ -- -- @@ -360,13 +360,13 @@ LL | reuse foo::<'a, 'b, {}, {}, {}> as bar8; | +++++++ error[E0107]: trait takes 3 lifetime arguments but 0 lifetime arguments were supplied - --> $DIR/generics-gen-args-errors.rs:85:11 + --> $DIR/generics-gen-args-errors.rs:84:11 | LL | reuse Trait::::foo as bar1; | ^^^^^ expected 3 lifetime arguments | note: trait defined here, with 3 lifetime parameters: `'b`, `'c`, `'a` - --> $DIR/generics-gen-args-errors.rs:81:11 + --> $DIR/generics-gen-args-errors.rs:80:11 | LL | trait Trait<'b, 'c, 'a, T, const N: usize>: Sized { | ^^^^^ -- -- -- @@ -376,7 +376,7 @@ LL | reuse Trait::<'b, 'c, 'a, asd, asd, asd, asd, asd, asdasa>::foo as bar1 | +++++++++++ error[E0107]: trait takes 2 generic arguments but 6 generic arguments were supplied - --> $DIR/generics-gen-args-errors.rs:85:11 + --> $DIR/generics-gen-args-errors.rs:84:11 | LL | reuse Trait::::foo as bar1; | ^^^^^ ----------------------- help: remove the unnecessary generic arguments @@ -384,13 +384,13 @@ LL | reuse Trait::::foo as bar1; | expected 2 generic arguments | note: trait defined here, with 2 generic parameters: `T`, `N` - --> $DIR/generics-gen-args-errors.rs:81:11 + --> $DIR/generics-gen-args-errors.rs:80:11 | LL | trait Trait<'b, 'c, 'a, T, const N: usize>: Sized { | ^^^^^ - -------------- error[E0107]: trait takes 3 lifetime arguments but 2 lifetime arguments were supplied - --> $DIR/generics-gen-args-errors.rs:95:11 + --> $DIR/generics-gen-args-errors.rs:94:11 | LL | reuse Trait::<'static, 'static>::foo as bar2; | ^^^^^ ------- ------- supplied 2 lifetime arguments @@ -398,7 +398,7 @@ LL | reuse Trait::<'static, 'static>::foo as bar2; | expected 3 lifetime arguments | note: trait defined here, with 3 lifetime parameters: `'b`, `'c`, `'a` - --> $DIR/generics-gen-args-errors.rs:81:11 + --> $DIR/generics-gen-args-errors.rs:80:11 | LL | trait Trait<'b, 'c, 'a, T, const N: usize>: Sized { | ^^^^^ -- -- -- @@ -408,19 +408,19 @@ LL | reuse Trait::<'static, 'static, 'static>::foo as bar2; | +++++++++ error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions - --> $DIR/generics-gen-args-errors.rs:95:11 + --> $DIR/generics-gen-args-errors.rs:94:11 | LL | reuse Trait::<'static, 'static>::foo as bar2; | ^^^^^ not allowed in type signatures error[E0107]: trait takes 3 lifetime arguments but 0 lifetime arguments were supplied - --> $DIR/generics-gen-args-errors.rs:98:11 + --> $DIR/generics-gen-args-errors.rs:97:11 | LL | reuse Trait::<1, 2, 3, 4, 5>::foo as bar3; | ^^^^^ expected 3 lifetime arguments | note: trait defined here, with 3 lifetime parameters: `'b`, `'c`, `'a` - --> $DIR/generics-gen-args-errors.rs:81:11 + --> $DIR/generics-gen-args-errors.rs:80:11 | LL | trait Trait<'b, 'c, 'a, T, const N: usize>: Sized { | ^^^^^ -- -- -- @@ -430,7 +430,7 @@ LL | reuse Trait::<'b, 'c, 'a, 1, 2, 3, 4, 5>::foo as bar3; | +++++++++++ error[E0107]: trait takes 2 generic arguments but 5 generic arguments were supplied - --> $DIR/generics-gen-args-errors.rs:98:11 + --> $DIR/generics-gen-args-errors.rs:97:11 | LL | reuse Trait::<1, 2, 3, 4, 5>::foo as bar3; | ^^^^^ --------- help: remove the unnecessary generic arguments @@ -438,19 +438,19 @@ LL | reuse Trait::<1, 2, 3, 4, 5>::foo as bar3; | expected 2 generic arguments | note: trait defined here, with 2 generic parameters: `T`, `N` - --> $DIR/generics-gen-args-errors.rs:81:11 + --> $DIR/generics-gen-args-errors.rs:80:11 | LL | trait Trait<'b, 'c, 'a, T, const N: usize>: Sized { | ^^^^^ - -------------- error[E0107]: trait takes 3 lifetime arguments but 0 lifetime arguments were supplied - --> $DIR/generics-gen-args-errors.rs:102:11 + --> $DIR/generics-gen-args-errors.rs:101:11 | LL | reuse Trait::<1, 2, true>::foo as bar4; | ^^^^^ expected 3 lifetime arguments | note: trait defined here, with 3 lifetime parameters: `'b`, `'c`, `'a` - --> $DIR/generics-gen-args-errors.rs:81:11 + --> $DIR/generics-gen-args-errors.rs:80:11 | LL | trait Trait<'b, 'c, 'a, T, const N: usize>: Sized { | ^^^^^ -- -- -- @@ -460,7 +460,7 @@ LL | reuse Trait::<'b, 'c, 'a, 1, 2, true>::foo as bar4; | +++++++++++ error[E0107]: trait takes 2 generic arguments but 3 generic arguments were supplied - --> $DIR/generics-gen-args-errors.rs:102:11 + --> $DIR/generics-gen-args-errors.rs:101:11 | LL | reuse Trait::<1, 2, true>::foo as bar4; | ^^^^^ ------ help: remove the unnecessary generic argument @@ -468,13 +468,13 @@ LL | reuse Trait::<1, 2, true>::foo as bar4; | expected 2 generic arguments | note: trait defined here, with 2 generic parameters: `T`, `N` - --> $DIR/generics-gen-args-errors.rs:81:11 + --> $DIR/generics-gen-args-errors.rs:80:11 | LL | trait Trait<'b, 'c, 'a, T, const N: usize>: Sized { | ^^^^^ - -------------- error[E0107]: trait takes 3 lifetime arguments but 1 lifetime argument was supplied - --> $DIR/generics-gen-args-errors.rs:106:11 + --> $DIR/generics-gen-args-errors.rs:105:11 | LL | reuse Trait::<'static>::foo as bar5; | ^^^^^ ------- supplied 1 lifetime argument @@ -482,7 +482,7 @@ LL | reuse Trait::<'static>::foo as bar5; | expected 3 lifetime arguments | note: trait defined here, with 3 lifetime parameters: `'b`, `'c`, `'a` - --> $DIR/generics-gen-args-errors.rs:81:11 + --> $DIR/generics-gen-args-errors.rs:80:11 | LL | trait Trait<'b, 'c, 'a, T, const N: usize>: Sized { | ^^^^^ -- -- -- @@ -492,13 +492,13 @@ LL | reuse Trait::<'static, 'static, 'static>::foo as bar5; | ++++++++++++++++++ error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions - --> $DIR/generics-gen-args-errors.rs:106:11 + --> $DIR/generics-gen-args-errors.rs:105:11 | LL | reuse Trait::<'static>::foo as bar5; | ^^^^^ not allowed in type signatures error[E0107]: trait takes 3 lifetime arguments but 1 lifetime argument was supplied - --> $DIR/generics-gen-args-errors.rs:110:11 + --> $DIR/generics-gen-args-errors.rs:109:11 | LL | reuse Trait::<1, 2, 'static, DDDD>::foo::<1, 2, 3, 4, 5, 6> as bar6; | ^^^^^ - supplied 1 lifetime argument @@ -506,7 +506,7 @@ LL | reuse Trait::<1, 2, 'static, DDDD>::foo::<1, 2, 3, 4, 5, 6> as bar6; | expected 3 lifetime arguments | note: trait defined here, with 3 lifetime parameters: `'b`, `'c`, `'a` - --> $DIR/generics-gen-args-errors.rs:81:11 + --> $DIR/generics-gen-args-errors.rs:80:11 | LL | trait Trait<'b, 'c, 'a, T, const N: usize>: Sized { | ^^^^^ -- -- -- @@ -516,7 +516,7 @@ LL | reuse Trait::<1, 'static, 'static, 2, 'static, DDDD>::foo::<1, 2, 3, 4, | ++++++++++++++++++ error[E0107]: trait takes 2 generic arguments but 3 generic arguments were supplied - --> $DIR/generics-gen-args-errors.rs:110:11 + --> $DIR/generics-gen-args-errors.rs:109:11 | LL | reuse Trait::<1, 2, 'static, DDDD>::foo::<1, 2, 3, 4, 5, 6> as bar6; | ^^^^^ --------------- help: remove the unnecessary generic argument @@ -524,19 +524,19 @@ LL | reuse Trait::<1, 2, 'static, DDDD>::foo::<1, 2, 3, 4, 5, 6> as bar6; | expected 2 generic arguments | note: trait defined here, with 2 generic parameters: `T`, `N` - --> $DIR/generics-gen-args-errors.rs:81:11 + --> $DIR/generics-gen-args-errors.rs:80:11 | LL | trait Trait<'b, 'c, 'a, T, const N: usize>: Sized { | ^^^^^ - -------------- error[E0107]: method takes 1 lifetime argument but 0 lifetime arguments were supplied - --> $DIR/generics-gen-args-errors.rs:110:41 + --> $DIR/generics-gen-args-errors.rs:109:41 | LL | reuse Trait::<1, 2, 'static, DDDD>::foo::<1, 2, 3, 4, 5, 6> as bar6; | ^^^ expected 1 lifetime argument | note: method defined here, with 1 lifetime parameter: `'d` - --> $DIR/generics-gen-args-errors.rs:82:12 + --> $DIR/generics-gen-args-errors.rs:81:12 | LL | fn foo<'d: 'd, U, const M: bool>(self) {} | ^^^ -- @@ -546,7 +546,7 @@ LL | reuse Trait::<1, 2, 'static, DDDD>::foo::<'d, 1, 2, 3, 4, 5, 6> as bar6 | +++ error[E0107]: method takes 2 generic arguments but 6 generic arguments were supplied - --> $DIR/generics-gen-args-errors.rs:110:41 + --> $DIR/generics-gen-args-errors.rs:109:41 | LL | reuse Trait::<1, 2, 'static, DDDD>::foo::<1, 2, 3, 4, 5, 6> as bar6; | ^^^ ------------ help: remove the unnecessary generic arguments @@ -554,13 +554,13 @@ LL | reuse Trait::<1, 2, 'static, DDDD>::foo::<1, 2, 3, 4, 5, 6> as bar6; | expected 2 generic arguments | note: method defined here, with 2 generic parameters: `U`, `M` - --> $DIR/generics-gen-args-errors.rs:82:12 + --> $DIR/generics-gen-args-errors.rs:81:12 | LL | fn foo<'d: 'd, U, const M: bool>(self) {} | ^^^ - ------------- error[E0107]: trait takes 3 lifetime arguments but 1 lifetime argument was supplied - --> $DIR/generics-gen-args-errors.rs:117:11 + --> $DIR/generics-gen-args-errors.rs:116:11 | LL | reuse Trait::::foo::<1, 2, 3, _, 6> as bar7; | ^^^^^ ----- supplied 1 lifetime argument @@ -568,7 +568,7 @@ LL | reuse Trait::::foo::<1, 2, 3, _, | expected 3 lifetime arguments | note: trait defined here, with 3 lifetime parameters: `'b`, `'c`, `'a` - --> $DIR/generics-gen-args-errors.rs:81:11 + --> $DIR/generics-gen-args-errors.rs:80:11 | LL | trait Trait<'b, 'c, 'a, T, const N: usize>: Sized { | ^^^^^ -- -- -- @@ -578,7 +578,7 @@ LL | reuse Trait::: | ++++++++++++++++++ error[E0107]: trait takes 2 generic arguments but 5 generic arguments were supplied - --> $DIR/generics-gen-args-errors.rs:117:11 + --> $DIR/generics-gen-args-errors.rs:116:11 | LL | reuse Trait::::foo::<1, 2, 3, _, 6> as bar7; | ^^^^^ --- help: remove the unnecessary generic argument @@ -586,19 +586,19 @@ LL | reuse Trait::::foo::<1, 2, 3, _, | expected 2 generic arguments | note: trait defined here, with 2 generic parameters: `T`, `N` - --> $DIR/generics-gen-args-errors.rs:81:11 + --> $DIR/generics-gen-args-errors.rs:80:11 | LL | trait Trait<'b, 'c, 'a, T, const N: usize>: Sized { | ^^^^^ - -------------- error[E0107]: method takes 1 lifetime argument but 0 lifetime arguments were supplied - --> $DIR/generics-gen-args-errors.rs:117:59 + --> $DIR/generics-gen-args-errors.rs:116:59 | LL | reuse Trait::::foo::<1, 2, 3, _, 6> as bar7; | ^^^ expected 1 lifetime argument | note: method defined here, with 1 lifetime parameter: `'d` - --> $DIR/generics-gen-args-errors.rs:82:12 + --> $DIR/generics-gen-args-errors.rs:81:12 | LL | fn foo<'d: 'd, U, const M: bool>(self) {} | ^^^ -- @@ -608,7 +608,7 @@ LL | reuse Trait::::foo::<'d, 1, 2, 3 | +++ error[E0107]: method takes 2 generic arguments but 5 generic arguments were supplied - --> $DIR/generics-gen-args-errors.rs:117:59 + --> $DIR/generics-gen-args-errors.rs:116:59 | LL | reuse Trait::::foo::<1, 2, 3, _, 6> as bar7; | ^^^ --------- help: remove the unnecessary generic arguments @@ -616,13 +616,13 @@ LL | reuse Trait::::foo::<1, 2, 3, _, | expected 2 generic arguments | note: method defined here, with 2 generic parameters: `U`, `M` - --> $DIR/generics-gen-args-errors.rs:82:12 + --> $DIR/generics-gen-args-errors.rs:81:12 | LL | fn foo<'d: 'd, U, const M: bool>(self) {} | ^^^ - ------------- error[E0107]: function takes 3 generic arguments but 6 generic arguments were supplied - --> $DIR/generics-gen-args-errors.rs:11:9 + --> $DIR/generics-gen-args-errors.rs:10:9 | LL | bar::<1, 2, 3, 4, 5, 6>(); | ^^^ --------- help: remove the unnecessary generic arguments @@ -630,13 +630,13 @@ LL | bar::<1, 2, 3, 4, 5, 6>(); | expected 3 generic arguments | note: function defined here, with 3 generic parameters: `T`, `U`, `N` - --> $DIR/generics-gen-args-errors.rs:8:18 + --> $DIR/generics-gen-args-errors.rs:7:18 | LL | reuse foo as bar; | --- ^^^ error[E0107]: function takes 2 lifetime arguments but 5 lifetime arguments were supplied - --> $DIR/generics-gen-args-errors.rs:17:9 + --> $DIR/generics-gen-args-errors.rs:16:9 | LL | bar::<'static, 'static, 'static, 'static, 'static>(); | ^^^ --------------------------- help: remove the lifetime arguments @@ -644,19 +644,19 @@ LL | bar::<'static, 'static, 'static, 'static, 'static>(); | expected 2 lifetime arguments | note: function defined here, with 2 lifetime parameters: `'a`, `'b` - --> $DIR/generics-gen-args-errors.rs:8:18 + --> $DIR/generics-gen-args-errors.rs:7:18 | LL | reuse foo as bar; | --- ^^^ error[E0747]: constant provided when a type was expected - --> $DIR/generics-gen-args-errors.rs:20:23 + --> $DIR/generics-gen-args-errors.rs:19:23 | LL | bar::(); | ^ error[E0107]: function takes 3 generic arguments but 5 generic arguments were supplied - --> $DIR/generics-gen-args-errors.rs:25:9 + --> $DIR/generics-gen-args-errors.rs:24:9 | LL | bar::<_, _, _, _, _>(); | ^^^ ------ help: remove the unnecessary generic arguments @@ -664,13 +664,13 @@ LL | bar::<_, _, _, _, _>(); | expected 3 generic arguments | note: function defined here, with 3 generic parameters: `T`, `U`, `N` - --> $DIR/generics-gen-args-errors.rs:8:18 + --> $DIR/generics-gen-args-errors.rs:7:18 | LL | reuse foo as bar; | --- ^^^ error[E0747]: unresolved item provided when a constant was expected - --> $DIR/generics-gen-args-errors.rs:28:25 + --> $DIR/generics-gen-args-errors.rs:27:25 | LL | bar::(); | ^^^ @@ -681,7 +681,7 @@ LL | bar::(); | + + error[E0747]: unresolved item provided when a constant was expected - --> $DIR/generics-gen-args-errors.rs:34:27 + --> $DIR/generics-gen-args-errors.rs:33:27 | LL | reuse foo:: as xd; | ^ @@ -692,7 +692,7 @@ LL | reuse foo:: as xd; | + + error[E0747]: constant provided when a type was expected - --> $DIR/generics-gen-args-errors.rs:75:17 + --> $DIR/generics-gen-args-errors.rs:74:17 | LL | reuse foo::<{}, {}, {}> as bar8; | ^^ diff --git a/tests/ui/delegation/generics/impl-to-free-fn-pass.rs b/tests/ui/delegation/generics/impl-to-free-fn-pass.rs index 3b39a4574675..9ed9d9183fa0 100644 --- a/tests/ui/delegation/generics/impl-to-free-fn-pass.rs +++ b/tests/ui/delegation/generics/impl-to-free-fn-pass.rs @@ -1,6 +1,5 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] mod to_reuse { pub fn foo(_: T, y: U) -> U { y } diff --git a/tests/ui/delegation/generics/impl-to-trait-method.rs b/tests/ui/delegation/generics/impl-to-trait-method.rs index 39e32e2ed150..102e905068e2 100644 --- a/tests/ui/delegation/generics/impl-to-trait-method.rs +++ b/tests/ui/delegation/generics/impl-to-trait-method.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] mod bounds { trait Trait0 {} diff --git a/tests/ui/delegation/generics/impl-to-trait-method.stderr b/tests/ui/delegation/generics/impl-to-trait-method.stderr index 74ccf61bea70..114ebf48cca0 100644 --- a/tests/ui/delegation/generics/impl-to-trait-method.stderr +++ b/tests/ui/delegation/generics/impl-to-trait-method.stderr @@ -1,16 +1,16 @@ error[E0277]: the trait bound `bounds::S: Trait0` is not satisfied - --> $DIR/impl-to-trait-method.rs:12:19 + --> $DIR/impl-to-trait-method.rs:11:19 | LL | Self: Trait0, | ^^^^^^ unsatisfied trait bound | help: the trait `Trait0` is not implemented for `bounds::S` - --> $DIR/impl-to-trait-method.rs:21:5 + --> $DIR/impl-to-trait-method.rs:20:5 | LL | struct S(F); | ^^^^^^^^ help: this trait has no implementations, consider adding one - --> $DIR/impl-to-trait-method.rs:5:5 + --> $DIR/impl-to-trait-method.rs:4:5 | LL | trait Trait0 {} | ^^^^^^^^^^^^ @@ -20,7 +20,7 @@ LL + #![feature(trivial_bounds)] | error[E0277]: the trait bound `bounds::F: Trait0` is not satisfied - --> $DIR/impl-to-trait-method.rs:24:34 + --> $DIR/impl-to-trait-method.rs:23:34 | LL | reuse Trait1::::foo { &self.0 } | --- ^^^^^^^ unsatisfied trait bound @@ -28,17 +28,17 @@ LL | reuse Trait1::::foo { &self.0 } | required by a bound introduced by this call | help: the trait `Trait0` is not implemented for `bounds::F` - --> $DIR/impl-to-trait-method.rs:18:5 + --> $DIR/impl-to-trait-method.rs:17:5 | LL | struct F; | ^^^^^^^^ help: this trait has no implementations, consider adding one - --> $DIR/impl-to-trait-method.rs:5:5 + --> $DIR/impl-to-trait-method.rs:4:5 | LL | trait Trait0 {} | ^^^^^^^^^^^^ note: required by a bound in `Trait1::foo` - --> $DIR/impl-to-trait-method.rs:12:19 + --> $DIR/impl-to-trait-method.rs:11:19 | LL | fn foo(&self) | --- required by a bound in this associated function @@ -47,7 +47,7 @@ LL | Self: Trait0, | ^^^^^^ required by this bound in `Trait1::foo` error[E0282]: type annotations needed - --> $DIR/impl-to-trait-method.rs:39:22 + --> $DIR/impl-to-trait-method.rs:38:22 | LL | reuse Trait::foo { &self.0 } | ^^^ cannot infer type for type parameter `T` declared on the trait `Trait` diff --git a/tests/ui/delegation/generics/impl-trait-to-trait-method-pass.rs b/tests/ui/delegation/generics/impl-trait-to-trait-method-pass.rs index 72440fe82d44..00a91bc05cfd 100644 --- a/tests/ui/delegation/generics/impl-trait-to-trait-method-pass.rs +++ b/tests/ui/delegation/generics/impl-trait-to-trait-method-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] use std::iter::{Iterator, Map}; diff --git a/tests/ui/delegation/generics/inherent-impl-to-trait-method-pass.rs b/tests/ui/delegation/generics/inherent-impl-to-trait-method-pass.rs index 6f3bb1789716..8cf0ddbd286d 100644 --- a/tests/ui/delegation/generics/inherent-impl-to-trait-method-pass.rs +++ b/tests/ui/delegation/generics/inherent-impl-to-trait-method-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn foo(&self, x: T, y: U) -> (T, U) { diff --git a/tests/ui/delegation/generics/mapping/free-to-free-pass.rs b/tests/ui/delegation/generics/mapping/free-to-free-pass.rs index bfdcb416d644..c5520350ced6 100644 --- a/tests/ui/delegation/generics/mapping/free-to-free-pass.rs +++ b/tests/ui/delegation/generics/mapping/free-to-free-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] //! This is one of the mapping tests, which tests mapping of delegee parent and child //! generic params, whose main goal is to create cases with diff --git a/tests/ui/delegation/generics/mapping/free-to-trait-pass.rs b/tests/ui/delegation/generics/mapping/free-to-trait-pass.rs index 112688183669..9f4b2b39f5f5 100644 --- a/tests/ui/delegation/generics/mapping/free-to-trait-pass.rs +++ b/tests/ui/delegation/generics/mapping/free-to-trait-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] //! This is one of the mapping tests, which tests mapping of delegee parent and child //! generic params, whose main goal is to create cases with diff --git a/tests/ui/delegation/generics/mapping/impl-trait-to-free-pass.rs b/tests/ui/delegation/generics/mapping/impl-trait-to-free-pass.rs index 7abd9e19dde6..b2da7f56b2da 100644 --- a/tests/ui/delegation/generics/mapping/impl-trait-to-free-pass.rs +++ b/tests/ui/delegation/generics/mapping/impl-trait-to-free-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] #![allow(late_bound_lifetime_arguments)] //! This is one of the mapping tests, which tests mapping of delegee parent and child diff --git a/tests/ui/delegation/generics/mapping/impl-trait-to-trait-pass.rs b/tests/ui/delegation/generics/mapping/impl-trait-to-trait-pass.rs index 3dcb359ab2e5..bf7f8655b111 100644 --- a/tests/ui/delegation/generics/mapping/impl-trait-to-trait-pass.rs +++ b/tests/ui/delegation/generics/mapping/impl-trait-to-trait-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] #![allow(late_bound_lifetime_arguments)] //! This is one of the mapping tests, which tests mapping of delegee parent and child diff --git a/tests/ui/delegation/generics/mapping/inherent-impl-to-free-pass.rs b/tests/ui/delegation/generics/mapping/inherent-impl-to-free-pass.rs index 1e08e155c5de..f7149dd9de03 100644 --- a/tests/ui/delegation/generics/mapping/inherent-impl-to-free-pass.rs +++ b/tests/ui/delegation/generics/mapping/inherent-impl-to-free-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] //! This is one of the mapping tests, which tests mapping of delegee parent and child //! generic params, whose main goal is to create cases with diff --git a/tests/ui/delegation/generics/mapping/inherent-impl-to-trait-pass.rs b/tests/ui/delegation/generics/mapping/inherent-impl-to-trait-pass.rs index bf4d1a7ca2cb..a28ca88c0ce3 100644 --- a/tests/ui/delegation/generics/mapping/inherent-impl-to-trait-pass.rs +++ b/tests/ui/delegation/generics/mapping/inherent-impl-to-trait-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] #![allow(late_bound_lifetime_arguments)] //! This is one of the mapping tests, which tests mapping of delegee parent and child diff --git a/tests/ui/delegation/generics/mapping/trait-to-free-pass.rs b/tests/ui/delegation/generics/mapping/trait-to-free-pass.rs index 12edc3b72fac..452e0ee5cfdd 100644 --- a/tests/ui/delegation/generics/mapping/trait-to-free-pass.rs +++ b/tests/ui/delegation/generics/mapping/trait-to-free-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] //! This is one of the mapping tests, which tests mapping of delegee parent and child //! generic params, whose main goal is to create cases with diff --git a/tests/ui/delegation/generics/mapping/trait-to-trait-pass.rs b/tests/ui/delegation/generics/mapping/trait-to-trait-pass.rs index bcc1369aa440..aac835c90463 100644 --- a/tests/ui/delegation/generics/mapping/trait-to-trait-pass.rs +++ b/tests/ui/delegation/generics/mapping/trait-to-trait-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] #![allow(late_bound_lifetime_arguments)] //! This is one of the mapping tests, which tests mapping of delegee parent and child diff --git a/tests/ui/delegation/generics/stability-implications-non-local-defid.rs b/tests/ui/delegation/generics/stability-implications-non-local-defid.rs index f8b7874f2806..0fb04acd488e 100644 --- a/tests/ui/delegation/generics/stability-implications-non-local-defid.rs +++ b/tests/ui/delegation/generics/stability-implications-non-local-defid.rs @@ -1,7 +1,6 @@ //@ check-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] #![feature(staged_api)] #![unstable(feature = "foo", issue = "none")] diff --git a/tests/ui/delegation/generics/synth-params-ice-143498.rs b/tests/ui/delegation/generics/synth-params-ice-143498.rs index 652059b37ec6..ca6d2d5c193b 100644 --- a/tests/ui/delegation/generics/synth-params-ice-143498.rs +++ b/tests/ui/delegation/generics/synth-params-ice-143498.rs @@ -15,7 +15,6 @@ #![feature(iter_partition_in_place)] #![feature(trusted_random_access)] #![feature(try_find)] -#![allow(incomplete_features)] impl X { //~^ ERROR: cannot find type `X` in this scope diff --git a/tests/ui/delegation/generics/synth-params-ice-143498.stderr b/tests/ui/delegation/generics/synth-params-ice-143498.stderr index 14b03991d9e6..17154f977947 100644 --- a/tests/ui/delegation/generics/synth-params-ice-143498.stderr +++ b/tests/ui/delegation/generics/synth-params-ice-143498.stderr @@ -1,17 +1,17 @@ error[E0425]: cannot find type `X` in this scope - --> $DIR/synth-params-ice-143498.rs:20:6 + --> $DIR/synth-params-ice-143498.rs:19:6 | LL | impl X { | ^ not found in this scope error[E0575]: expected method or associated constant, found associated type `Iterator::Item` - --> $DIR/synth-params-ice-143498.rs:22:10 + --> $DIR/synth-params-ice-143498.rs:21:10 | LL | reuse< std::fmt::Debug as Iterator >::*; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a method or associated constant error[E0782]: expected a type, found a trait - --> $DIR/synth-params-ice-143498.rs:22:12 + --> $DIR/synth-params-ice-143498.rs:21:12 | LL | reuse< std::fmt::Debug as Iterator >::*; | ^^^^^^^^^^^^^^^ diff --git a/tests/ui/delegation/generics/trait-impl-wrong-args-count.rs b/tests/ui/delegation/generics/trait-impl-wrong-args-count.rs index 7cb98ff307fd..4073e5ce8860 100644 --- a/tests/ui/delegation/generics/trait-impl-wrong-args-count.rs +++ b/tests/ui/delegation/generics/trait-impl-wrong-args-count.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] // Testing delegation from trait impl to free functions. mod test_1 { diff --git a/tests/ui/delegation/generics/trait-impl-wrong-args-count.stderr b/tests/ui/delegation/generics/trait-impl-wrong-args-count.stderr index 9234771ca11f..09281768bbf7 100644 --- a/tests/ui/delegation/generics/trait-impl-wrong-args-count.stderr +++ b/tests/ui/delegation/generics/trait-impl-wrong-args-count.stderr @@ -1,5 +1,5 @@ error[E0107]: function takes at most 2 generic arguments but 3 generic arguments were supplied - --> $DIR/trait-impl-wrong-args-count.rs:25:25 + --> $DIR/trait-impl-wrong-args-count.rs:24:25 | LL | reuse to_reuse::bar; | ^^^ @@ -8,31 +8,31 @@ LL | reuse to_reuse::bar; | help: remove the unnecessary generic argument | note: function defined here, with at most 2 generic parameters: `A`, `B` - --> $DIR/trait-impl-wrong-args-count.rs:7:16 + --> $DIR/trait-impl-wrong-args-count.rs:6:16 | LL | pub fn bar<'a: 'a, 'b: 'b, A, B>(x: &super::XX) {} | ^^^ - - error[E0107]: function takes 0 generic arguments but 3 generic arguments were supplied - --> $DIR/trait-impl-wrong-args-count.rs:28:25 + --> $DIR/trait-impl-wrong-args-count.rs:27:25 | LL | reuse to_reuse::bar1; | ^^^^ expected 0 generic arguments | note: function defined here, with 0 generic parameters - --> $DIR/trait-impl-wrong-args-count.rs:8:16 + --> $DIR/trait-impl-wrong-args-count.rs:7:16 | LL | pub fn bar1(x: &super::XX) {} | ^^^^ error[E0284]: type annotations needed - --> $DIR/trait-impl-wrong-args-count.rs:31:25 + --> $DIR/trait-impl-wrong-args-count.rs:30:25 | LL | reuse to_reuse::bar2; | ^^^^ cannot infer the value of the const parameter `X` declared on the function `bar2` | note: required by a const generic parameter in `bar2` - --> $DIR/trait-impl-wrong-args-count.rs:9:39 + --> $DIR/trait-impl-wrong-args-count.rs:8:39 | LL | pub fn bar2(x: &super::XX) {} | ^^^^^^^^^^^^^^ required by this const generic parameter in `bar2` @@ -42,13 +42,13 @@ LL | reuse to_reuse::bar2::; | ++++++++++++++++++++++++++ error[E0284]: type annotations needed - --> $DIR/trait-impl-wrong-args-count.rs:31:25 + --> $DIR/trait-impl-wrong-args-count.rs:30:25 | LL | reuse to_reuse::bar2; | ^^^^ cannot infer the value of the const parameter `Y` declared on the function `bar2` | note: required by a const generic parameter in `bar2` - --> $DIR/trait-impl-wrong-args-count.rs:9:55 + --> $DIR/trait-impl-wrong-args-count.rs:8:55 | LL | pub fn bar2(x: &super::XX) {} | ^^^^^^^^^^^^^ required by this const generic parameter in `bar2` @@ -58,13 +58,13 @@ LL | reuse to_reuse::bar2::; | ++++++++++++++++++++++++++ error[E0107]: missing generics for trait `test_2::Trait1` - --> $DIR/trait-impl-wrong-args-count.rs:61:21 + --> $DIR/trait-impl-wrong-args-count.rs:60:21 | LL | reuse ::bar; | ^^^^^^ expected 2 generic arguments | note: trait defined here, with 2 generic parameters: `A`, `B` - --> $DIR/trait-impl-wrong-args-count.rs:52:11 + --> $DIR/trait-impl-wrong-args-count.rs:51:11 | LL | trait Trait1 { | ^^^^^^ - - @@ -74,13 +74,13 @@ LL | reuse >::bar; | ++++++ error[E0107]: missing generics for trait `test_2::Trait1` - --> $DIR/trait-impl-wrong-args-count.rs:68:21 + --> $DIR/trait-impl-wrong-args-count.rs:67:21 | LL | reuse ::bar::<'static, u32, u32, 1> as bar3; | ^^^^^^ expected 2 generic arguments | note: trait defined here, with 2 generic parameters: `A`, `B` - --> $DIR/trait-impl-wrong-args-count.rs:52:11 + --> $DIR/trait-impl-wrong-args-count.rs:51:11 | LL | trait Trait1 { | ^^^^^^ - - @@ -90,13 +90,13 @@ LL | reuse >::bar::<'static, u32, u32, 1> as bar3; | ++++++ error[E0107]: missing generics for trait `test_2::Trait1` - --> $DIR/trait-impl-wrong-args-count.rs:71:21 + --> $DIR/trait-impl-wrong-args-count.rs:70:21 | LL | reuse ::bar as bar4; | ^^^^^^ expected 2 generic arguments | note: trait defined here, with 2 generic parameters: `A`, `B` - --> $DIR/trait-impl-wrong-args-count.rs:52:11 + --> $DIR/trait-impl-wrong-args-count.rs:51:11 | LL | trait Trait1 { | ^^^^^^ - - @@ -106,37 +106,37 @@ LL | reuse >::bar as bar4; | ++++++ error[E0107]: associated function takes 0 generic arguments but 3 generic arguments were supplied - --> $DIR/trait-impl-wrong-args-count.rs:96:40 + --> $DIR/trait-impl-wrong-args-count.rs:95:40 | LL | reuse >::bar; | ^^^ expected 0 generic arguments | note: associated function defined here, with 0 generic parameters - --> $DIR/trait-impl-wrong-args-count.rs:87:12 + --> $DIR/trait-impl-wrong-args-count.rs:86:12 | LL | fn bar() {} | ^^^ error[E0107]: associated function takes 0 generic arguments but 3 generic arguments were supplied - --> $DIR/trait-impl-wrong-args-count.rs:99:40 + --> $DIR/trait-impl-wrong-args-count.rs:98:40 | LL | reuse >::bar as bar1; | ^^^ expected 0 generic arguments | note: associated function defined here, with 0 generic parameters - --> $DIR/trait-impl-wrong-args-count.rs:87:12 + --> $DIR/trait-impl-wrong-args-count.rs:86:12 | LL | fn bar() {} | ^^^ error[E0282]: type annotations needed - --> $DIR/trait-impl-wrong-args-count.rs:102:40 + --> $DIR/trait-impl-wrong-args-count.rs:101:40 | LL | reuse >::foo as bar2; | ^^^ cannot infer type of the type parameter `X` declared on the associated function `foo` error[E0107]: associated function takes at most 2 generic arguments but 3 generic arguments were supplied - --> $DIR/trait-impl-wrong-args-count.rs:105:40 + --> $DIR/trait-impl-wrong-args-count.rs:104:40 | LL | reuse >::foo as bar3; | ^^^ @@ -145,7 +145,7 @@ LL | reuse >::foo as bar3; | help: remove the unnecessary generic argument | note: associated function defined here, with at most 2 generic parameters: `X`, `Y` - --> $DIR/trait-impl-wrong-args-count.rs:88:12 + --> $DIR/trait-impl-wrong-args-count.rs:87:12 | LL | fn foo() {} | ^^^ - - diff --git a/tests/ui/delegation/generics/trait-method-to-other-pass.rs b/tests/ui/delegation/generics/trait-method-to-other-pass.rs index 2094705a05ce..ac2c78104dc0 100644 --- a/tests/ui/delegation/generics/trait-method-to-other-pass.rs +++ b/tests/ui/delegation/generics/trait-method-to-other-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] mod to_reuse { pub fn foo(x: T) -> T { x } diff --git a/tests/ui/delegation/generics/unresolved-segment-ice-153389.rs b/tests/ui/delegation/generics/unresolved-segment-ice-153389.rs index 431184923887..6ec229d9635e 100644 --- a/tests/ui/delegation/generics/unresolved-segment-ice-153389.rs +++ b/tests/ui/delegation/generics/unresolved-segment-ice-153389.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait{ fn bar(); diff --git a/tests/ui/delegation/generics/unresolved-segment-ice-153389.stderr b/tests/ui/delegation/generics/unresolved-segment-ice-153389.stderr index b69917117fce..6c65da87f346 100644 --- a/tests/ui/delegation/generics/unresolved-segment-ice-153389.stderr +++ b/tests/ui/delegation/generics/unresolved-segment-ice-153389.stderr @@ -1,5 +1,5 @@ error[E0425]: cannot find function `missing` in this scope - --> $DIR/unresolved-segment-ice-153389.rs:9:11 + --> $DIR/unresolved-segment-ice-153389.rs:8:11 | LL | reuse missing::<> as bar; | ^^^^^^^ not found in this scope diff --git a/tests/ui/delegation/glob-bad-path.rs b/tests/ui/delegation/glob-bad-path.rs index 067cb651777e..71009a51b3cb 100644 --- a/tests/ui/delegation/glob-bad-path.rs +++ b/tests/ui/delegation/glob-bad-path.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait {} struct S; diff --git a/tests/ui/delegation/glob-bad-path.stderr b/tests/ui/delegation/glob-bad-path.stderr index 7e92bc045bbd..f14f8a54ae4c 100644 --- a/tests/ui/delegation/glob-bad-path.stderr +++ b/tests/ui/delegation/glob-bad-path.stderr @@ -1,11 +1,11 @@ error: expected trait, found struct `S` - --> $DIR/glob-bad-path.rs:9:11 + --> $DIR/glob-bad-path.rs:8:11 | LL | reuse S::*; | ^ not a trait error[E0433]: cannot find module or crate `unresolved` in this scope - --> $DIR/glob-bad-path.rs:8:11 + --> $DIR/glob-bad-path.rs:7:11 | LL | reuse unresolved::*; | ^^^^^^^^^^ use of unresolved module or unlinked crate `unresolved` diff --git a/tests/ui/delegation/glob-glob-conflict.rs b/tests/ui/delegation/glob-glob-conflict.rs index c1cd3f703e07..beea96d167c3 100644 --- a/tests/ui/delegation/glob-glob-conflict.rs +++ b/tests/ui/delegation/glob-glob-conflict.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait1 { fn method(&self) -> u8; diff --git a/tests/ui/delegation/glob-glob-conflict.stderr b/tests/ui/delegation/glob-glob-conflict.stderr index f55ee333630c..4ada3eb0efa6 100644 --- a/tests/ui/delegation/glob-glob-conflict.stderr +++ b/tests/ui/delegation/glob-glob-conflict.stderr @@ -1,5 +1,5 @@ error[E0201]: duplicate definitions with name `method`: - --> $DIR/glob-glob-conflict.rs:27:5 + --> $DIR/glob-glob-conflict.rs:26:5 | LL | fn method(&self) -> u8; | ----------------------- item in trait @@ -10,7 +10,7 @@ LL | reuse Trait2::*; | ^^^^^^^^^^^^^^^^ duplicate definition error[E0201]: duplicate definitions with name `method`: - --> $DIR/glob-glob-conflict.rs:33:5 + --> $DIR/glob-glob-conflict.rs:32:5 | LL | fn method(&self) -> u8; | ----------------------- item in trait @@ -21,13 +21,13 @@ LL | reuse Trait1::*; | ^^^^^^^^^^^^^^^^ duplicate definition error[E0061]: this function takes 1 argument but 0 arguments were supplied - --> $DIR/glob-glob-conflict.rs:27:19 + --> $DIR/glob-glob-conflict.rs:26:19 | LL | reuse Trait2::*; | ^ argument #1 of type `&_` is missing | note: method defined here - --> $DIR/glob-glob-conflict.rs:8:8 + --> $DIR/glob-glob-conflict.rs:7:8 | LL | fn method(&self) -> u8; | ^^^^^^ ---- @@ -37,7 +37,7 @@ LL | reuse Trait2::*(/* value */); | +++++++++++++ error[E0308]: mismatched types - --> $DIR/glob-glob-conflict.rs:27:19 + --> $DIR/glob-glob-conflict.rs:26:19 | LL | reuse Trait2::*; | ^- help: consider using a semicolon here: `;` @@ -46,13 +46,13 @@ LL | reuse Trait2::*; | expected `()` because of default return type error[E0061]: this function takes 1 argument but 0 arguments were supplied - --> $DIR/glob-glob-conflict.rs:33:19 + --> $DIR/glob-glob-conflict.rs:32:19 | LL | reuse Trait1::*; | ^ argument #1 of type `&_` is missing | note: method defined here - --> $DIR/glob-glob-conflict.rs:5:8 + --> $DIR/glob-glob-conflict.rs:4:8 | LL | fn method(&self) -> u8; | ^^^^^^ ---- @@ -62,7 +62,7 @@ LL | reuse Trait1::*(/* value */); | +++++++++++++ error[E0308]: mismatched types - --> $DIR/glob-glob-conflict.rs:33:19 + --> $DIR/glob-glob-conflict.rs:32:19 | LL | reuse Trait1::*; | ^- help: consider using a semicolon here: `;` diff --git a/tests/ui/delegation/glob-glob.rs b/tests/ui/delegation/glob-glob.rs index ef7f9a15e195..d574f8d01e20 100644 --- a/tests/ui/delegation/glob-glob.rs +++ b/tests/ui/delegation/glob-glob.rs @@ -1,7 +1,6 @@ //@ check-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] mod inner { pub trait TraitFoo { diff --git a/tests/ui/delegation/glob-non-fn.rs b/tests/ui/delegation/glob-non-fn.rs index ab312d51f498..14a78e7b65e2 100644 --- a/tests/ui/delegation/glob-non-fn.rs +++ b/tests/ui/delegation/glob-non-fn.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn method(&self); diff --git a/tests/ui/delegation/glob-non-fn.stderr b/tests/ui/delegation/glob-non-fn.stderr index f63c8e88c6fa..3353290fc5b1 100644 --- a/tests/ui/delegation/glob-non-fn.stderr +++ b/tests/ui/delegation/glob-non-fn.stderr @@ -1,5 +1,5 @@ error[E0324]: item `CONST` is an associated method, which doesn't match its trait `Trait` - --> $DIR/glob-non-fn.rs:30:5 + --> $DIR/glob-non-fn.rs:29:5 | LL | const CONST: u8; | ---------------- item in trait @@ -8,7 +8,7 @@ LL | reuse Trait::* { &self.0 } | ^^^^^^^^^^^^^^^^^^^^^^^^^^ does not match trait error[E0324]: item `Type` is an associated method, which doesn't match its trait `Trait` - --> $DIR/glob-non-fn.rs:30:5 + --> $DIR/glob-non-fn.rs:29:5 | LL | type Type; | ---------- item in trait @@ -17,7 +17,7 @@ LL | reuse Trait::* { &self.0 } | ^^^^^^^^^^^^^^^^^^^^^^^^^^ does not match trait error[E0201]: duplicate definitions with name `method`: - --> $DIR/glob-non-fn.rs:30:5 + --> $DIR/glob-non-fn.rs:29:5 | LL | fn method(&self); | ----------------- item in trait @@ -29,19 +29,19 @@ LL | reuse Trait::* { &self.0 } | previous definition here error[E0423]: expected function, found associated constant `Trait::CONST` - --> $DIR/glob-non-fn.rs:30:11 + --> $DIR/glob-non-fn.rs:29:11 | LL | reuse Trait::* { &self.0 } | ^^^^^ not a function error[E0423]: expected function, found associated type `Trait::Type` - --> $DIR/glob-non-fn.rs:30:11 + --> $DIR/glob-non-fn.rs:29:11 | LL | reuse Trait::* { &self.0 } | ^^^^^ not a function error[E0046]: not all trait items implemented, missing: `CONST`, `Type`, `method` - --> $DIR/glob-non-fn.rs:29:1 + --> $DIR/glob-non-fn.rs:28:1 | LL | const CONST: u8; | --------------- `CONST` from trait diff --git a/tests/ui/delegation/glob-non-impl.rs b/tests/ui/delegation/glob-non-impl.rs index e3a4061fb15a..4dec76b68034 100644 --- a/tests/ui/delegation/glob-non-impl.rs +++ b/tests/ui/delegation/glob-non-impl.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn method() {} diff --git a/tests/ui/delegation/glob-non-impl.stderr b/tests/ui/delegation/glob-non-impl.stderr index ea458fd5e90f..8a9a4983f325 100644 --- a/tests/ui/delegation/glob-non-impl.stderr +++ b/tests/ui/delegation/glob-non-impl.stderr @@ -1,23 +1,23 @@ error: delegation is not supported in `extern` blocks - --> $DIR/glob-non-impl.rs:15:5 + --> $DIR/glob-non-impl.rs:14:5 | LL | reuse Trait::*; | ^^^^^^^^^^^^^^^ error: glob delegation is only supported in impls - --> $DIR/glob-non-impl.rs:8:1 + --> $DIR/glob-non-impl.rs:7:1 | LL | reuse Trait::*; | ^^^^^^^^^^^^^^^ error: glob delegation is only supported in impls - --> $DIR/glob-non-impl.rs:11:5 + --> $DIR/glob-non-impl.rs:10:5 | LL | reuse Trait::*; | ^^^^^^^^^^^^^^^ error: glob delegation is only supported in impls - --> $DIR/glob-non-impl.rs:19:5 + --> $DIR/glob-non-impl.rs:18:5 | LL | reuse Trait::*; | ^^^^^^^^^^^^^^^ diff --git a/tests/ui/delegation/glob-override.rs b/tests/ui/delegation/glob-override.rs index 1d0dcf1df6e6..13c5fbb2d5c5 100644 --- a/tests/ui/delegation/glob-override.rs +++ b/tests/ui/delegation/glob-override.rs @@ -1,7 +1,6 @@ //@ check-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn foo(&self) -> u8; diff --git a/tests/ui/delegation/glob-traitless-qpath.rs b/tests/ui/delegation/glob-traitless-qpath.rs index abf4b3180ed2..90309f7bf55a 100644 --- a/tests/ui/delegation/glob-traitless-qpath.rs +++ b/tests/ui/delegation/glob-traitless-qpath.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] struct S; diff --git a/tests/ui/delegation/glob-traitless-qpath.stderr b/tests/ui/delegation/glob-traitless-qpath.stderr index e3257de347a7..3c306f145dd7 100644 --- a/tests/ui/delegation/glob-traitless-qpath.stderr +++ b/tests/ui/delegation/glob-traitless-qpath.stderr @@ -1,11 +1,11 @@ error: qualified path without a trait in glob delegation - --> $DIR/glob-traitless-qpath.rs:7:5 + --> $DIR/glob-traitless-qpath.rs:6:5 | LL | reuse ::*; | ^^^^^^^^^^^^^^ error: qualified path without a trait in glob delegation - --> $DIR/glob-traitless-qpath.rs:8:5 + --> $DIR/glob-traitless-qpath.rs:7:5 | LL | reuse <()>::*; | ^^^^^^^^^^^^^^ diff --git a/tests/ui/delegation/glob.rs b/tests/ui/delegation/glob.rs index 5bc80c166489..dce4abea5b55 100644 --- a/tests/ui/delegation/glob.rs +++ b/tests/ui/delegation/glob.rs @@ -1,7 +1,6 @@ //@ check-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn foo(&self) -> u8; diff --git a/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155125.stderr b/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155125.stderr index e8a32e340f3e..d2f0e87ecb59 100644 --- a/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155125.stderr +++ b/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155125.stderr @@ -1,5 +1,5 @@ error[E0428]: the name `foo` is defined multiple times - --> $DIR/hir-crate-items-before-lowering-ices.rs:13:17 + --> $DIR/hir-crate-items-before-lowering-ices.rs:12:17 | LL | fn foo() {} | -------- previous definition of the value `foo` here @@ -9,7 +9,7 @@ LL | reuse foo; = note: `foo` must be defined only once in the value namespace of this block error: complex const arguments must be placed inside of a `const` block - --> $DIR/hir-crate-items-before-lowering-ices.rs:11:13 + --> $DIR/hir-crate-items-before-lowering-ices.rs:10:13 | LL | / { LL | | fn foo() {} diff --git a/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155127.stderr b/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155127.stderr index 132e4e3034c4..8c24631c27fb 100644 --- a/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155127.stderr +++ b/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155127.stderr @@ -1,5 +1,5 @@ error: `#[deprecated]` attribute cannot be used on delegations - --> $DIR/hir-crate-items-before-lowering-ices.rs:27:9 + --> $DIR/hir-crate-items-before-lowering-ices.rs:26:9 | LL | #[deprecated] | ^^^^^^^^^^^^^ diff --git a/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155128.stderr b/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155128.stderr index 0a1b2c5a472c..833b0869002e 100644 --- a/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155128.stderr +++ b/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155128.stderr @@ -1,5 +1,5 @@ error[E0061]: this function takes 0 arguments but 1 argument was supplied - --> $DIR/hir-crate-items-before-lowering-ices.rs:37:11 + --> $DIR/hir-crate-items-before-lowering-ices.rs:36:11 | LL | reuse a as b { | ___________^______- @@ -9,7 +9,7 @@ LL | | } | |_____- unexpected argument of type `fn() {foo::<_>}` | note: function defined here - --> $DIR/hir-crate-items-before-lowering-ices.rs:35:8 + --> $DIR/hir-crate-items-before-lowering-ices.rs:34:8 | LL | fn a() {} | ^ diff --git a/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155164.stderr b/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155164.stderr index 34d1a92ccd22..8590881e6783 100644 --- a/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155164.stderr +++ b/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155164.stderr @@ -1,5 +1,5 @@ error: complex const arguments must be placed inside of a `const` block - --> $DIR/hir-crate-items-before-lowering-ices.rs:47:13 + --> $DIR/hir-crate-items-before-lowering-ices.rs:46:13 | LL | / { LL | | diff --git a/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155202.stderr b/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155202.stderr index 28f045ca6944..abe70cb82f3b 100644 --- a/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155202.stderr +++ b/tests/ui/delegation/hir-crate-items-before-lowering-ices.ice_155202.stderr @@ -1,11 +1,11 @@ error[E0425]: cannot find value `async` in this scope - --> $DIR/hir-crate-items-before-lowering-ices.rs:66:13 + --> $DIR/hir-crate-items-before-lowering-ices.rs:65:13 | LL | async || {}; | ^^^^^ not found in this scope error[E0308]: mismatched types - --> $DIR/hir-crate-items-before-lowering-ices.rs:66:22 + --> $DIR/hir-crate-items-before-lowering-ices.rs:65:22 | LL | async || {}; | ^^ expected `bool`, found `()` diff --git a/tests/ui/delegation/hir-crate-items-before-lowering-ices.rs b/tests/ui/delegation/hir-crate-items-before-lowering-ices.rs index 6c16a1ae22d3..c223d5d4a5ad 100644 --- a/tests/ui/delegation/hir-crate-items-before-lowering-ices.rs +++ b/tests/ui/delegation/hir-crate-items-before-lowering-ices.rs @@ -1,7 +1,6 @@ //@ revisions: ice_155125 ice_155127 ice_155128 ice_155164 ice_155202 #![feature(min_generic_const_args, fn_delegation)] -#![allow(incomplete_features)] #[cfg(ice_155125)] mod ice_155125 { diff --git a/tests/ui/delegation/ice-isssue-128190.rs b/tests/ui/delegation/ice-isssue-128190.rs index dab3bbee663c..2917930634d8 100644 --- a/tests/ui/delegation/ice-isssue-128190.rs +++ b/tests/ui/delegation/ice-isssue-128190.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] fn a(&self) {} //~^ ERROR `self` parameter is only allowed in associated functions diff --git a/tests/ui/delegation/ice-isssue-128190.stderr b/tests/ui/delegation/ice-isssue-128190.stderr index 18f676642c2b..f3e539a8dee3 100644 --- a/tests/ui/delegation/ice-isssue-128190.stderr +++ b/tests/ui/delegation/ice-isssue-128190.stderr @@ -1,5 +1,5 @@ error: `self` parameter is only allowed in associated functions - --> $DIR/ice-isssue-128190.rs:4:6 + --> $DIR/ice-isssue-128190.rs:3:6 | LL | fn a(&self) {} | ^^^^^ not semantically valid as function parameter diff --git a/tests/ui/delegation/ice-issue-122550.rs b/tests/ui/delegation/ice-issue-122550.rs index 92c0dda96054..54a9a9181676 100644 --- a/tests/ui/delegation/ice-issue-122550.rs +++ b/tests/ui/delegation/ice-issue-122550.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn description(&self) -> &str {} diff --git a/tests/ui/delegation/ice-issue-122550.stderr b/tests/ui/delegation/ice-issue-122550.stderr index 01355c8ad921..42fc1e29bb19 100644 --- a/tests/ui/delegation/ice-issue-122550.stderr +++ b/tests/ui/delegation/ice-issue-122550.stderr @@ -1,28 +1,28 @@ error[E0308]: mismatched types - --> $DIR/ice-issue-122550.rs:5:35 + --> $DIR/ice-issue-122550.rs:4:35 | LL | fn description(&self) -> &str {} | ^^ expected `&str`, found `()` error[E0277]: the trait bound `S: Trait` is not satisfied - --> $DIR/ice-issue-122550.rs:13:12 + --> $DIR/ice-issue-122550.rs:12:12 | LL | reuse ::description { &self.0 } | ^ unsatisfied trait bound | help: the trait `Trait` is not implemented for `S` - --> $DIR/ice-issue-122550.rs:10:1 + --> $DIR/ice-issue-122550.rs:9:1 | LL | struct S(F); | ^^^^^^^^ help: this trait has no implementations, consider adding one - --> $DIR/ice-issue-122550.rs:4:1 + --> $DIR/ice-issue-122550.rs:3:1 | LL | trait Trait { | ^^^^^^^^^^^ error[E0308]: mismatched types - --> $DIR/ice-issue-122550.rs:13:39 + --> $DIR/ice-issue-122550.rs:12:39 | LL | reuse ::description { &self.0 } | ----------- ^^^^^^^ expected `&S`, found `&F` @@ -32,7 +32,7 @@ LL | reuse ::description { &self.0 } = note: expected reference `&S` found reference `&F` note: method defined here - --> $DIR/ice-issue-122550.rs:5:8 + --> $DIR/ice-issue-122550.rs:4:8 | LL | fn description(&self) -> &str {} | ^^^^^^^^^^^ ----- diff --git a/tests/ui/delegation/ice-issue-124342.rs b/tests/ui/delegation/ice-issue-124342.rs index ad62f6bd54af..b5e7d9386d33 100644 --- a/tests/ui/delegation/ice-issue-124342.rs +++ b/tests/ui/delegation/ice-issue-124342.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] mod to_reuse {} diff --git a/tests/ui/delegation/ice-issue-124342.stderr b/tests/ui/delegation/ice-issue-124342.stderr index f9a3684d6493..19d75e494caf 100644 --- a/tests/ui/delegation/ice-issue-124342.stderr +++ b/tests/ui/delegation/ice-issue-124342.stderr @@ -1,11 +1,11 @@ error[E0425]: cannot find function `foo` in module `to_reuse` - --> $DIR/ice-issue-124342.rs:7:21 + --> $DIR/ice-issue-124342.rs:6:21 | LL | reuse to_reuse::foo { foo } | ^^^ not found in `to_reuse` error[E0425]: cannot find value `foo` in this scope - --> $DIR/ice-issue-124342.rs:7:27 + --> $DIR/ice-issue-124342.rs:6:27 | LL | reuse to_reuse::foo { foo } | ^^^ diff --git a/tests/ui/delegation/ice-issue-124347.rs b/tests/ui/delegation/ice-issue-124347.rs index 271634711834..56e3a21baf16 100644 --- a/tests/ui/delegation/ice-issue-124347.rs +++ b/tests/ui/delegation/ice-issue-124347.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { reuse Trait::foo { &self.0 } diff --git a/tests/ui/delegation/ice-issue-124347.stderr b/tests/ui/delegation/ice-issue-124347.stderr index 90ad839e662c..9c0125d3a085 100644 --- a/tests/ui/delegation/ice-issue-124347.stderr +++ b/tests/ui/delegation/ice-issue-124347.stderr @@ -1,23 +1,23 @@ error: failed to resolve delegation callee - --> $DIR/ice-issue-124347.rs:5:18 + --> $DIR/ice-issue-124347.rs:4:18 | LL | reuse Trait::foo { &self.0 } | ^^^ error: failed to resolve delegation callee - --> $DIR/ice-issue-124347.rs:10:7 + --> $DIR/ice-issue-124347.rs:9:7 | LL | reuse foo; | ^^^ error[E0061]: this function takes 0 arguments but 1 argument was supplied - --> $DIR/ice-issue-124347.rs:5:18 + --> $DIR/ice-issue-124347.rs:4:18 | LL | reuse Trait::foo { &self.0 } | ^^^ ------- unexpected argument | note: associated function defined here - --> $DIR/ice-issue-124347.rs:5:18 + --> $DIR/ice-issue-124347.rs:4:18 | LL | reuse Trait::foo { &self.0 } | ^^^ @@ -28,7 +28,7 @@ LL + reuse Trait::fo&self.0 } | warning: function cannot return without recursing - --> $DIR/ice-issue-124347.rs:10:7 + --> $DIR/ice-issue-124347.rs:9:7 | LL | reuse foo; | ^^^ diff --git a/tests/ui/delegation/ice-issue-138362.rs b/tests/ui/delegation/ice-issue-138362.rs index c30660098555..9626696530a5 100644 --- a/tests/ui/delegation/ice-issue-138362.rs +++ b/tests/ui/delegation/ice-issue-138362.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait HasSelf { fn method(self); diff --git a/tests/ui/delegation/ice-issue-138362.stderr b/tests/ui/delegation/ice-issue-138362.stderr index 9feddc9feaec..7acb1f196212 100644 --- a/tests/ui/delegation/ice-issue-138362.stderr +++ b/tests/ui/delegation/ice-issue-138362.stderr @@ -1,11 +1,11 @@ error[E0061]: this function takes 1 argument but 0 arguments were supplied - --> $DIR/ice-issue-138362.rs:11:20 + --> $DIR/ice-issue-138362.rs:10:20 | LL | reuse HasSelf::method; | ^^^^^^ argument #1 is missing | note: method defined here - --> $DIR/ice-issue-138362.rs:5:8 + --> $DIR/ice-issue-138362.rs:4:8 | LL | fn method(self); | ^^^^^^ ---- diff --git a/tests/ui/delegation/ice-issue-150673.rs b/tests/ui/delegation/ice-issue-150673.rs index 7f041d3ce257..c0709e9b6e89 100644 --- a/tests/ui/delegation/ice-issue-150673.rs +++ b/tests/ui/delegation/ice-issue-150673.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] mod to_reuse { pub fn foo() -> T { diff --git a/tests/ui/delegation/ice-issue-150673.stderr b/tests/ui/delegation/ice-issue-150673.stderr index fc817b07770e..808e8e84a61e 100644 --- a/tests/ui/delegation/ice-issue-150673.stderr +++ b/tests/ui/delegation/ice-issue-150673.stderr @@ -1,11 +1,11 @@ error[E0107]: missing generics for struct `S` - --> $DIR/ice-issue-150673.rs:16:16 + --> $DIR/ice-issue-150673.rs:15:16 | LL | impl Trait for S { | ^ expected 1 generic argument | note: struct defined here, with 1 generic parameter: `T` - --> $DIR/ice-issue-150673.rs:10:8 + --> $DIR/ice-issue-150673.rs:9:8 | LL | struct S(T); | ^ - diff --git a/tests/ui/delegation/ice-non-fn-target-in-trait-impl.rs b/tests/ui/delegation/ice-non-fn-target-in-trait-impl.rs index ebb826f832bc..a88a2ef0613a 100644 --- a/tests/ui/delegation/ice-non-fn-target-in-trait-impl.rs +++ b/tests/ui/delegation/ice-non-fn-target-in-trait-impl.rs @@ -3,7 +3,6 @@ // should emit a resolution error, not ICE. #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn bar(); diff --git a/tests/ui/delegation/ice-non-fn-target-in-trait-impl.stderr b/tests/ui/delegation/ice-non-fn-target-in-trait-impl.stderr index bed13b0a3a9b..0bf5846cb782 100644 --- a/tests/ui/delegation/ice-non-fn-target-in-trait-impl.stderr +++ b/tests/ui/delegation/ice-non-fn-target-in-trait-impl.stderr @@ -1,11 +1,11 @@ error[E0423]: expected function, found module `std::path` - --> $DIR/ice-non-fn-target-in-trait-impl.rs:14:11 + --> $DIR/ice-non-fn-target-in-trait-impl.rs:13:11 | LL | reuse std::path::<> as bar; | ^^^^^^^^^^^^^ not a function error[E0423]: expected function, found crate `core` - --> $DIR/ice-non-fn-target-in-trait-impl.rs:16:11 + --> $DIR/ice-non-fn-target-in-trait-impl.rs:15:11 | LL | reuse core::<> as bar2; | ^^^^^^^^ not a function diff --git a/tests/ui/delegation/impl-reuse-bad-path.rs b/tests/ui/delegation/impl-reuse-bad-path.rs index 656be5d79d9b..2ac0805ecb96 100644 --- a/tests/ui/delegation/impl-reuse-bad-path.rs +++ b/tests/ui/delegation/impl-reuse-bad-path.rs @@ -1,4 +1,3 @@ -#![allow(incomplete_features)] #![feature(fn_delegation)] mod unresolved { diff --git a/tests/ui/delegation/impl-reuse-bad-path.stderr b/tests/ui/delegation/impl-reuse-bad-path.stderr index bf486260c669..31909993af15 100644 --- a/tests/ui/delegation/impl-reuse-bad-path.stderr +++ b/tests/ui/delegation/impl-reuse-bad-path.stderr @@ -1,47 +1,47 @@ error: empty glob delegation is not supported - --> $DIR/impl-reuse-bad-path.rs:11:5 + --> $DIR/impl-reuse-bad-path.rs:10:5 | LL | reuse impl T for unresolved { self.0 } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: expected trait, found struct `Trait` - --> $DIR/impl-reuse-bad-path.rs:21:16 + --> $DIR/impl-reuse-bad-path.rs:20:16 | LL | reuse impl Trait for S { self.0 } | ^^^^^ not a trait error: expected trait, found module `TraitModule` - --> $DIR/impl-reuse-bad-path.rs:26:16 + --> $DIR/impl-reuse-bad-path.rs:25:16 | LL | reuse impl TraitModule for S { self.0 } | ^^^^^^^^^^^ not a trait error[E0433]: cannot find module or crate `unresolved` in this scope - --> $DIR/impl-reuse-bad-path.rs:6:16 + --> $DIR/impl-reuse-bad-path.rs:5:16 | LL | reuse impl unresolved for S { self.0 } | ^^^^^^^^^^ use of unresolved module or unlinked crate `unresolved` error[E0405]: cannot find trait `unresolved` in this scope - --> $DIR/impl-reuse-bad-path.rs:6:16 + --> $DIR/impl-reuse-bad-path.rs:5:16 | LL | reuse impl unresolved for S { self.0 } | ^^^^^^^^^^ not found in this scope error[E0425]: cannot find type `unresolved` in this scope - --> $DIR/impl-reuse-bad-path.rs:11:22 + --> $DIR/impl-reuse-bad-path.rs:10:22 | LL | reuse impl T for unresolved { self.0 } | ^^^^^^^^^^ not found in this scope error[E0404]: expected trait, found struct `Trait` - --> $DIR/impl-reuse-bad-path.rs:21:16 + --> $DIR/impl-reuse-bad-path.rs:20:16 | LL | reuse impl Trait for S { self.0 } | ^^^^^ not a trait error[E0404]: expected trait, found module `TraitModule` - --> $DIR/impl-reuse-bad-path.rs:26:16 + --> $DIR/impl-reuse-bad-path.rs:25:16 | LL | reuse impl TraitModule for S { self.0 } | ^^^^^^^^^^^ not a trait diff --git a/tests/ui/delegation/impl-reuse-empty-glob.rs b/tests/ui/delegation/impl-reuse-empty-glob.rs index 3f1314c47da6..1c2b86926244 100644 --- a/tests/ui/delegation/impl-reuse-empty-glob.rs +++ b/tests/ui/delegation/impl-reuse-empty-glob.rs @@ -1,4 +1,3 @@ -#![allow(incomplete_features)] #![feature(fn_delegation)] mod empty_glob { diff --git a/tests/ui/delegation/impl-reuse-empty-glob.stderr b/tests/ui/delegation/impl-reuse-empty-glob.stderr index bf6bb5876351..1097f3af2073 100644 --- a/tests/ui/delegation/impl-reuse-empty-glob.stderr +++ b/tests/ui/delegation/impl-reuse-empty-glob.stderr @@ -1,5 +1,5 @@ error: empty glob delegation is not supported - --> $DIR/impl-reuse-empty-glob.rs:9:5 + --> $DIR/impl-reuse-empty-glob.rs:8:5 | LL | reuse impl T for S { self.0 } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/ui/delegation/impl-reuse-illegal-places.rs b/tests/ui/delegation/impl-reuse-illegal-places.rs index 361331d41315..e9a1cf2be7bc 100644 --- a/tests/ui/delegation/impl-reuse-illegal-places.rs +++ b/tests/ui/delegation/impl-reuse-illegal-places.rs @@ -1,4 +1,3 @@ -#![allow(incomplete_features)] #![feature(fn_delegation)] trait T { diff --git a/tests/ui/delegation/impl-reuse-illegal-places.stderr b/tests/ui/delegation/impl-reuse-illegal-places.stderr index fb17ebdd6cee..5aae101b8c32 100644 --- a/tests/ui/delegation/impl-reuse-illegal-places.stderr +++ b/tests/ui/delegation/impl-reuse-illegal-places.stderr @@ -1,5 +1,5 @@ error: expected `:`, found keyword `impl` - --> $DIR/impl-reuse-illegal-places.rs:14:11 + --> $DIR/impl-reuse-illegal-places.rs:13:11 | LL | struct X { | - while parsing this struct @@ -7,7 +7,7 @@ LL | reuse impl T for F { self.0 } | ^^^^ expected `:` error: implementation is not supported in `trait`s or `impl`s - --> $DIR/impl-reuse-illegal-places.rs:19:5 + --> $DIR/impl-reuse-illegal-places.rs:18:5 | LL | reuse impl T for F { self.0 } | ^^^^^^^^^^^^^^^^^^ @@ -15,7 +15,7 @@ LL | reuse impl T for F { self.0 } = help: consider moving the implementation out to a nearby module scope error: implementation is not supported in `trait`s or `impl`s - --> $DIR/impl-reuse-illegal-places.rs:24:5 + --> $DIR/impl-reuse-illegal-places.rs:23:5 | LL | reuse impl T for F { self.0 } | ^^^^^^^^^^^^^^^^^^ @@ -23,7 +23,7 @@ LL | reuse impl T for F { self.0 } = help: consider moving the implementation out to a nearby module scope error: implementation is not supported in `extern` blocks - --> $DIR/impl-reuse-illegal-places.rs:29:5 + --> $DIR/impl-reuse-illegal-places.rs:28:5 | LL | reuse impl T for F { self.0 } | ^^^^^^^^^^^^^^^^^^ @@ -31,13 +31,13 @@ LL | reuse impl T for F { self.0 } = help: consider moving the implementation out to a nearby module scope error: expected identifier, found keyword `impl` - --> $DIR/impl-reuse-illegal-places.rs:39:15 + --> $DIR/impl-reuse-illegal-places.rs:38:15 | LL | reuse impl T for F { self.0 } | ^^^^ expected identifier, found keyword error: expected one of `,`, `as`, or `}`, found keyword `impl` - --> $DIR/impl-reuse-illegal-places.rs:39:15 + --> $DIR/impl-reuse-illegal-places.rs:38:15 | LL | reuse impl T for F { self.0 } | -^^^^ expected one of `,`, `as`, or `}` @@ -45,7 +45,7 @@ LL | reuse impl T for F { self.0 } | help: missing `,` error: expected one of `,`, `as`, or `}`, found `T` - --> $DIR/impl-reuse-illegal-places.rs:39:20 + --> $DIR/impl-reuse-illegal-places.rs:38:20 | LL | reuse impl T for F { self.0 } | -^ expected one of `,`, `as`, or `}` @@ -53,13 +53,13 @@ LL | reuse impl T for F { self.0 } | help: missing `,` error: expected identifier, found keyword `for` - --> $DIR/impl-reuse-illegal-places.rs:39:22 + --> $DIR/impl-reuse-illegal-places.rs:38:22 | LL | reuse impl T for F { self.0 } | ^^^ expected identifier, found keyword error: expected one of `,`, `as`, or `}`, found keyword `for` - --> $DIR/impl-reuse-illegal-places.rs:39:22 + --> $DIR/impl-reuse-illegal-places.rs:38:22 | LL | reuse impl T for F { self.0 } | -^^^ expected one of `,`, `as`, or `}` @@ -67,7 +67,7 @@ LL | reuse impl T for F { self.0 } | help: missing `,` error: expected one of `,`, `as`, or `}`, found `F` - --> $DIR/impl-reuse-illegal-places.rs:39:26 + --> $DIR/impl-reuse-illegal-places.rs:38:26 | LL | reuse impl T for F { self.0 } | -^ expected one of `,`, `as`, or `}` @@ -75,13 +75,13 @@ LL | reuse impl T for F { self.0 } | help: missing `,` error: expected one of `,`, `as`, or `}`, found `{` - --> $DIR/impl-reuse-illegal-places.rs:39:28 + --> $DIR/impl-reuse-illegal-places.rs:38:28 | LL | reuse impl T for F { self.0 } | ^ expected one of `,`, `as`, or `}` error: expected item, found `}` - --> $DIR/impl-reuse-illegal-places.rs:48:1 + --> $DIR/impl-reuse-illegal-places.rs:47:1 | LL | } | ^ expected item diff --git a/tests/ui/delegation/impl-reuse-negative-traits.rs b/tests/ui/delegation/impl-reuse-negative-traits.rs index 8bc2b7270859..bce331e5c36b 100644 --- a/tests/ui/delegation/impl-reuse-negative-traits.rs +++ b/tests/ui/delegation/impl-reuse-negative-traits.rs @@ -1,4 +1,3 @@ -#![allow(incomplete_features)] #![feature(fn_delegation)] #![feature(negative_impls)] diff --git a/tests/ui/delegation/impl-reuse-negative-traits.stderr b/tests/ui/delegation/impl-reuse-negative-traits.stderr index 7510fdd89d7c..1dc4f59e5c97 100644 --- a/tests/ui/delegation/impl-reuse-negative-traits.stderr +++ b/tests/ui/delegation/impl-reuse-negative-traits.stderr @@ -1,5 +1,5 @@ error[E0749]: negative impls cannot have any items - --> $DIR/impl-reuse-negative-traits.rs:16:1 + --> $DIR/impl-reuse-negative-traits.rs:15:1 | LL | reuse impl !Trait for F { &self.0 } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/ui/delegation/impl-reuse-non-reuse-items.rs b/tests/ui/delegation/impl-reuse-non-reuse-items.rs index de7c92279218..0dbe8016c1e8 100644 --- a/tests/ui/delegation/impl-reuse-non-reuse-items.rs +++ b/tests/ui/delegation/impl-reuse-non-reuse-items.rs @@ -1,4 +1,3 @@ -#![allow(incomplete_features)] #![feature(fn_delegation)] mod non_delegatable_items { diff --git a/tests/ui/delegation/impl-reuse-non-reuse-items.stderr b/tests/ui/delegation/impl-reuse-non-reuse-items.stderr index 9d6b0f638136..044c9aa5a7ab 100644 --- a/tests/ui/delegation/impl-reuse-non-reuse-items.stderr +++ b/tests/ui/delegation/impl-reuse-non-reuse-items.stderr @@ -1,5 +1,5 @@ error[E0324]: item `CONST` is an associated method, which doesn't match its trait `Trait` - --> $DIR/impl-reuse-non-reuse-items.rs:23:5 + --> $DIR/impl-reuse-non-reuse-items.rs:22:5 | LL | const CONST: u8; | ---------------- item in trait @@ -8,7 +8,7 @@ LL | reuse impl Trait for S { &self.0 } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ does not match trait error[E0324]: item `Type` is an associated method, which doesn't match its trait `Trait` - --> $DIR/impl-reuse-non-reuse-items.rs:23:5 + --> $DIR/impl-reuse-non-reuse-items.rs:22:5 | LL | type Type; | ---------- item in trait @@ -17,7 +17,7 @@ LL | reuse impl Trait for S { &self.0 } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ does not match trait error[E0201]: duplicate definitions with name `method`: - --> $DIR/impl-reuse-non-reuse-items.rs:23:5 + --> $DIR/impl-reuse-non-reuse-items.rs:22:5 | LL | fn method(&self); | ----------------- item in trait @@ -29,19 +29,19 @@ LL | reuse impl Trait for S { &self.0 } | previous definition here error[E0423]: expected function, found associated constant `Trait::CONST` - --> $DIR/impl-reuse-non-reuse-items.rs:23:16 + --> $DIR/impl-reuse-non-reuse-items.rs:22:16 | LL | reuse impl Trait for S { &self.0 } | ^^^^^ not a function error[E0423]: expected function, found associated type `Trait::Type` - --> $DIR/impl-reuse-non-reuse-items.rs:23:16 + --> $DIR/impl-reuse-non-reuse-items.rs:22:16 | LL | reuse impl Trait for S { &self.0 } | ^^^^^ not a function error[E0046]: not all trait items implemented, missing: `CONST`, `Type`, `method` - --> $DIR/impl-reuse-non-reuse-items.rs:23:5 + --> $DIR/impl-reuse-non-reuse-items.rs:22:5 | LL | const CONST: u8; | --------------- `CONST` from trait diff --git a/tests/ui/delegation/impl-reuse-non-trait-impl-cfg-false.rs b/tests/ui/delegation/impl-reuse-non-trait-impl-cfg-false.rs index 51ef1dc14ba8..0480c98945fe 100644 --- a/tests/ui/delegation/impl-reuse-non-trait-impl-cfg-false.rs +++ b/tests/ui/delegation/impl-reuse-non-trait-impl-cfg-false.rs @@ -1,4 +1,3 @@ -#![allow(incomplete_features)] #![feature(fn_delegation)] struct Trait(usize); diff --git a/tests/ui/delegation/impl-reuse-non-trait-impl-cfg-false.stderr b/tests/ui/delegation/impl-reuse-non-trait-impl-cfg-false.stderr index 24a138016116..da5bddcfe39b 100644 --- a/tests/ui/delegation/impl-reuse-non-trait-impl-cfg-false.stderr +++ b/tests/ui/delegation/impl-reuse-non-trait-impl-cfg-false.stderr @@ -1,5 +1,5 @@ error: only trait impls can be reused - --> $DIR/impl-reuse-non-trait-impl-cfg-false.rs:7:1 + --> $DIR/impl-reuse-non-trait-impl-cfg-false.rs:6:1 | LL | reuse impl Trait { self.0 } | ^^^^^^^^^^^^^^^^ diff --git a/tests/ui/delegation/impl-reuse-non-trait-impl.rs b/tests/ui/delegation/impl-reuse-non-trait-impl.rs index c7a9813250db..913a7d5f815a 100644 --- a/tests/ui/delegation/impl-reuse-non-trait-impl.rs +++ b/tests/ui/delegation/impl-reuse-non-trait-impl.rs @@ -1,4 +1,3 @@ -#![allow(incomplete_features)] #![feature(fn_delegation)] struct Trait(usize); diff --git a/tests/ui/delegation/impl-reuse-non-trait-impl.stderr b/tests/ui/delegation/impl-reuse-non-trait-impl.stderr index 3987042104c3..a0a773f90a98 100644 --- a/tests/ui/delegation/impl-reuse-non-trait-impl.stderr +++ b/tests/ui/delegation/impl-reuse-non-trait-impl.stderr @@ -1,5 +1,5 @@ error: only trait impls can be reused - --> $DIR/impl-reuse-non-trait-impl.rs:6:1 + --> $DIR/impl-reuse-non-trait-impl.rs:5:1 | LL | reuse impl Trait { self.0 } | ^^^^^^^^^^^^^^^^ diff --git a/tests/ui/delegation/impl-reuse-pass.rs b/tests/ui/delegation/impl-reuse-pass.rs index 578e8c08e703..75fbd468aabf 100644 --- a/tests/ui/delegation/impl-reuse-pass.rs +++ b/tests/ui/delegation/impl-reuse-pass.rs @@ -1,6 +1,5 @@ //@ check-pass -#![allow(incomplete_features)] #![feature(fn_delegation)] #![feature(const_trait_impl)] #![allow(warnings)] diff --git a/tests/ui/delegation/impl-reuse-self-hygiene.rs b/tests/ui/delegation/impl-reuse-self-hygiene.rs index b49e4419703a..bbb0c4c04498 100644 --- a/tests/ui/delegation/impl-reuse-self-hygiene.rs +++ b/tests/ui/delegation/impl-reuse-self-hygiene.rs @@ -1,4 +1,3 @@ -#![allow(incomplete_features)] #![feature(fn_delegation)] trait Trait { diff --git a/tests/ui/delegation/impl-reuse-self-hygiene.stderr b/tests/ui/delegation/impl-reuse-self-hygiene.stderr index ae93829809e4..748e36cf55fd 100644 --- a/tests/ui/delegation/impl-reuse-self-hygiene.stderr +++ b/tests/ui/delegation/impl-reuse-self-hygiene.stderr @@ -1,5 +1,5 @@ error[E0424]: expected value, found module `self` - --> $DIR/impl-reuse-self-hygiene.rs:10:76 + --> $DIR/impl-reuse-self-hygiene.rs:9:76 | LL | macro_rules! one_line_reuse { ($self:ident) => { reuse impl Trait for S1 { $self.0 } } } | --------------------------^^^^^---- @@ -13,7 +13,7 @@ LL | one_line_reuse!(self); = note: this error originates in the macro `one_line_reuse` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0424]: expected value, found module `self` - --> $DIR/impl-reuse-self-hygiene.rs:10:76 + --> $DIR/impl-reuse-self-hygiene.rs:9:76 | LL | macro_rules! one_line_reuse { ($self:ident) => { reuse impl Trait for S1 { $self.0 } } } | --------------------------^^^^^---- @@ -28,7 +28,7 @@ LL | one_line_reuse!(self); = note: this error originates in the macro `one_line_reuse` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0424]: expected value, found module `self` - --> $DIR/impl-reuse-self-hygiene.rs:17:22 + --> $DIR/impl-reuse-self-hygiene.rs:16:22 | LL | macro_rules! one_line_reuse_expr { ($x:expr) => { reuse impl Trait for S2 { $x } } } | ------------------------------ `self` not allowed in an implementation @@ -36,7 +36,7 @@ LL | one_line_reuse_expr!(self.0); | ^^^^ `self` value is a keyword only available in methods with a `self` parameter error[E0424]: expected value, found module `self` - --> $DIR/impl-reuse-self-hygiene.rs:17:22 + --> $DIR/impl-reuse-self-hygiene.rs:16:22 | LL | macro_rules! one_line_reuse_expr { ($x:expr) => { reuse impl Trait for S2 { $x } } } | ------------------------------ `self` not allowed in an implementation @@ -46,7 +46,7 @@ LL | one_line_reuse_expr!(self.0); = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` error[E0424]: expected value, found module `self` - --> $DIR/impl-reuse-self-hygiene.rs:24:23 + --> $DIR/impl-reuse-self-hygiene.rs:23:23 | LL | macro_rules! one_line_reuse_expr2 { ($x:expr) => { reuse impl Trait for s3!() { $x } } } | --------------------------------- `self` not allowed in an implementation @@ -54,7 +54,7 @@ LL | one_line_reuse_expr2!(self.0); | ^^^^ `self` value is a keyword only available in methods with a `self` parameter error[E0424]: expected value, found module `self` - --> $DIR/impl-reuse-self-hygiene.rs:24:23 + --> $DIR/impl-reuse-self-hygiene.rs:23:23 | LL | macro_rules! one_line_reuse_expr2 { ($x:expr) => { reuse impl Trait for s3!() { $x } } } | --------------------------------- `self` not allowed in an implementation diff --git a/tests/ui/delegation/impl-trait.rs b/tests/ui/delegation/impl-trait.rs index 13df0155485c..cb86a048a18e 100644 --- a/tests/ui/delegation/impl-trait.rs +++ b/tests/ui/delegation/impl-trait.rs @@ -1,7 +1,6 @@ //@ check-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] mod to_reuse { pub fn foo() -> impl Clone { 0 } diff --git a/tests/ui/delegation/inner-attr.rs b/tests/ui/delegation/inner-attr.rs index 501118713d12..6bd2892095fc 100644 --- a/tests/ui/delegation/inner-attr.rs +++ b/tests/ui/delegation/inner-attr.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] fn a() {} diff --git a/tests/ui/delegation/inner-attr.stderr b/tests/ui/delegation/inner-attr.stderr index 226a48ecf9a4..307586ccef93 100644 --- a/tests/ui/delegation/inner-attr.stderr +++ b/tests/ui/delegation/inner-attr.stderr @@ -1,5 +1,5 @@ error: an inner attribute is not permitted in this context - --> $DIR/inner-attr.rs:6:16 + --> $DIR/inner-attr.rs:5:16 | LL | reuse a as b { #![rustc_dummy] self } | ^^^^^^^^^^^^^^^ @@ -10,13 +10,13 @@ LL | fn main() {} = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files error[E0061]: this function takes 0 arguments but 1 argument was supplied - --> $DIR/inner-attr.rs:6:7 + --> $DIR/inner-attr.rs:5:7 | LL | reuse a as b { #![rustc_dummy] self } | ^ ---- unexpected argument | note: function defined here - --> $DIR/inner-attr.rs:4:4 + --> $DIR/inner-attr.rs:3:4 | LL | fn a() {} | ^ diff --git a/tests/ui/delegation/list.rs b/tests/ui/delegation/list.rs index 208b14816797..fc6eabb4bfd2 100644 --- a/tests/ui/delegation/list.rs +++ b/tests/ui/delegation/list.rs @@ -1,7 +1,6 @@ //@ check-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn foo(&self) -> u8 { 0 } diff --git a/tests/ui/delegation/macro-inside-glob.rs b/tests/ui/delegation/macro-inside-glob.rs index 1d529341c5b4..dae97b20e594 100644 --- a/tests/ui/delegation/macro-inside-glob.rs +++ b/tests/ui/delegation/macro-inside-glob.rs @@ -1,7 +1,6 @@ //@ check-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn foo(&self) -> u8 { 0 } diff --git a/tests/ui/delegation/macro-inside-list.rs b/tests/ui/delegation/macro-inside-list.rs index d07a4e47dd4c..390852a7089f 100644 --- a/tests/ui/delegation/macro-inside-list.rs +++ b/tests/ui/delegation/macro-inside-list.rs @@ -1,7 +1,6 @@ //@ check-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn foo(&self) -> u8 { 0 } diff --git a/tests/ui/delegation/method-call-choice.rs b/tests/ui/delegation/method-call-choice.rs index 8d53d8bfdb72..0131899d8605 100644 --- a/tests/ui/delegation/method-call-choice.rs +++ b/tests/ui/delegation/method-call-choice.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn foo(&self) {} diff --git a/tests/ui/delegation/method-call-choice.stderr b/tests/ui/delegation/method-call-choice.stderr index 6757af20a6b3..b7ba49953cfd 100644 --- a/tests/ui/delegation/method-call-choice.stderr +++ b/tests/ui/delegation/method-call-choice.stderr @@ -1,5 +1,5 @@ error[E0308]: mismatched types - --> $DIR/method-call-choice.rs:21:27 + --> $DIR/method-call-choice.rs:20:27 | LL | reuse to_reuse::foo { self.0 } | --- ^^^^^^ expected `&F`, found `F` @@ -7,7 +7,7 @@ LL | reuse to_reuse::foo { self.0 } | arguments to this function are incorrect | note: function defined here - --> $DIR/method-call-choice.rs:15:12 + --> $DIR/method-call-choice.rs:14:12 | LL | pub fn foo(_: &F) {} | ^^^ ----- diff --git a/tests/ui/delegation/method-call-priority.rs b/tests/ui/delegation/method-call-priority.rs index 8d68740d181a..4467cae6013b 100644 --- a/tests/ui/delegation/method-call-priority.rs +++ b/tests/ui/delegation/method-call-priority.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] #![allow(dead_code)] trait Trait1 { diff --git a/tests/ui/delegation/parse.rs b/tests/ui/delegation/parse.rs index 72b00bf6e0d5..109be4eed282 100644 --- a/tests/ui/delegation/parse.rs +++ b/tests/ui/delegation/parse.rs @@ -2,7 +2,6 @@ #![feature(decl_macro)] #![feature(fn_delegation)] -#![allow(incomplete_features)] macro_rules! reuse { {} => {} } diff --git a/tests/ui/delegation/recursive-delegation-errors.rs b/tests/ui/delegation/recursive-delegation-errors.rs index da295b09caea..353a4e76d94e 100644 --- a/tests/ui/delegation/recursive-delegation-errors.rs +++ b/tests/ui/delegation/recursive-delegation-errors.rs @@ -1,6 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] - mod first_mod { reuse foo; diff --git a/tests/ui/delegation/recursive-delegation-errors.stderr b/tests/ui/delegation/recursive-delegation-errors.stderr index bf446bd872f7..aaa7d8b2d6b4 100644 --- a/tests/ui/delegation/recursive-delegation-errors.stderr +++ b/tests/ui/delegation/recursive-delegation-errors.stderr @@ -1,101 +1,101 @@ error: failed to resolve delegation callee - --> $DIR/recursive-delegation-errors.rs:6:11 + --> $DIR/recursive-delegation-errors.rs:4:11 | LL | reuse foo; | ^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:12:11 + --> $DIR/recursive-delegation-errors.rs:10:11 | LL | reuse foo as bar; | ^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:14:11 + --> $DIR/recursive-delegation-errors.rs:12:11 | LL | reuse bar as foo; | ^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:19:11 + --> $DIR/recursive-delegation-errors.rs:17:11 | LL | reuse foo as foo1; | ^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:21:11 + --> $DIR/recursive-delegation-errors.rs:19:11 | LL | reuse foo1 as foo2; | ^^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:23:11 + --> $DIR/recursive-delegation-errors.rs:21:11 | LL | reuse foo2 as foo3; | ^^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:25:11 + --> $DIR/recursive-delegation-errors.rs:23:11 | LL | reuse foo3 as foo4; | ^^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:27:11 + --> $DIR/recursive-delegation-errors.rs:25:11 | LL | reuse foo4 as foo5; | ^^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:29:11 + --> $DIR/recursive-delegation-errors.rs:27:11 | LL | reuse foo5 as foo; | ^^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:35:22 + --> $DIR/recursive-delegation-errors.rs:33:22 | LL | reuse Trait::foo as bar; | ^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:38:22 + --> $DIR/recursive-delegation-errors.rs:36:22 | LL | reuse Trait::bar as foo; | ^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:45:30 + --> $DIR/recursive-delegation-errors.rs:43:30 | LL | reuse super::fifth_mod::{bar as foo, foo as bar}; | ^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:45:42 + --> $DIR/recursive-delegation-errors.rs:43:42 | LL | reuse super::fifth_mod::{bar as foo, foo as bar}; | ^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:50:27 + --> $DIR/recursive-delegation-errors.rs:48:27 | LL | reuse GlobReuse::{foo as bar, bar as goo, goo as foo}; | ^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:50:39 + --> $DIR/recursive-delegation-errors.rs:48:39 | LL | reuse GlobReuse::{foo as bar, bar as goo, goo as foo}; | ^^^ error: encountered a cycle during delegation signature resolution - --> $DIR/recursive-delegation-errors.rs:50:51 + --> $DIR/recursive-delegation-errors.rs:48:51 | LL | reuse GlobReuse::{foo as bar, bar as goo, goo as foo}; | ^^^ error[E0283]: type annotations needed - --> $DIR/recursive-delegation-errors.rs:35:22 + --> $DIR/recursive-delegation-errors.rs:33:22 | LL | reuse Trait::foo as bar; | ^^^ cannot infer type @@ -103,7 +103,7 @@ LL | reuse Trait::foo as bar; = note: the type must implement `fourth_mod::Trait` error[E0283]: type annotations needed - --> $DIR/recursive-delegation-errors.rs:38:22 + --> $DIR/recursive-delegation-errors.rs:36:22 | LL | reuse Trait::bar as foo; | ^^^ cannot infer type @@ -111,7 +111,7 @@ LL | reuse Trait::bar as foo; = note: the type must implement `fourth_mod::Trait` error[E0283]: type annotations needed - --> $DIR/recursive-delegation-errors.rs:50:27 + --> $DIR/recursive-delegation-errors.rs:48:27 | LL | reuse GlobReuse::{foo as bar, bar as goo, goo as foo}; | ^^^ cannot infer type @@ -119,7 +119,7 @@ LL | reuse GlobReuse::{foo as bar, bar as goo, goo as foo}; = note: the type must implement `GlobReuse` error[E0283]: type annotations needed - --> $DIR/recursive-delegation-errors.rs:50:39 + --> $DIR/recursive-delegation-errors.rs:48:39 | LL | reuse GlobReuse::{foo as bar, bar as goo, goo as foo}; | ^^^ cannot infer type @@ -127,7 +127,7 @@ LL | reuse GlobReuse::{foo as bar, bar as goo, goo as foo}; = note: the type must implement `GlobReuse` error[E0283]: type annotations needed - --> $DIR/recursive-delegation-errors.rs:50:51 + --> $DIR/recursive-delegation-errors.rs:48:51 | LL | reuse GlobReuse::{foo as bar, bar as goo, goo as foo}; | ^^^ cannot infer type @@ -135,7 +135,7 @@ LL | reuse GlobReuse::{foo as bar, bar as goo, goo as foo}; = note: the type must implement `GlobReuse` warning: function cannot return without recursing - --> $DIR/recursive-delegation-errors.rs:6:11 + --> $DIR/recursive-delegation-errors.rs:4:11 | LL | reuse foo; | ^^^ diff --git a/tests/ui/delegation/recursive-delegation-ice-150152.rs b/tests/ui/delegation/recursive-delegation-ice-150152.rs index 565563c9d03d..c4aaa7fd2d1f 100644 --- a/tests/ui/delegation/recursive-delegation-ice-150152.rs +++ b/tests/ui/delegation/recursive-delegation-ice-150152.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] mod first_example { mod to_reuse { pub fn foo() {} } diff --git a/tests/ui/delegation/recursive-delegation-ice-150152.stderr b/tests/ui/delegation/recursive-delegation-ice-150152.stderr index c58f0ff09291..b59b588f4968 100644 --- a/tests/ui/delegation/recursive-delegation-ice-150152.stderr +++ b/tests/ui/delegation/recursive-delegation-ice-150152.stderr @@ -1,29 +1,29 @@ error[E0405]: cannot find trait `Item` in this scope - --> $DIR/recursive-delegation-ice-150152.rs:9:10 + --> $DIR/recursive-delegation-ice-150152.rs:8:10 | LL | impl Item for S { | ^^^^ not found in this scope error[E0425]: cannot find type `S` in this scope - --> $DIR/recursive-delegation-ice-150152.rs:24:20 + --> $DIR/recursive-delegation-ice-150152.rs:23:20 | LL | impl Trait for S { | ^ not found in this scope | note: struct `first_example::S` exists but is inaccessible - --> $DIR/recursive-delegation-ice-150152.rs:6:5 + --> $DIR/recursive-delegation-ice-150152.rs:5:5 | LL | struct S< S >; | ^^^^^^^^^^^^^^ not accessible error[E0425]: cannot find function `foo` in this scope - --> $DIR/recursive-delegation-ice-150152.rs:26:15 + --> $DIR/recursive-delegation-ice-150152.rs:25:15 | LL | reuse foo; | ^^^ not found in this scope | note: these functions exist but are inaccessible - --> $DIR/recursive-delegation-ice-150152.rs:5:20 + --> $DIR/recursive-delegation-ice-150152.rs:4:20 | LL | mod to_reuse { pub fn foo() {} } | ^^^^^^^^^^^^ `first_example::to_reuse::foo`: not accessible @@ -32,19 +32,19 @@ LL | fn foo() {} | ^^^^^^^^ `second_example::to_reuse::foo`: not accessible error[E0603]: function `foo` is private - --> $DIR/recursive-delegation-ice-150152.rs:18:25 + --> $DIR/recursive-delegation-ice-150152.rs:17:25 | LL | reuse to_reuse::foo; | ^^^ private function | note: the function `foo` is defined here - --> $DIR/recursive-delegation-ice-150152.rs:22:9 + --> $DIR/recursive-delegation-ice-150152.rs:21:9 | LL | fn foo() {} | ^^^^^^^^ error[E0392]: type parameter `S` is never used - --> $DIR/recursive-delegation-ice-150152.rs:6:15 + --> $DIR/recursive-delegation-ice-150152.rs:5:15 | LL | struct S< S >; | ^ unused type parameter @@ -53,13 +53,13 @@ LL | struct S< S >; = help: if you intended `S` to be a const parameter, use `const S: /* Type */` instead error[E0107]: missing generics for struct `S` - --> $DIR/recursive-delegation-ice-150152.rs:9:21 + --> $DIR/recursive-delegation-ice-150152.rs:8:21 | LL | impl Item for S { | ^ expected 1 generic argument | note: struct defined here, with 1 generic parameter: `S` - --> $DIR/recursive-delegation-ice-150152.rs:6:12 + --> $DIR/recursive-delegation-ice-150152.rs:5:12 | LL | struct S< S >; | ^ - diff --git a/tests/ui/delegation/recursive-delegation-pass.rs b/tests/ui/delegation/recursive-delegation-pass.rs index 2a40986d352a..94c06749d9ec 100644 --- a/tests/ui/delegation/recursive-delegation-pass.rs +++ b/tests/ui/delegation/recursive-delegation-pass.rs @@ -3,7 +3,6 @@ //@ aux-crate:recursive_delegation_aux=recursive-delegation-aux.rs #![feature(fn_delegation)] -#![allow(incomplete_features)] #![allow(warnings)] mod first_mod { diff --git a/tests/ui/delegation/rename.rs b/tests/ui/delegation/rename.rs index 80b8724a5bf9..229878580071 100644 --- a/tests/ui/delegation/rename.rs +++ b/tests/ui/delegation/rename.rs @@ -1,7 +1,6 @@ //@ check-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] mod to_reuse { pub fn a() {} diff --git a/tests/ui/delegation/reuse-trait-path-with-empty-generics.rs b/tests/ui/delegation/reuse-trait-path-with-empty-generics.rs index 08645e150044..b79f5b7eaf09 100644 --- a/tests/ui/delegation/reuse-trait-path-with-empty-generics.rs +++ b/tests/ui/delegation/reuse-trait-path-with-empty-generics.rs @@ -1,6 +1,5 @@ //@ needs-rustc-debug-assertions #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn bar4(); diff --git a/tests/ui/delegation/reuse-trait-path-with-empty-generics.stderr b/tests/ui/delegation/reuse-trait-path-with-empty-generics.stderr index eaed6cb33c50..5ec13f3703bd 100644 --- a/tests/ui/delegation/reuse-trait-path-with-empty-generics.stderr +++ b/tests/ui/delegation/reuse-trait-path-with-empty-generics.stderr @@ -1,5 +1,5 @@ error[E0423]: expected function, found trait `Trait` - --> $DIR/reuse-trait-path-with-empty-generics.rs:10:11 + --> $DIR/reuse-trait-path-with-empty-generics.rs:9:11 | LL | reuse Trait::<> as bar4; | ^^^^^^^^^ not a function diff --git a/tests/ui/delegation/self-coercion.rs b/tests/ui/delegation/self-coercion.rs index 96c1f1b140b1..e6c71ec1e257 100644 --- a/tests/ui/delegation/self-coercion.rs +++ b/tests/ui/delegation/self-coercion.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait : Sized { fn by_value(self) -> i32 { 1 } diff --git a/tests/ui/delegation/self-hygiene.rs b/tests/ui/delegation/self-hygiene.rs index dac6c319416a..db0049c33be0 100644 --- a/tests/ui/delegation/self-hygiene.rs +++ b/tests/ui/delegation/self-hygiene.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] macro_rules! emit_self { () => { self } } //~^ ERROR expected value, found module `self` diff --git a/tests/ui/delegation/self-hygiene.stderr b/tests/ui/delegation/self-hygiene.stderr index fa64b7d1d7f7..1ccb196dbbad 100644 --- a/tests/ui/delegation/self-hygiene.stderr +++ b/tests/ui/delegation/self-hygiene.stderr @@ -1,5 +1,5 @@ error[E0424]: expected value, found module `self` - --> $DIR/self-hygiene.rs:4:34 + --> $DIR/self-hygiene.rs:3:34 | LL | macro_rules! emit_self { () => { self } } | ^^^^ `self` value is a keyword only available in methods with a `self` parameter @@ -13,7 +13,7 @@ LL | | } = note: this error originates in the macro `emit_self` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0424]: expected value, found module `self` - --> $DIR/self-hygiene.rs:4:34 + --> $DIR/self-hygiene.rs:3:34 | LL | macro_rules! emit_self { () => { self } } | ^^^^ `self` value is a keyword only available in methods with a `self` parameter diff --git a/tests/ui/delegation/target-expr-pass.rs b/tests/ui/delegation/target-expr-pass.rs index 2d5cf7aace2b..887a1ee5953d 100644 --- a/tests/ui/delegation/target-expr-pass.rs +++ b/tests/ui/delegation/target-expr-pass.rs @@ -1,7 +1,6 @@ //@ run-pass #![feature(fn_delegation)] -#![allow(incomplete_features)] mod to_reuse { pub fn foo(x: i32) -> i32 { x } diff --git a/tests/ui/delegation/target-expr-pass.stderr b/tests/ui/delegation/target-expr-pass.stderr index 4924d95208a1..d7ca17c9ef86 100644 --- a/tests/ui/delegation/target-expr-pass.stderr +++ b/tests/ui/delegation/target-expr-pass.stderr @@ -1,5 +1,5 @@ warning: trait `Trait` is never used - --> $DIR/target-expr-pass.rs:17:7 + --> $DIR/target-expr-pass.rs:16:7 | LL | trait Trait { | ^^^^^ @@ -7,13 +7,13 @@ LL | trait Trait { = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: struct `F` is never constructed - --> $DIR/target-expr-pass.rs:21:8 + --> $DIR/target-expr-pass.rs:20:8 | LL | struct F; | ^ warning: struct `S` is never constructed - --> $DIR/target-expr-pass.rs:24:8 + --> $DIR/target-expr-pass.rs:23:8 | LL | struct S(F); | ^ diff --git a/tests/ui/delegation/target-expr.rs b/tests/ui/delegation/target-expr.rs index f766ca7356a4..253ce1fffff7 100644 --- a/tests/ui/delegation/target-expr.rs +++ b/tests/ui/delegation/target-expr.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] trait Trait { fn static_method(x: i32) -> i32 { x } diff --git a/tests/ui/delegation/target-expr.stderr b/tests/ui/delegation/target-expr.stderr index e26d12ee447d..7153fa417837 100644 --- a/tests/ui/delegation/target-expr.stderr +++ b/tests/ui/delegation/target-expr.stderr @@ -1,5 +1,5 @@ error[E0401]: can't use generic parameters from outer item - --> $DIR/target-expr.rs:18:17 + --> $DIR/target-expr.rs:17:17 | LL | fn bar(_: T) { | - type parameter from outer item @@ -12,7 +12,7 @@ LL | let _ = T::Default(); = note: nested items are independent from their parent item for everything except for privacy and name resolution error[E0434]: can't capture dynamic environment in a fn item - --> $DIR/target-expr.rs:26:17 + --> $DIR/target-expr.rs:25:17 | LL | let x = y; | ^ @@ -20,7 +20,7 @@ LL | let x = y; = help: use the `|| { ... }` closure form instead error[E0424]: expected value, found module `self` - --> $DIR/target-expr.rs:33:5 + --> $DIR/target-expr.rs:32:5 | LL | fn main() { | ---- this function can't have a `self` parameter @@ -29,19 +29,19 @@ LL | self.0; | ^^^^ `self` value is a keyword only available in methods with a `self` parameter error[E0425]: cannot find value `x` in this scope - --> $DIR/target-expr.rs:35:13 + --> $DIR/target-expr.rs:34:13 | LL | let z = x; | ^ | help: the binding `x` is available in a different scope in the same function - --> $DIR/target-expr.rs:26:13 + --> $DIR/target-expr.rs:25:13 | LL | let x = y; | ^ error[E0308]: mismatched types - --> $DIR/target-expr.rs:16:32 + --> $DIR/target-expr.rs:15:32 | LL | reuse Trait::static_method { | ________________________________^ diff --git a/tests/ui/delegation/unlowered-path-ice-154820.rs b/tests/ui/delegation/unlowered-path-ice-154820.rs index a527b17cf6c4..b9246313a3f0 100644 --- a/tests/ui/delegation/unlowered-path-ice-154820.rs +++ b/tests/ui/delegation/unlowered-path-ice-154820.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] reuse foo:: < { //~ ERROR: failed to resolve delegation callee //~^ ERROR: function takes 0 generic arguments but 1 generic argument was supplied diff --git a/tests/ui/delegation/unlowered-path-ice-154820.stderr b/tests/ui/delegation/unlowered-path-ice-154820.stderr index fbcb3ca9c71c..b690237e3ac9 100644 --- a/tests/ui/delegation/unlowered-path-ice-154820.stderr +++ b/tests/ui/delegation/unlowered-path-ice-154820.stderr @@ -1,5 +1,5 @@ error[E0428]: the name `foo` is defined multiple times - --> $DIR/unlowered-path-ice-154820.rs:7:5 + --> $DIR/unlowered-path-ice-154820.rs:6:5 | LL | fn foo() {} | -------- previous definition of the value `foo` here @@ -9,13 +9,13 @@ LL | reuse foo; = note: `foo` must be defined only once in the value namespace of this block error: failed to resolve delegation callee - --> $DIR/unlowered-path-ice-154820.rs:4:7 + --> $DIR/unlowered-path-ice-154820.rs:3:7 | LL | reuse foo:: < { | ^^^ error[E0107]: function takes 0 generic arguments but 1 generic argument was supplied - --> $DIR/unlowered-path-ice-154820.rs:4:7 + --> $DIR/unlowered-path-ice-154820.rs:3:7 | LL | reuse foo:: < { | _______^^^- @@ -29,7 +29,7 @@ LL | | >; | |___- help: remove the unnecessary generics | note: function defined here, with 0 generic parameters - --> $DIR/unlowered-path-ice-154820.rs:4:7 + --> $DIR/unlowered-path-ice-154820.rs:3:7 | LL | reuse foo:: < { | ^^^ diff --git a/tests/ui/delegation/unreachable-label-ice-148889.rs b/tests/ui/delegation/unreachable-label-ice-148889.rs index e5f9fa1cf493..64cbcc3931f1 100644 --- a/tests/ui/delegation/unreachable-label-ice-148889.rs +++ b/tests/ui/delegation/unreachable-label-ice-148889.rs @@ -1,4 +1,3 @@ -#![allow(incomplete_features)] #![feature(fn_delegation)] trait Trait { diff --git a/tests/ui/delegation/unreachable-label-ice-148889.stderr b/tests/ui/delegation/unreachable-label-ice-148889.stderr index 214196260918..a6e1c61bb8f5 100644 --- a/tests/ui/delegation/unreachable-label-ice-148889.stderr +++ b/tests/ui/delegation/unreachable-label-ice-148889.stderr @@ -1,5 +1,5 @@ error[E0767]: use of unreachable label `'foo` - --> $DIR/unreachable-label-ice-148889.rs:15:59 + --> $DIR/unreachable-label-ice-148889.rs:14:59 | LL | 'foo: loop { | ---- unreachable label defined here diff --git a/tests/ui/delegation/unresolved-delegation-ice-151356.rs b/tests/ui/delegation/unresolved-delegation-ice-151356.rs index b61e08551183..f51f48c6ef97 100644 --- a/tests/ui/delegation/unresolved-delegation-ice-151356.rs +++ b/tests/ui/delegation/unresolved-delegation-ice-151356.rs @@ -1,4 +1,3 @@ -#![allow(incomplete_features)] #![feature(fn_delegation)] extern "C" { diff --git a/tests/ui/delegation/unresolved-delegation-ice-151356.stderr b/tests/ui/delegation/unresolved-delegation-ice-151356.stderr index 407d22e477c4..297fe35c9eeb 100644 --- a/tests/ui/delegation/unresolved-delegation-ice-151356.stderr +++ b/tests/ui/delegation/unresolved-delegation-ice-151356.stderr @@ -1,5 +1,5 @@ error: incorrect function inside `extern` block - --> $DIR/unresolved-delegation-ice-151356.rs:5:8 + --> $DIR/unresolved-delegation-ice-151356.rs:4:8 | LL | extern "C" { | ---------- `extern` blocks define existing foreign functions and functions inside of them cannot have a body diff --git a/tests/ui/delegation/unsupported.current.stderr b/tests/ui/delegation/unsupported.current.stderr index 657f99027173..21ea451a2ea5 100644 --- a/tests/ui/delegation/unsupported.current.stderr +++ b/tests/ui/delegation/unsupported.current.stderr @@ -1,36 +1,36 @@ -error[E0391]: cycle detected when computing type of `opaque::::opaque_ret::{anon_assoc#0}` - --> $DIR/unsupported.rs:30:25 +error[E0391]: cycle detected when computing type of `opaque::::opaque_ret::{anon_assoc#0}` + --> $DIR/unsupported.rs:29:25 | LL | reuse to_reuse::opaque_ret; | ^^^^^^^^^^ | note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process... - --> $DIR/unsupported.rs:30:25 + --> $DIR/unsupported.rs:29:25 | LL | reuse to_reuse::opaque_ret; | ^^^^^^^^^^ - = note: ...which again requires computing type of `opaque::::opaque_ret::{anon_assoc#0}`, completing the cycle -note: cycle used when checking assoc item `opaque::::opaque_ret` is compatible with trait definition - --> $DIR/unsupported.rs:30:25 + = note: ...which again requires computing type of `opaque::::opaque_ret::{anon_assoc#0}`, completing the cycle +note: cycle used when checking assoc item `opaque::::opaque_ret` is compatible with trait definition + --> $DIR/unsupported.rs:29:25 | LL | reuse to_reuse::opaque_ret; | ^^^^^^^^^^ = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information -error[E0391]: cycle detected when computing type of `opaque::::opaque_ret::{anon_assoc#0}` - --> $DIR/unsupported.rs:33:24 +error[E0391]: cycle detected when computing type of `opaque::::opaque_ret::{anon_assoc#0}` + --> $DIR/unsupported.rs:32:24 | LL | reuse ToReuse::opaque_ret; | ^^^^^^^^^^ | note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process... - --> $DIR/unsupported.rs:33:24 + --> $DIR/unsupported.rs:32:24 | LL | reuse ToReuse::opaque_ret; | ^^^^^^^^^^ - = note: ...which again requires computing type of `opaque::::opaque_ret::{anon_assoc#0}`, completing the cycle -note: cycle used when checking assoc item `opaque::::opaque_ret` is compatible with trait definition - --> $DIR/unsupported.rs:33:24 + = note: ...which again requires computing type of `opaque::::opaque_ret::{anon_assoc#0}`, completing the cycle +note: cycle used when checking assoc item `opaque::::opaque_ret` is compatible with trait definition + --> $DIR/unsupported.rs:32:24 | LL | reuse ToReuse::opaque_ret; | ^^^^^^^^^^ diff --git a/tests/ui/delegation/unsupported.next.stderr b/tests/ui/delegation/unsupported.next.stderr index 90b17752cd8b..82569be1a7ba 100644 --- a/tests/ui/delegation/unsupported.next.stderr +++ b/tests/ui/delegation/unsupported.next.stderr @@ -1,30 +1,30 @@ -error[E0391]: cycle detected when computing type of `opaque::::opaque_ret::{anon_assoc#0}` - --> $DIR/unsupported.rs:30:25 +error[E0391]: cycle detected when computing type of `opaque::::opaque_ret::{anon_assoc#0}` + --> $DIR/unsupported.rs:29:25 | LL | reuse to_reuse::opaque_ret; | ^^^^^^^^^^ | note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process... - --> $DIR/unsupported.rs:30:25 + --> $DIR/unsupported.rs:29:25 | LL | reuse to_reuse::opaque_ret; | ^^^^^^^^^^ - = note: ...which again requires computing type of `opaque::::opaque_ret::{anon_assoc#0}`, completing the cycle + = note: ...which again requires computing type of `opaque::::opaque_ret::{anon_assoc#0}`, completing the cycle = note: cycle used when computing implied outlives bounds for `::opaque_ret::{anon_assoc#0}` (hack disabled = false) = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information -error[E0391]: cycle detected when computing type of `opaque::::opaque_ret::{anon_assoc#0}` - --> $DIR/unsupported.rs:33:24 +error[E0391]: cycle detected when computing type of `opaque::::opaque_ret::{anon_assoc#0}` + --> $DIR/unsupported.rs:32:24 | LL | reuse ToReuse::opaque_ret; | ^^^^^^^^^^ | note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process... - --> $DIR/unsupported.rs:33:24 + --> $DIR/unsupported.rs:32:24 | LL | reuse ToReuse::opaque_ret; | ^^^^^^^^^^ - = note: ...which again requires computing type of `opaque::::opaque_ret::{anon_assoc#0}`, completing the cycle + = note: ...which again requires computing type of `opaque::::opaque_ret::{anon_assoc#0}`, completing the cycle = note: cycle used when computing implied outlives bounds for `::opaque_ret::{anon_assoc#0}` (hack disabled = false) = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information diff --git a/tests/ui/delegation/unsupported.rs b/tests/ui/delegation/unsupported.rs index af3b87ee7c8c..678c93dcd53c 100644 --- a/tests/ui/delegation/unsupported.rs +++ b/tests/ui/delegation/unsupported.rs @@ -9,7 +9,6 @@ #![feature(const_trait_impl)] #![feature(c_variadic)] #![feature(fn_delegation)] -#![allow(incomplete_features)] mod opaque { trait Trait {} diff --git a/tests/ui/delegation/unused-import-ice-144594.rs b/tests/ui/delegation/unused-import-ice-144594.rs index 1d064a4c978f..fca67c6ee0b8 100644 --- a/tests/ui/delegation/unused-import-ice-144594.rs +++ b/tests/ui/delegation/unused-import-ice-144594.rs @@ -1,4 +1,3 @@ -#![allow(incomplete_features)] #![feature(fn_delegation)] reuse a as b { diff --git a/tests/ui/delegation/unused-import-ice-144594.stderr b/tests/ui/delegation/unused-import-ice-144594.stderr index 1939380235ee..f09313aac21f 100644 --- a/tests/ui/delegation/unused-import-ice-144594.stderr +++ b/tests/ui/delegation/unused-import-ice-144594.stderr @@ -1,11 +1,11 @@ error[E0425]: cannot find function `a` in this scope - --> $DIR/unused-import-ice-144594.rs:4:7 + --> $DIR/unused-import-ice-144594.rs:3:7 | LL | reuse a as b { | ^ not found in this scope error[E0425]: cannot find value `x` in this scope - --> $DIR/unused-import-ice-144594.rs:8:9 + --> $DIR/unused-import-ice-144594.rs:7:9 | LL | x.add | ^ not found in this scope diff --git a/tests/ui/delegation/zero-args-delegations-ice-154332.rs b/tests/ui/delegation/zero-args-delegations-ice-154332.rs index c684803014ad..a9d7876db5e8 100644 --- a/tests/ui/delegation/zero-args-delegations-ice-154332.rs +++ b/tests/ui/delegation/zero-args-delegations-ice-154332.rs @@ -1,5 +1,4 @@ #![feature(fn_delegation)] -#![allow(incomplete_features)] mod test_ice { fn a() {} diff --git a/tests/ui/delegation/zero-args-delegations-ice-154332.stderr b/tests/ui/delegation/zero-args-delegations-ice-154332.stderr index dcac56e0b2ba..517a01dac6f0 100644 --- a/tests/ui/delegation/zero-args-delegations-ice-154332.stderr +++ b/tests/ui/delegation/zero-args-delegations-ice-154332.stderr @@ -1,5 +1,5 @@ error[E0061]: this function takes 0 arguments but 1 argument was supplied - --> $DIR/zero-args-delegations-ice-154332.rs:7:11 + --> $DIR/zero-args-delegations-ice-154332.rs:6:11 | LL | reuse a as b { | ___________^______- @@ -11,7 +11,7 @@ LL | | } | |_____- unexpected argument of type `()` | note: function defined here - --> $DIR/zero-args-delegations-ice-154332.rs:5:8 + --> $DIR/zero-args-delegations-ice-154332.rs:4:8 | LL | fn a() {} | ^ @@ -22,13 +22,13 @@ LL + reuse { | error[E0061]: this function takes 0 arguments but 1 argument was supplied - --> $DIR/zero-args-delegations-ice-154332.rs:26:21 + --> $DIR/zero-args-delegations-ice-154332.rs:25:21 | LL | reuse to_reuse::zero_args { self } | ^^^^^^^^^ ---- unexpected argument | note: function defined here - --> $DIR/zero-args-delegations-ice-154332.rs:21:16 + --> $DIR/zero-args-delegations-ice-154332.rs:20:16 | LL | pub fn zero_args() -> i32 { | ^^^^^^^^^