forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#119871 - nnethercote:overhaul-treat-err-as-bu…
…g, r=compiler-errors Overhaul `-Ztreat-err-as-bug` It's current behaviour is surprising, in a bad way. This also makes the implementation more complex than it needs to be. r? `@oli-obk`
- Loading branch information
Showing
8 changed files
with
51 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 6 additions & 10 deletions
16
tests/ui/impl-trait/equality-in-canonical-query.clone.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,25 @@ | ||
error: internal compiler error: no errors encountered even though `span_delayed_bug` issued | ||
note: no errors encountered even though `span_delayed_bug` issued | ||
|
||
note: those delayed bugs will now be shown as internal compiler errors | ||
|
||
error: internal compiler error: {OpaqueTypeKey { def_id: DefId(rpit::{opaque#0}), args: [] }: OpaqueTypeDecl { hidden_type: OpaqueHiddenType { span: no-location (#0), ty: Alias(Opaque, AliasTy { args: [], def_id: DefId(foo::{opaque#0}) }) } }} | ||
| | ||
= | ||
|
||
|
||
error: internal compiler error: error performing ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: UserFacing }, value: ProvePredicate { predicate: Binder { value: ProjectionPredicate(AliasTy { args: [FnDef(DefId(rpit), []), ()], def_id: DefId(ops::function::FnOnce::Output) }, Term::Ty(Alias(Opaque, AliasTy { args: [], def_id: DefId(foo::{opaque#0}) }))), bound_vars: [] } } } | ||
--> $DIR/equality-in-canonical-query.rs:19:5 | ||
--> $DIR/equality-in-canonical-query.rs:21:5 | ||
| | ||
LL | same_output(foo, rpit); | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
|
||
--> $DIR/equality-in-canonical-query.rs:19:5 | ||
--> $DIR/equality-in-canonical-query.rs:21:5 | ||
| | ||
LL | same_output(foo, rpit); | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
query stack during panic: | ||
end of query stack | ||
error: aborting due to 3 previous errors | ||
error: aborting due to 2 previous errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 6 additions & 10 deletions
16
tests/ui/type-alias-impl-trait/rpit_tait_equality_in_canonical_query.current.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,25 @@ | ||
error: internal compiler error: no errors encountered even though `span_delayed_bug` issued | ||
note: no errors encountered even though `span_delayed_bug` issued | ||
|
||
note: those delayed bugs will now be shown as internal compiler errors | ||
|
||
error: internal compiler error: {OpaqueTypeKey { def_id: DefId(get_rpit::{opaque#0}), args: [] }: OpaqueTypeDecl { hidden_type: OpaqueHiddenType { span: no-location (#0), ty: Alias(Opaque, AliasTy { args: [], def_id: DefId(Opaque::{opaque#0}) }) } }} | ||
| | ||
= | ||
|
||
|
||
error: internal compiler error: error performing ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: UserFacing }, value: ProvePredicate { predicate: Binder { value: ProjectionPredicate(AliasTy { args: [FnDef(DefId(get_rpit), []), ()], def_id: DefId(ops::function::FnOnce::Output) }, Term::Ty(Alias(Opaque, AliasTy { args: [], def_id: DefId(Opaque::{opaque#0}) }))), bound_vars: [] } } } | ||
--> $DIR/rpit_tait_equality_in_canonical_query.rs:28:5 | ||
--> $DIR/rpit_tait_equality_in_canonical_query.rs:31:5 | ||
| | ||
LL | query(get_rpit); | ||
| ^^^^^^^^^^^^^^^ | ||
| | ||
|
||
--> $DIR/rpit_tait_equality_in_canonical_query.rs:28:5 | ||
--> $DIR/rpit_tait_equality_in_canonical_query.rs:31:5 | ||
| | ||
LL | query(get_rpit); | ||
| ^^^^^^^^^^^^^^^ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
query stack during panic: | ||
end of query stack | ||
error: aborting due to 3 previous errors | ||
error: aborting due to 2 previous errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters