Uh oh!
There was an error while loading. Please reload this page.
Hide diagnostics emitted during --cfg parsing - #64467
Conversation
rust-highfive
commented
Sep 14, 2019
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
Mark-Simulacrum
commented
Sep 14, 2019
I'm not entirely sure if the NullEmitter approach is the right one but it seems reasonable. r? @estebank I guess |
estebank
commented
Sep 15, 2019
Could you add a test? R=me |
3121dad to
365d218CompareMark-Simulacrum
commented
Sep 15, 2019
Added a test but I'll let PR CI check if it passes. |
rust-highfive
commented
Sep 15, 2019
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
The early error is more than sufficient for fixing the problem.
365d218 to
a678e31CompareMark-Simulacrum
commented
Sep 16, 2019
@bors r=estebank |
bors
commented
Sep 16, 2019
📌 Commit a678e31 has been approved by |
…r=estebank Hide diagnostics emitted during --cfg parsing The early error is more than sufficient for fixing the problem. Fixesrust-lang#31496.
Rollup of 10 pull requests Successful merges: - #63955 (Make sure interned constants are immutable) - #64028 (Stabilize `Vec::new` and `String::new` as `const fn`s) - #64119 (ci: ensure all tool maintainers are assignable on issues) - #64444 (fix building libstd without backtrace feature) - #64446 (Fix build script sanitizer check.) - #64451 (when Miri tests are not passing, do not add Miri component) - #64467 (Hide diagnostics emitted during --cfg parsing) - #64497 (Don't print the "total" `-Ztime-passes` output if `--prints=...` is also given) - #64499 (Use `Symbol` in two more functions.) - #64504 (use println!() instead of println!("")) Failed merges: r? @ghost
Fixesrust-lang#73026 See also: rust-lang#64467, rust-lang#89468 The issue stems from a `FatalError` being silently raised in `panictry_buffer`. Normally this is not a problem, because `panictry_buffer` emits the causes of the error, but they are not themselves fatal, so they get filtered out by the silent emitter. To fix this, we use a parser entrypoint which doesn't use `panictry_buffer`, and we handle the error ourselves.
Emit an error for `--cfg=)` Fixesrust-lang#73026 See also: rust-lang#64467, rust-lang#89468 The issue stems from a `FatalError` being silently raised in `panictry_buffer`. Normally this is not a problem, because `panictry_buffer` emits the causes of the error, but they are not themselves fatal, so they get filtered out by the silent emitter. To fix this, we use a parser entrypoint which doesn't use `panictry_buffer`, and we handle the error ourselves.
The early error is more than sufficient for fixing the problem.
Fixes#31496.