Skip to content

Teach -Z treat-err-as-bug to take a number of errors to emit #58984

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 8 commits into from
Mar 9, 2019

Conversation

estebank
Copy link
Contributor

@estebank estebank commented Mar 7, 2019

-Z treat-err-as-bug will cause rustc to panic after the first error is reported, like previously. -Z treat-err-as-bug=2 will cause rustc to panic after 2 errors have been reported.

Fix #58983.

`-Z treat-err-as-bug=0` will cause `rustc` to panic after the first
error is reported. `-Z treat-err-as-bug=2` will cause `rustc` to
panic after 3 errors have been reported.
@rust-highfive
Copy link
Contributor

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 7, 2019
@estebank
Copy link
Contributor Author

estebank commented Mar 7, 2019

CC @rust-lang/compiler

@rust-highfive

This comment has been minimized.

@oli-obk
Copy link
Contributor

oli-obk commented Mar 7, 2019

r=me with Travis passing.

@bors r=oli-obk

@bors
Copy link
Collaborator

bors commented Mar 7, 2019

📌 Commit 7694ca1 has been approved by oli-obk

@bors
Copy link
Collaborator

bors commented Mar 7, 2019

🌲 The tree is currently closed for pull requests below priority 50, this pull request will be tested once the tree is reopened

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 7, 2019
@oli-obk
Copy link
Contributor

oli-obk commented Mar 7, 2019

Oops.

@bors r-

r? @oli-obk

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 7, 2019
@oli-obk oli-obk assigned oli-obk and unassigned pnkfelix Mar 7, 2019
@estebank estebank changed the title Make -Z treat-err-as-bug take a number of errors to be emitted Teach -Z treat-err-as-bug to take a number of errors to be emitted Mar 7, 2019
@estebank estebank changed the title Teach -Z treat-err-as-bug to take a number of errors to be emitted Teach -Z treat-err-as-bug to take a number of errors to emit Mar 7, 2019
@rust-highfive

This comment has been minimized.

@estebank estebank force-pushed the multi-treat-err-as-bug branch from 71473fa to c41ddf1 Compare March 7, 2019 11:17
@rust-highfive

This comment has been minimized.

@estebank estebank force-pushed the multi-treat-err-as-bug branch from 8606e1f to a7563a3 Compare March 7, 2019 16:46
@rust-highfive

This comment has been minimized.

@rust-highfive

This comment has been minimized.

@rust-highfive

This comment has been minimized.

@estebank estebank force-pushed the multi-treat-err-as-bug branch from b785367 to 29716ef Compare March 7, 2019 23:25
@estebank
Copy link
Contributor Author

estebank commented Mar 8, 2019

@bors r=oli-obk rollup

@bors
Copy link
Collaborator

bors commented Mar 8, 2019

📌 Commit 29716ef has been approved by oli-obk

@bors
Copy link
Collaborator

bors commented Mar 8, 2019

🌲 The tree is currently closed for pull requests below priority 500, this pull request will be tested once the tree is reopened

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 8, 2019
pietroalbini added a commit to pietroalbini/rust that referenced this pull request Mar 8, 2019
…oli-obk

Teach `-Z treat-err-as-bug` to take a number of errors to emit

`-Z treat-err-as-bug` will cause `rustc` to panic after the first error is reported, like previously. `-Z treat-err-as-bug=2` will cause `rustc` to panic after 2 errors have been reported.

Fix rust-lang#58983.
bors added a commit that referenced this pull request Mar 9, 2019
Rollup of 24 pull requests

Successful merges:

 - #58080 (Add FreeBSD armv6 and armv7 targets)
 - #58204 (On return type `impl Trait` for block with no expr point at last semi)
 - #58269 (Add librustc and libsyntax to rust-src distribution.)
 - #58369 (Make the Entry API of HashMap<K, V> Sync and Send)
 - #58861 (Expand where negative supertrait specific error is shown)
 - #58877 (Suggest removal of `&` when borrowing macro and appropriate)
 - #58883 (Suggest appropriate code for unused field when destructuring pattern)
 - #58891 (Remove stray ` in the docs for the FromIterator implementation for Option)
 - #58893 (race condition in thread local storage example)
 - #58906 (Monomorphize generator field types for debuginfo)
 - #58911 (Regression test for #58435.)
 - #58912 (Regression test for #58813)
 - #58916 (Fix release note problems noticed after merging.)
 - #58918 (Regression test added for an async ICE.)
 - #58921 (Add an explicit test for issue #50582)
 - #58926 (Make the lifetime parameters of tcx consistent.)
 - #58931 (Elide invalid method receiver error when it contains TyErr)
 - #58940 (Remove JSBackend from config.toml)
 - #58950 (Add self to mailmap)
 - #58961 (On incorrect cfg literal/identifier, point at the right span)
 - #58963 (libstd: implement Error::source for io::Error)
 - #58970 (delay_span_bug in wfcheck's ty.lift_to_tcx unwrap)
 - #58984 (Teach `-Z treat-err-as-bug` to take a number of errors to emit)
 - #59007 (Add a test for invalid const arguments)

Failed merges:

 - #58959 (Add release notes for PR #56243)

r? @ghost
@bors bors merged commit 29716ef into rust-lang:master Mar 9, 2019
@estebank estebank deleted the multi-treat-err-as-bug branch November 9, 2023 05:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants