roc/compiler/gen_wasm/src
Brian Carroll 4aa2452e01 gen_wasm: Change some compiler bugs error handling from Result to panic
Result makes sense where I have something meaningful to say to the user like
"X is not implemented yet". And also for public functions that may interface
with other parts of the project like Backend.

But for private functions internal to gen_wasm, it's just unhelpful to get a stack trace
to where the Result is unwrapped! I want a stack trace to the root cause.
I always end up temporarily rewriting Err("oops") to panic!("oops") and then waiting
for it to recompile.

This feels like a more balanced approach, using each technique where it makes sense.
2021-10-02 13:40:44 +01:00
..
backend.rs gen_wasm: Change some compiler bugs error handling from Result to panic 2021-10-02 13:40:44 +01:00
from_wasm32_memory.rs debug_assert 2021-09-05 14:10:13 +02:00
layout.rs PR tidy-ups 2021-09-29 06:15:58 +01:00
lib.rs gen_wasm: Change some compiler bugs error handling from Result to panic 2021-10-02 13:40:44 +01:00
storage.rs gen_wasm: Change some compiler bugs error handling from Result to panic 2021-10-02 13:40:44 +01:00