From d1f11b23ca69387b8c52b9d0066937d547fe21ea Mon Sep 17 00:00:00 2001 From: Jacob Adam Date: Wed, 1 Apr 2026 14:38:56 +0100 Subject: [PATCH] Change the test comment per PR review feedback --- tests/ui/consts/ice-extra-args-fn-abi-issue-127423.rs | 5 +---- tests/ui/consts/ice-extra-args-fn-abi-issue-127423.stderr | 8 ++++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/ui/consts/ice-extra-args-fn-abi-issue-127423.rs b/tests/ui/consts/ice-extra-args-fn-abi-issue-127423.rs index 4b87ae608069..67aed9122e89 100644 --- a/tests/ui/consts/ice-extra-args-fn-abi-issue-127423.rs +++ b/tests/ui/consts/ice-extra-args-fn-abi-issue-127423.rs @@ -1,7 +1,4 @@ -// #127423: ICE: assertion failed: sig.c_variadic || extra_args.is_empty() -// Calling a const fn with the wrong number of arguments where the function has -// an unresolved type should not trigger an ICE. -// issue: rust-lang/rust#127423 +//! Regression test for https://github.com/rust-lang/rust/issues/127423 #![allow(dead_code)] diff --git a/tests/ui/consts/ice-extra-args-fn-abi-issue-127423.stderr b/tests/ui/consts/ice-extra-args-fn-abi-issue-127423.stderr index a5b2f5a57815..f01e9bd51357 100644 --- a/tests/ui/consts/ice-extra-args-fn-abi-issue-127423.stderr +++ b/tests/ui/consts/ice-extra-args-fn-abi-issue-127423.stderr @@ -1,11 +1,11 @@ error: lifetimes cannot use keyword names - --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8:18 + --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:5:18 | LL | const fn add(a: &'self isize) -> usize { | ^^^^^ error[E0261]: use of undeclared lifetime name `'self` - --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8:18 + --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:5:18 | LL | const fn add(a: &'self isize) -> usize { | ^^^^^ undeclared lifetime @@ -16,13 +16,13 @@ LL | const fn add<'self>(a: &'self isize) -> usize { | +++++++ error[E0425]: cannot find value `Qux` in this scope - --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:11:5 + --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8:5 | LL | Qux + y | ^^^ not found in this scope error[E0425]: cannot find value `y` in this scope - --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:11:11 + --> $DIR/ice-extra-args-fn-abi-issue-127423.rs:8:11 | LL | Qux + y | ^