Skip to content

big json rewrite, and other misc features - #1904

Closed
erickt wants to merge 5 commits into
rust-lang:masterfrom
erickt:master
Closed

erickt wants to merge 5 commits into
rust-lang:masterfrom
erickt:master

Conversation

@erickt

@erickt erickt commented Feb 26, 2012

Copy link
Copy Markdown
Contributor

Our json parser has some bugs, this rewrite should make us conform to the spec.

Our json implementation did not conform to the spec, and
was missing support for escpaed characters and exponental
numbers. This fixes it, and adds support for reading/writing
json directly from/to a stream.

There are two things left unimplemented. We could use a
"to_json" iface/impl, but that really needs traits to cut
down on code duplication. The other is it wouldn't be that
not that hard to turn this implementation into a event driven
parser like YAJL, but I ran into some type-inference bugs,
so I cut that out. It'd be nice to revisit this in the future
though.
@kud1ing

kud1ing commented Feb 28, 2012

Copy link
Copy Markdown

Probably fixes #1369

@brson brson closed this Feb 29, 2012
celinval pushed a commit to celinval/rust-dev that referenced this pull request Jun 4, 2024
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
1904: Remove redundant `clone()` r=matklad a=sinkuu



Co-authored-by: Shotaro Yamada <sinkuu@sinkuu.xyz>
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
Add flag to check for uninitialized numbers

Closes rust-lang#1340.

Companion rustc PR that implements this in the Miri engine: rust-lang#88670

r? `@RalfJung`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants