Skip to content

Commit d6a0a89

Browse files
committed
Bless straight forward UI test changes
1 parent 1b7ecb3 commit d6a0a89

11 files changed

+52
-59
lines changed
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
error[E0658]: use of unstable library feature `format_args_nl`: `format_args_nl` is only for internal language use and is subject to change
2-
--> $DIR/feature-gate-format_args_nl.rs:2:5
2+
--> $DIR/feature-gate-format_args_nl.rs:4:5
33
|
44
LL | format_args_nl!("");
55
| ^^^^^^^^^^^^^^
66
|
77
= help: add `#![feature(format_args_nl)]` to the crate attributes to enable
88
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
99

10-
error: aborting due to 1 previous error
10+
error[E0658]: use of unstable library feature `format_args_nl`: `format_args_nl` is only for internal language use and is subject to change
11+
--> $DIR/feature-gate-format_args_nl.rs:1:5
12+
|
13+
LL | use std::format_args_nl;
14+
| ^^^^^^^^^^^^^^^^^^^
15+
|
16+
= help: add `#![feature(format_args_nl)]` to the crate attributes to enable
17+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
18+
19+
error: aborting due to 2 previous errors
1120

1221
For more information about this error, try `rustc --explain E0658`.

tests/ui/impl-trait/where-allowed.stderr

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -387,34 +387,6 @@ LL | impl <T = impl Debug> T {}
387387
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
388388
= note: for more information, see issue #36887 <https://github.com/rust-lang/rust/issues/36887>
389389

390-
error[E0283]: type annotations needed
391-
--> $DIR/where-allowed.rs:46:57
392-
|
393-
LL | fn in_dyn_Fn_return_in_return() -> &'static dyn Fn() -> impl Debug { panic!() }
394-
| ^^^^^^^^^^ cannot infer type
395-
|
396-
= note: cannot satisfy `_: Debug`
397-
398-
error[E0283]: type annotations needed
399-
--> $DIR/where-allowed.rs:64:46
400-
|
401-
LL | fn in_impl_Fn_return_in_return() -> &'static impl Fn() -> impl Debug { panic!() }
402-
| ^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
403-
|
404-
= note: multiple `impl`s satisfying `_: Fn()` found in the following crates: `alloc`, `core`:
405-
- impl<A, F> Fn<A> for &F
406-
where A: Tuple, F: Fn<A>, F: ?Sized;
407-
- impl<Args, F, A> Fn<Args> for Box<F, A>
408-
where Args: Tuple, F: Fn<Args>, A: Allocator, F: ?Sized;
409-
410-
error[E0118]: no nominal type found for inherent implementation
411-
--> $DIR/where-allowed.rs:239:1
412-
|
413-
LL | impl <T = impl Debug> T {}
414-
| ^^^^^^^^^^^^^^^^^^^^^^^ impl requires a nominal type
415-
|
416-
= note: either implement a trait on it or create a newtype to wrap it instead
417-
418390
error: unconstrained opaque type
419391
--> $DIR/where-allowed.rs:121:16
420392
|
@@ -431,9 +403,17 @@ LL | type InTypeAlias<R> = impl Debug;
431403
|
432404
= note: `InTypeAlias` must be used in combination with a concrete type within the same crate
433405

434-
error: aborting due to 50 previous errors
406+
error[E0118]: no nominal type found for inherent implementation
407+
--> $DIR/where-allowed.rs:239:1
408+
|
409+
LL | impl <T = impl Debug> T {}
410+
| ^^^^^^^^^^^^^^^^^^^^^^^ impl requires a nominal type
411+
|
412+
= note: either implement a trait on it or create a newtype to wrap it instead
413+
414+
error: aborting due to 48 previous errors
435415

436-
Some errors have detailed explanations: E0053, E0118, E0283, E0562, E0658, E0666.
416+
Some errors have detailed explanations: E0053, E0118, E0562, E0658, E0666.
437417
For more information about an error, try `rustc --explain E0053`.
438418
Future incompatibility report: Future breakage diagnostic:
439419
error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions

tests/ui/imports/glob-shadowing.stderr

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ LL | let x = env!("PATH");
55
| ^^^ ambiguous name
66
|
77
= note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution
8-
= note: `env` could refer to a macro from prelude
9-
note: `env` could also refer to the macro imported here
8+
note: `env` could refer to the macro imported here
109
--> $DIR/glob-shadowing.rs:9:9
1110
|
1211
LL | use crate::m::*;
1312
| ^^^^^^^^^^^
1413
= help: consider adding an explicit import of `env` to disambiguate
1514
= help: or use `self::env` to refer to this macro unambiguously
15+
note: `env` could also refer to a macro from prelude
16+
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
1617

1718
error[E0659]: `env` is ambiguous
1819
--> $DIR/glob-shadowing.rs:19:21
@@ -21,13 +22,14 @@ LL | let x = env!("PATH");
2122
| ^^^ ambiguous name
2223
|
2324
= note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution
24-
= note: `env` could refer to a macro from prelude
25-
note: `env` could also refer to the macro imported here
25+
note: `env` could refer to the macro imported here
2626
--> $DIR/glob-shadowing.rs:17:13
2727
|
2828
LL | use crate::m::*;
2929
| ^^^^^^^^^^^
3030
= help: consider adding an explicit import of `env` to disambiguate
31+
note: `env` could also refer to a macro from prelude
32+
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
3133

3234
error[E0659]: `fenv` is ambiguous
3335
--> $DIR/glob-shadowing.rs:29:21

tests/ui/imports/local-modularized-tricky-fail-1.stderr

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ LL | panic!();
3030
| ^^^^^ ambiguous name
3131
|
3232
= note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
33-
= note: `panic` could refer to a macro from prelude
34-
note: `panic` could also refer to the macro defined here
33+
note: `panic` could refer to the macro defined here
3534
--> $DIR/local-modularized-tricky-fail-1.rs:12:5
3635
|
3736
LL | / macro_rules! panic {
@@ -42,6 +41,8 @@ LL | | }
4241
LL | define_panic!();
4342
| --------------- in this macro invocation
4443
= help: use `crate::panic` to refer to this macro unambiguously
44+
note: `panic` could also refer to a macro from prelude
45+
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
4546
= note: this error originates in the macro `define_panic` (in Nightly builds, run with -Z macro-backtrace for more info)
4647

4748
error[E0659]: `include` is ambiguous
@@ -51,8 +52,7 @@ LL | include!();
5152
| ^^^^^^^ ambiguous name
5253
|
5354
= note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
54-
= note: `include` could refer to a macro from prelude
55-
note: `include` could also refer to the macro defined here
55+
note: `include` could refer to the macro defined here
5656
--> $DIR/local-modularized-tricky-fail-1.rs:18:5
5757
|
5858
LL | / macro_rules! include {
@@ -63,6 +63,8 @@ LL | | }
6363
LL | define_include!();
6464
| ----------------- in this macro invocation
6565
= help: use `crate::include` to refer to this macro unambiguously
66+
note: `include` could also refer to a macro from prelude
67+
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
6668
= note: this error originates in the macro `define_include` (in Nightly builds, run with -Z macro-backtrace for more info)
6769

6870
error: aborting due to 3 previous errors

tests/ui/imports/shadow_builtin_macros.stderr

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ LL | fn f() { panic!(); }
55
| ^^^^^ ambiguous name
66
|
77
= note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution
8-
= note: `panic` could refer to a macro from prelude
9-
note: `panic` could also refer to the macro imported here
8+
note: `panic` could refer to the macro imported here
109
--> $DIR/shadow_builtin_macros.rs:14:9
1110
|
1211
LL | use crate::foo::*;
1312
| ^^^^^^^^^^^^^
1413
= help: consider adding an explicit import of `panic` to disambiguate
1514
= help: or use `self::panic` to refer to this macro unambiguously
15+
note: `panic` could also refer to a macro from prelude
16+
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
1617

1718
error[E0659]: `panic` is ambiguous
1819
--> $DIR/shadow_builtin_macros.rs:33:5
@@ -21,15 +22,16 @@ LL | panic!();
2122
| ^^^^^ ambiguous name
2223
|
2324
= note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
24-
= note: `panic` could refer to a macro from prelude
25-
note: `panic` could also refer to the macro defined here
25+
note: `panic` could refer to the macro defined here
2626
--> $DIR/shadow_builtin_macros.rs:30:9
2727
|
2828
LL | macro_rules! panic { () => {} }
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030
LL | } }
3131
LL | m!();
3232
| ---- in this macro invocation
33+
note: `panic` could also refer to a macro from prelude
34+
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
3335
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
3436

3537
error[E0659]: `n` is ambiguous
@@ -59,13 +61,14 @@ LL | fn f() { panic!(); }
5961
| ^^^^^ ambiguous name
6062
|
6163
= note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
62-
= note: `panic` could refer to a macro from prelude
63-
note: `panic` could also refer to the macro imported here
64+
note: `panic` could refer to the macro imported here
6465
--> $DIR/shadow_builtin_macros.rs:19:26
6566
|
6667
LL | ::two_macros::m!(use crate::foo::panic;);
6768
| ^^^^^^^^^^^^^^^^^
6869
= help: use `self::panic` to refer to this macro unambiguously
70+
note: `panic` could also refer to a macro from prelude
71+
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
6972

7073
error: aborting due to 4 previous errors
7174

tests/ui/lint/dead-code/with-core-crate.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: function `foo` is never used
2-
--> $DIR/with-core-crate.rs:7:4
2+
--> $DIR/with-core-crate.rs:6:4
33
|
44
LL | fn foo() {
55
| ^^^

tests/ui/stats/input-stats.stderr

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ast-stats - Ptr 64 (NN.N%) 1
1515
ast-stats - Ref 64 (NN.N%) 1
1616
ast-stats - ImplicitSelf 128 (NN.N%) 2
1717
ast-stats - Path 640 (NN.N%) 10
18-
ast-stats PathSegment 864 (NN.N%) 36 24
18+
ast-stats PathSegment 840 (NN.N%) 35 24
1919
ast-stats Expr 648 (NN.N%) 9 72
2020
ast-stats - InlineAsm 72 (NN.N%) 1
2121
ast-stats - Match 72 (NN.N%) 1
@@ -41,12 +41,12 @@ ast-stats - Let 32 (NN.N%) 1
4141
ast-stats - Semi 32 (NN.N%) 1
4242
ast-stats - Expr 96 (NN.N%) 3
4343
ast-stats Param 160 (NN.N%) 4 40
44-
ast-stats Attribute 128 (NN.N%) 4 32
45-
ast-stats - DocComment 32 (NN.N%) 1
46-
ast-stats - Normal 96 (NN.N%) 3
4744
ast-stats InlineAsm 120 (NN.N%) 1 120
4845
ast-stats FnDecl 120 (NN.N%) 5 24
4946
ast-stats Local 96 (NN.N%) 1 96
47+
ast-stats Attribute 96 (NN.N%) 3 32
48+
ast-stats - DocComment 32 (NN.N%) 1
49+
ast-stats - Normal 64 (NN.N%) 2
5050
ast-stats Arm 96 (NN.N%) 2 48
5151
ast-stats ForeignItem 80 (NN.N%) 1 80
5252
ast-stats - Fn 80 (NN.N%) 1
@@ -57,7 +57,7 @@ ast-stats GenericArgs 40 (NN.N%) 1 40
5757
ast-stats - AngleBracketed 40 (NN.N%) 1
5858
ast-stats Crate 40 (NN.N%) 1 40
5959
ast-stats ----------------------------------------------------------------
60-
ast-stats Total 7_416 127
60+
ast-stats Total 7_360 125
6161
ast-stats ================================================================
6262
hir-stats ================================================================
6363
hir-stats HIR STATS: input_stats
@@ -93,11 +93,11 @@ hir-stats - Binding 216 (NN.N%) 3
9393
hir-stats Block 288 (NN.N%) 6 48
9494
hir-stats GenericBound 256 (NN.N%) 4 64
9595
hir-stats - Trait 256 (NN.N%) 4
96-
hir-stats Attribute 160 (NN.N%) 4 40
9796
hir-stats Variant 144 (NN.N%) 2 72
9897
hir-stats GenericArgs 144 (NN.N%) 3 48
9998
hir-stats FieldDef 128 (NN.N%) 2 64
10099
hir-stats FnDecl 120 (NN.N%) 3 40
100+
hir-stats Attribute 120 (NN.N%) 3 40
101101
hir-stats Stmt 96 (NN.N%) 3 32
102102
hir-stats - Expr 32 (NN.N%) 1
103103
hir-stats - Let 32 (NN.N%) 1
@@ -119,5 +119,5 @@ hir-stats Mod 32 (NN.N%) 1 32
119119
hir-stats Lifetime 28 (NN.N%) 1 28
120120
hir-stats ForeignItemRef 24 (NN.N%) 1 24
121121
hir-stats ----------------------------------------------------------------
122-
hir-stats Total 8_676 172
122+
hir-stats Total 8_636 171
123123
hir-stats ================================================================

tests/ui/unpretty/exhaustive-asm.expanded.stdout

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![feature(prelude_import)]
22
#[prelude_import]
33
use std::prelude::rust_2024::*;
4-
#[macro_use]
54
extern crate std;
65
//@ revisions: expanded hir
76
//@[expanded]compile-flags: -Zunpretty=expanded

tests/ui/unpretty/exhaustive-asm.hir.stdout

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#[prelude_import]
22
use std::prelude::rust_2024::*;
3-
#[macro_use]
43
extern crate std;
54
//@ revisions: expanded hir
65
//@[expanded]compile-flags: -Zunpretty=expanded

tests/ui/unpretty/exhaustive.hir.stdout

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#![allow(incomplete_features)]
3232
#[prelude_import]
3333
use std::prelude::rust_2024::*;
34-
#[macro_use]
3534
extern crate std;
3635

3736
#[prelude_import]

tests/ui/unpretty/interpolation-expanded.stdout

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#![feature(if_let_guard)]
1313
#[prelude_import]
14-
use ::std::prelude::rust_2024::*;
14+
use std::prelude::rust_2024::*;
1515
extern crate std;
1616

1717
macro_rules! expr { ($expr:expr) => { $expr }; }
@@ -60,7 +60,7 @@ fn local() {
6060
macro_rules! let_expr_else_return {
6161
($pat:pat, $expr:expr) => { let $pat = $expr else { return; }; };
6262
}
63-
let
63+
let
6464

6565
no_paren = void() else { return; };
6666
}

0 commit comments

Comments
 (0)