Skip to content

Commit 37ecc8e

Browse files
committed
use a new tracking issue for never type changes
1 parent 62c3736 commit 37ecc8e

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,11 +548,10 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
548548
});
549549
let unit_obligation = obligation.with(tcx, predicate);
550550
if self.predicate_may_hold(&unit_obligation) {
551-
// FIXME: make a new issue for this
552551
err.note(
553552
"this error might have been caused by changes to \
554-
Rust's type-inference algorithm (see issue #48950 \
555-
<https://github.com/rust-lang/rust/issues/48950> \
553+
Rust's type-inference algorithm (see issue #148922 \
554+
<https://github.com/rust-lang/rust/issues/148922> \
556555
for more information)",
557556
);
558557
err.help("you might have intended to use the type `()` here instead");

tests/ui/editions/never-type-fallback-breaking.e2024.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0277]: the trait bound `!: Default` is not satisfied
44
LL | true => Default::default(),
55
| ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `!`
66
|
7-
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 <https://github.com/rust-lang/rust/issues/48950> for more information)
7+
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 <https://github.com/rust-lang/rust/issues/148922> for more information)
88
= help: you might have intended to use the type `()` here instead
99

1010
error[E0277]: the trait bound `!: Default` is not satisfied
@@ -13,7 +13,7 @@ error[E0277]: the trait bound `!: Default` is not satisfied
1313
LL | deserialize()?;
1414
| ^^^^^^^^^^^^^ the trait `Default` is not implemented for `!`
1515
|
16-
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 <https://github.com/rust-lang/rust/issues/48950> for more information)
16+
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 <https://github.com/rust-lang/rust/issues/148922> for more information)
1717
= help: you might have intended to use the type `()` here instead
1818
note: required by a bound in `deserialize`
1919
--> $DIR/never-type-fallback-breaking.rs:31:23
@@ -50,7 +50,7 @@ error[E0277]: the trait bound `!: Default` is not satisfied
5050
LL | takes_apit(|| Default::default())?;
5151
| ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `!`
5252
|
53-
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 <https://github.com/rust-lang/rust/issues/48950> for more information)
53+
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 <https://github.com/rust-lang/rust/issues/148922> for more information)
5454
= help: you might have intended to use the type `()` here instead
5555

5656
error[E0277]: the trait bound `!: Default` is not satisfied
@@ -61,7 +61,7 @@ LL | takes_apit2(mk()?);
6161
| |
6262
| required by a bound introduced by this call
6363
|
64-
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 <https://github.com/rust-lang/rust/issues/48950> for more information)
64+
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 <https://github.com/rust-lang/rust/issues/148922> for more information)
6565
= help: you might have intended to use the type `()` here instead
6666
note: required by a bound in `takes_apit2`
6767
--> $DIR/never-type-fallback-breaking.rs:69:25

tests/ui/never_type/defaulted-never-note.fallback.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ help: the trait `ImplementedForUnitButNotNever` is implemented for `()`
1111
|
1212
LL | impl ImplementedForUnitButNotNever for () {}
1313
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14-
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 <https://github.com/rust-lang/rust/issues/48950> for more information)
14+
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 <https://github.com/rust-lang/rust/issues/148922> for more information)
1515
= help: you might have intended to use the type `()` here instead
1616
note: required by a bound in `foo`
1717
--> $DIR/defaulted-never-note.rs:22:11

tests/ui/never_type/diverging-fallback-no-leak.fallback.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LL | impl Test for i32 {}
1313
| ^^^^^^^^^^^^^^^^^ `i32`
1414
LL | impl Test for () {}
1515
| ^^^^^^^^^^^^^^^^ `()`
16-
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 <https://github.com/rust-lang/rust/issues/48950> for more information)
16+
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 <https://github.com/rust-lang/rust/issues/148922> for more information)
1717
= help: you might have intended to use the type `()` here instead
1818
note: required by a bound in `unconstrained_arg`
1919
--> $DIR/diverging-fallback-no-leak.rs:13:25

tests/ui/never_type/diverging-fallback-unconstrained-return.fallback.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | impl UnitReturn for i32 {}
1111
| ^^^^^^^^^^^^^^^^^^^^^^^ `i32`
1212
LL | impl UnitReturn for () {}
1313
| ^^^^^^^^^^^^^^^^^^^^^^ `()`
14-
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 <https://github.com/rust-lang/rust/issues/48950> for more information)
14+
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 <https://github.com/rust-lang/rust/issues/148922> for more information)
1515
= help: you might have intended to use the type `()` here instead
1616
note: required by a bound in `unconstrained_return`
1717
--> $DIR/diverging-fallback-unconstrained-return.rs:18:28

tests/ui/never_type/fallback-closure-ret.fallback.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | impl Bar for () {}
1111
| ^^^^^^^^^^^^^^^ `()`
1212
LL | impl Bar for u32 {}
1313
| ^^^^^^^^^^^^^^^^ `u32`
14-
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 <https://github.com/rust-lang/rust/issues/48950> for more information)
14+
= note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 <https://github.com/rust-lang/rust/issues/148922> for more information)
1515
= help: you might have intended to use the type `()` here instead
1616
note: required by a bound in `foo`
1717
--> $DIR/fallback-closure-ret.rs:15:11

0 commit comments

Comments
 (0)