libstd: Remove "dual impls" from the language and enforce coherence rules. r=brson
"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.
This commit is contained in:
parent
f1e78c6dd7
commit
eb4d39e1fe
77 changed files with 699 additions and 832 deletions
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
use codemap;
|
||||
use codemap::{span, Loc, FileMap};
|
||||
use codemap::{FileMap, Loc, Pos, span};
|
||||
use ext::base::*;
|
||||
use ext::base;
|
||||
use ext::build::{mk_base_vec_e, mk_uint, mk_u8, mk_base_str};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue