Skip to content

Commit 28cc822

Browse files
committed
extend with a side note covering the implementation
1 parent 13f68f4 commit 28cc822

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

text/0000-try-trait.md

+5
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,11 @@ have. So if the code is invoking `foo.write()?` (i.e., applying `?` to an
296296
the return type to `Result<(), io::Error>`" or perhaps just "consider
297297
changing the return type to a `Result"`.
298298

299+
On an implementation note, it would probably be helpful for improving
300+
the error message if `?` were not desugared when lowering from AST to
301+
HIR but rather when lowering from HIR to MIR. This would also make it
302+
easier to implement `catch`.
303+
299304
# Drawbacks
300305
[drawbacks]: #drawbacks
301306

0 commit comments

Comments
 (0)