Automated fixes to follow Rust development

Applied fixes:
	*attribute fix (cf mozilla/rust#2569)
	*priv attribute removal (cf mozilla/rust@f2a5c7a179ab0fc0e415918c1fc5d280a9e02ede)
Merge pull request #2 from Geal/rustfix-mwLDj

Automated fixes to follow Rust development