1. 03 1月, 2015 1 次提交
    • A
      std: Stabilize the prelude module · 56290a00
      Alex Crichton 提交于
      This commit is an implementation of [RFC 503][rfc] which is a stabilization
      story for the prelude. Most of the RFC was directly applied, removing reexports.
      Some reexports are kept around, however:
      
      * `range` remains until range syntax has landed to reduce churn.
      * `Path` and `GenericPath` remain until path reform lands. This is done to
        prevent many imports of `GenericPath` which will soon be removed.
      * All `io` traits remain until I/O reform lands so imports can be rewritten all
        at once to `std::io::prelude::*`.
      
      This is a breaking change because many prelude reexports have been removed, and
      the RFC can be consulted for the exact list of removed reexports, as well as to
      find the locations of where to import them.
      
      [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
      [breaking-change]
      
      Closes #20068
      56290a00
  2. 02 1月, 2015 1 次提交
  3. 01 1月, 2015 5 次提交
  4. 31 12月, 2014 1 次提交
  5. 30 12月, 2014 11 次提交
  6. 29 12月, 2014 5 次提交
  7. 27 12月, 2014 1 次提交
    • N
      save-analysis: emit names of items that a glob import actually imports. · df0c6d93
      Nick Cameron 提交于
      There is also some work here to make resolve a bit more stable - it no longer overwrites a specific import with a glob import.
      
      [breaking-change]
      
      Import shadowing of single/list imports by globs is now forbidden. An interesting case is where a glob import imports a re-export (`pub use`) of a single import. This still counts as a single import for the purposes of shadowing .You can usually fix any bustage by re-ordering such imports. A single import may still shadow (override) a glob import or the prelude.
      df0c6d93
  8. 26 12月, 2014 1 次提交
  9. 24 12月, 2014 1 次提交
    • A
      rustc: Add knowledge of separate lookup paths · d085d9d3
      Alex Crichton 提交于
      This commit adds support for the compiler to distinguish between different forms
      of lookup paths in the compiler itself. Issue #19767 has some background on this
      topic, as well as some sample bugs which can occur if these lookup paths are not
      separated.
      
      This commits extends the existing command line flag `-L` with the same trailing
      syntax as the `-l` flag. Each argument to `-L` can now have a trailing `:all`,
      `:native`, `:crate`, or `:dependency`. This suffix indicates what form of lookup
      path the compiler should add the argument to. The `dependency` lookup path is
      used when looking up crate dependencies, the `crate` lookup path is used when
      looking for immediate dependencies (`extern crate` statements), and the `native`
      lookup path is used for probing for native libraries to insert into rlibs. Paths
      with `all` are used for all of these purposes (the default).
      
      The default compiler lookup path (the rustlib libdir) is by default added to all
      of these paths. Additionally, the `RUST_PATH` lookup path is added to all of
      these paths.
      
      Closes #19767
      d085d9d3
  10. 23 12月, 2014 2 次提交
  11. 22 12月, 2014 2 次提交
    • A
      Fallout of std::str stabilization · 082bfde4
      Alex Crichton 提交于
      082bfde4
    • C
      Remove a ton of public reexports · 98af642f
      Corey Farwell 提交于
      Remove most of the public reexports mentioned in #19253
      
      These are all leftovers from the enum namespacing transition
      
      In particular:
      
      * src/libstd/num/strconv.rs
       * ExponentFormat
       * SignificantDigits
       * SignFormat
      * src/libstd/path/windows.rs
       * PathPrefix
      * src/libstd/sys/windows/timer.rs
       * Req
      * src/libcollections/str.rs
       * MaybeOwned
      * src/libstd/collections/hash/map.rs
       * Entry
      * src/libstd/collections/hash/table.rs
       * BucketState
      * src/libstd/dynamic_lib.rs
       * Rtld
      * src/libstd/io/net/ip.rs
       * IpAddr
      * src/libstd/os.rs
       * MemoryMapKind
       * MapOption
       * MapError
      * src/libstd/sys/common/net.rs
       * SocketStatus
       * InAddr
      * src/libstd/sys/unix/timer.rs
       * Req
      
      [breaking-change]
      98af642f
  12. 21 12月, 2014 2 次提交
  13. 20 12月, 2014 5 次提交
  14. 19 12月, 2014 2 次提交