Skip to content

Commit 12cba3a

Browse files
committed
add some notes about spans
1 parent 8207010 commit 12cba3a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

text/1681-macros-1.1.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,12 @@ pub struct Foo {
499499
reexport the macros, but unfortunately that would require a likely much larger
500500
step towards "macros 2.0" to solve and would greatly increase the size of this
501501
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.
502508

503509
# Alternatives
504510
[alternatives]: #alternatives
@@ -572,3 +578,8 @@ pub struct Foo {
572578
thread-local-storage.
573579

574580
* 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+

0 commit comments

Comments
 (0)