File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -499,6 +499,12 @@ pub struct Foo {
499
499
reexport the macros, but unfortunately that would require a likely much larger
500
500
step towards "macros 2.0" to solve and would greatly increase the size of this
501
501
RFC.
502
+
503
+ * Converting to a string and back loses span information, which can
504
+ lead to degraded error messages. For example, currently we can make
505
+ an effort to use the span of a given field when deriving code that
506
+ is caused by that field, but that kind of precision will not be
507
+ possible until a richer interface is available.
502
508
503
509
# Alternatives
504
510
[ alternatives ] : #alternatives
@@ -572,3 +578,8 @@ pub struct Foo {
572
578
thread-local-storage.
573
579
574
580
* Should the APIs here be namespaced, perhaps with a ` _1_1 ` suffix?
581
+
582
+ * To what extent can we preserve span information through heuristics?
583
+ Should we adopt a slightly different API, for example one based on
584
+ concatenation, to allow preserving spans?
585
+
You can’t perform that action at this time.
0 commit comments