mozilla/rust — pull request #4640 by pcwalton (2013-01-26 01:01:45+00:00)
Title: libstd: Remove "dual impls" from the language and enforce coherence rule...

...s.

"Dual impls" are impls that are both type implementations and trait
implementations. They can lead to ambiguity and so this patch removes them
from the language.

This also enforces coherence rules. Without this patch, records can implement
traits not defined in the current crate. This patch fixes this, and updates
all of rustc to adhere to the new enforcement. Most of this patch is fixing
rustc to obey the coherence rules, which involves converting a bunch of records
to structs.

r? @brson