Fix some rightward drift.

(No semantic change.)
Update for mozilla/rust#10796.
Update for mozilla/rust#10701.
Add some missing #[test] attributes.

Ah, this dead code lint is good stuff. :-)
Mark some test-only code as such to avoid dead code warnings.
Update for upstream pkgid changes.
Stop using 'self lifetime (now illegal).
Fix for latest rust-master
Merge pull request #48 from am0d/master

Fix for latest rust-master
Fix a couple of privacy errors.

A bug in Rust had caused these to work hitherto despite being private.
Makefile: produce both a dynamic library and an .rlib, this is overridable
Change pkgid to crate_id (upstream change).
Merge pull request #49 from Blei/libflags

Makefile: produce both a dynamic library and an .rlib, this is overridable
Remove obsolete link attribute
Merge pull request #50 from eholk/fixes

Remove obsolete link attribute
Stop using Either, removed in mozilla/rust#11149
Remove tuple-struct derefing (mozilla/rust#11188)