Skip to content

Commit d1f11b2

Browse files
committed
Change the test comment per PR review feedback
1 parent 253c03a commit d1f11b2

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

tests/ui/consts/ice-extra-args-fn-abi-issue-127423.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
// #127423: ICE: assertion failed: sig.c_variadic || extra_args.is_empty()
2-
// Calling a const fn with the wrong number of arguments where the function has
3-
// an unresolved type should not trigger an ICE.
4-
// issue: rust-lang/rust#127423
1+
//! Regression test for https://github.com/rust-lang/rust/issues/127423
52
63
#![allow(dead_code)]
74

tests/ui/consts/ice-extra-args-fn-abi-issue-127423.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: lifetimes cannot use keyword names
2-
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8:18
2+
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:5:18
33
|
44
LL | const fn add(a: &'self isize) -> usize {
55
| ^^^^^
66

77
error[E0261]: use of undeclared lifetime name `'self`
8-
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8:18
8+
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:5:18
99
|
1010
LL | const fn add(a: &'self isize) -> usize {
1111
| ^^^^^ undeclared lifetime
@@ -16,13 +16,13 @@ LL | const fn add<'self>(a: &'self isize) -> usize {
1616
| +++++++
1717

1818
error[E0425]: cannot find value `Qux` in this scope
19-
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:11:5
19+
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8:5
2020
|
2121
LL | Qux + y
2222
| ^^^ not found in this scope
2323

2424
error[E0425]: cannot find value `y` in this scope
25-
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:11:11
25+
--> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8:11
2626
|
2727
LL | Qux + y
2828
| ^

0 commit comments

Comments
 (0)