-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix span in proc macro #4265
Open
Sindbad-Walter
wants to merge
29
commits into
diesel-rs:master
Choose a base branch
from
Sindbad-Walter:fix_span_in_proc_macro
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fix span in proc macro #4265
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
8522e36
Change span
Sindbad-Walter 5bcad57
Removes allow unused_qualifications to see if change works
Sindbad-Walter 8545b03
Testing
Sindbad-Walter fac96f6
Testing seems to positive
Sindbad-Walter a7b7751
Puts back allow unused_qualifications as per discussion with Ten0
Sindbad-Walter 491a00d
Adds comments to explain the allow
Sindbad-Walter f6cba14
Fix added space in multi replace
Sindbad-Walter 1573b6f
come on...
Sindbad-Walter 8f624fc
Orders the imports
Sindbad-Walter 4fc94ac
Trying to see what breaks the tests
Sindbad-Walter 3cc8e26
dumb-dumb
Sindbad-Walter c06a29e
Does this work ?
Sindbad-Walter 42a6fb9
How about... this !
Sindbad-Walter f51f54e
This should fail
Sindbad-Walter 4a0134a
Better error message
Sindbad-Walter 098ecf4
Use previous formating
Sindbad-Walter 4102157
Too many spaces
Sindbad-Walter fe3570e
formating
Sindbad-Walter 9d276d0
Merge remote-tracking branch 'upstream/master' into fix_span_in_proc_…
Sindbad-Walter 95aaeb1
Trying to understand the error formatting wanted
Sindbad-Walter 4d918cc
last change seemed to have no effect
Sindbad-Walter 6a97ede
trial and error, but mostly error
Sindbad-Walter b9fcc6b
Tried to put mixed_span everywhere
Sindbad-Walter 57c2db2
updating queryable
Sindbad-Walter 9269b2a
wip
Sindbad-Walter d0b5658
fix auto formatting
Sindbad-Walter 32bc3b9
oops
Sindbad-Walter 0878050
unused
Sindbad-Walter acd1e81
wip
Sindbad-Walter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather prefer auditing the derive crate to ensure all usages of spans are encoded correctly. Yes that's a bit of work but it should fix all these issues at once.
The alternative is to remove this allow and start searching again if something pops up in some code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems like a lot of work for something that's seldom going to be noticed considering the warning is not enabled by default. It looks like it's going to be hard to maintain if we don't have it in our CI.
To make that practical to fix and maintain, it looks like
syn
'sSpanned
trait should have aspan_mixed
method that constructs this.