Utilize fewer reexports
In regards to: https://github.com/rust-lang/rust/issues/19253#issuecomment-64836729 This commit: * Changes the #deriving code so that it generates code that utilizes fewer reexports (in particur Option::* and Result::*), which is necessary to remove those reexports in the future * Changes other areas of the codebase so that fewer reexports are utilized
This commit is contained in:
parent
6f4c11be3b
commit
4ef16741e3
85 changed files with 277 additions and 195 deletions
|
|
@ -994,7 +994,7 @@ An example of `use` declarations:
|
|||
|
||||
```
|
||||
use std::iter::range_step;
|
||||
use std::option::{Some, None};
|
||||
use std::option::Option::{Some, None};
|
||||
use std::collections::hash_map::{mod, HashMap};
|
||||
|
||||
fn foo<T>(_: T){}
|
||||
|
|
@ -1004,8 +1004,8 @@ fn main() {
|
|||
// Equivalent to 'std::iter::range_step(0u, 10u, 2u);'
|
||||
range_step(0u, 10u, 2u);
|
||||
|
||||
// Equivalent to 'foo(vec![std::option::Some(1.0f64),
|
||||
// std::option::None]);'
|
||||
// Equivalent to 'foo(vec![std::option::Option::Some(1.0f64),
|
||||
// std::option::Option::None]);'
|
||||
foo(vec![Some(1.0f64), None]);
|
||||
|
||||
// Both `hash_map` and `HashMap` are in scope.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue