Include useful diagnostic information in errors
还没有人认领这个 Issue。
评估
调研方向
首先定位生成 BB(Block(0)) 的错误格式化代码,以及输出类似 "block 0 does not end in a terminator." 的消息的 logging 代码。跟踪这些诊断信息的创建过程,并检查现有的错误测试(如果有)。当实际错误包含有用的诊断信息且不需要 logging 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Right now, we just give error messages like BB(Block(0)), meaning that there is some error somewhere in block 0.
If one enables logging, then one gets messages like "block 0 does not end in a terminator" or something like that.
It would be nice if we put that information in the actual error itself, so folks didn't have to enable logging to figure out what went wrong.
- 主要语言
- Rust
- 星标
- 266
- 派生
- 55
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bytecodealliance/regalloc2 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 48/100
bytecodealliance/regalloc2#265 · 9 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
bytecodealliance/regalloc2#247 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
bytecodealliance/regalloc2#222 · 4 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
bytecodealliance/regalloc2#206 · 2 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
bytecodealliance/regalloc2#194 · 7 条评论 ·
查看 bytecodealliance/regalloc2 的全部 Issue
相似的 Issue
-
contribution
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
tree-sitter/tree-sitter#6005 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
maplibre/maplibre-tile-spec#1844 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 92/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
rust-windowing/winit#4731 ·
维护者通常 2 天内回复