-
Notifications
You must be signed in to change notification settings - Fork 236
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
Rework errors #675
Merged
Merged
Rework errors #675
Changes from 6 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
e0adb66
Normalize failed text of all checks for expected errors
Mingun da2823d
cargo fmt
Mingun d9520c4
Remove `DeError::UnexpectedEnd`, because this error could be returned…
Mingun 77e5a2c
Remove `DeError::ExpectedStart`, call `Visitor::visit_borrowed_str` o…
Mingun a5490f2
Do not return `DeError::Unsupported` in `SimpleTypeDeserializer`, cal…
Mingun f845369
Do not return `DeError::Unsupported` in attempt to deserialize byte data
Mingun 77a2fad
Do not return `DeError::Unsupported` in attempt to deserialize newtyp…
Mingun 29ca886
Replace `Error::UnexpectedEof` and `Error::UnexpectedBang` by `Error:…
Mingun 0e5188d
Replace `Error::UnexpectedEof` by `Error::IllFormed(MissedEnd)` in re…
Mingun f7ee91f
Do not convert `DeError::InvalidXml(Error::IllFormed(MissedEnd))` to …
Mingun a91843e
Replace `DeError::UnexpectedEof` by `Error::IllFormed(MissedEnd)` whe…
Mingun 7d20324
Replace `DeError::UnexpectedEof` by `Error::IllFormed(MissedEnd)` in …
Mingun 4972d4f
Replace `DeError::UnexpectedEof` by `Error::IllFormed(MissedEnd)` and…
Mingun cee2725
`DeEvent::Eof` is impossible in `MapValueDeserializer::variant_seed`,…
Mingun d5489df
Remove unnecessary allocation
Mingun 00de446
Report trimmed found name in EndEventMismatch error when end tag has …
Mingun ff28390
Report EndEventMismatch error at start of the end tag at `<` character
Mingun 73fcf23
Inline mismatch_err closure because in the next commit it will genera…
Mingun 6670800
Replace `Error::EndEventMismatch` by `Error::IllFormed(UnmatchedEnd)`…
Mingun 4d887a2
Replace `Error::EndEventMismatch` by `Error::IllFormed(MismatchedEnd)`
Mingun a4febad
`IllFormed(UnmatchedEnd)` should be reported always because lone clos…
Mingun 596edd6
Replace `Error::UnexpectedToken` by `Error::IllFormed(DoubleHyphenInC…
Mingun 53c6b4e
Remove not used `Error::TextNotFound`
Mingun a049cd2
Better document `Error::XmlDeclWithoutVersion` and `Error::EmptyDocType`
Mingun 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
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.
Have you actually found this to make a difference?
The primary purpose of
#[inline]
is to allow inlining across compilation units. Within a compilation unit, the compiler is just going to decide on its own and mostly ignore this attribute unless you say#[inline(always)]
.If these functions are not going to be called from any external library, I doubt it would make a difference.
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.
No, added just for consistence. Actually I want to run some profiler one day, just need time to learn how to do that and find a which one that could be run on Windows. Most tools supports only Linux.
cargo flamegraph
looks promising.