1. 23 5月, 2014 4 次提交
    • P
    • B
      e402e75f
    • B
      auto merge of #14346 : alexcrichton/rust/rustdoc-external-crates, r=pcwalton · 8d50d6a9
      bors 提交于
      This commit alters rustdoc to crawl the metadata of upstream libraries in order
      to fill in default methods for traits implemented in downstream crates. This,
      for example, documents the `insert` function on hash maps.
      
      This is a fairly lossy extraction from the metadata. Documentation and
      attributes are lost, but they aren't used anyway. Unfortunately, argument names
      are also lost because they are not present in the metadata. Source links are
      also lost because the spans are not serialized.
      
      While not perfect, it appears that presenting this documentation through rustdoc
      is much better than nothing, so I wanted to land this to allow iteration on it
      later on.
      8d50d6a9
    • A
      rustdoc: Fill in external trait methods · c746c503
      Alex Crichton 提交于
      This commit alters rustdoc to crawl the metadata of upstream libraries in order
      to fill in default methods for traits implemented in downstream crates. This,
      for example, documents the `insert` function on hash maps.
      
      This is a fairly lossy extraction from the metadata. Documentation and
      attributes are lost, but they aren't used anyway. Unfortunately, argument names
      are also lost because they are not present in the metadata. Source links are
      also lost because the spans are not serialized.
      
      While not perfect, it appears that presenting this documentation through rustdoc
      is much better than nothing, so I wanted to land this to allow iteration on it
      later on.
      c746c503
  2. 22 5月, 2014 22 次提交
  3. 21 5月, 2014 14 次提交
    • B
      auto merge of #14326 : huonw/rust/tiny-fixes, r=pnkfelix · 803e92de
      bors 提交于
      The changes to flowgraph make invalid invocations slightly more forgiving by (trying to) provide slightly more information and by avoiding the ICE message.
      803e92de
    • P
      Remove two outdated FIXMEs from complex.rs · fe7cc810
      Piotr Jawniak 提交于
      fe7cc810
    • B
      auto merge of #14324 : zecozephyr/rust/docfix, r=luqmana · 1edb0e53
      bors 提交于
      1edb0e53
    • H
      rustc: improve error messages from wrong --pretty flowgraph use. · feb91f32
      Huon Wilson 提交于
      This defers to .fatal and .span_fatal for errors (rather than `fail!`
      which prints the ICE message). It also adds the span lookup when an id
      doesn't correspond to a block, to show what it is pointing at.
      
      It also makes the argument parser slightly looser, so that passing
      `--pretty flowgraph` recognises the `flowgraph` part and suggests to use
      an integer.
      feb91f32
    • H
      rustc: ng -> gn, fix a typo in a string. · dd5365af
      Huon Wilson 提交于
      dd5365af
    • H
      rustc: rename the lint `level` enum for style. · a2396634
      Huon Wilson 提交于
      CamelCase all the way!
      a2396634
    • B
      auto merge of #14319 : kballard/rust/rename_rng_choose_option, r=alexcrichton · a400b31f
      bors 提交于
      Rng.choose() is used so rarely that it doesn't necessitate having two
      methods, especially since the failing, non-option variant also requires
      Clone.
      
      [breaking-change]
      a400b31f
    • J
      Updated doc with correct type. · e549601b
      Jonathan Bailey 提交于
      e549601b
    • B
    • B
      auto merge of #14315 : kballard/rust/stdreader_isatty, r=alexcrichton · 4605232f
      bors 提交于
      StdWriter has .isatty(). StdReader can trivially vend the same function,
      and someone asked today on IRC how to call isatty() on stdin.
      4605232f
    • B
      auto merge of #14259 : alexcrichton/rust/core-mem, r=brson · 4afc15e3
      bors 提交于
      Excluding the functions inherited from the cast module last week (with marked
      stability levels), these functions received the following treatment.
      
      * size_of - this method has become #[stable]
      * nonzero_size_of/nonzero_size_of_val - these methods have been removed
      * min_align_of - this method is now #[stable]
      * pref_align_of - this method has been renamed without the
        `pref_` prefix, and it is the "default alignment" now. This decision is in line
        with what clang does (see url linked in comment on function). This function
        is now #[stable].
      * init - renamed to zeroed and marked #[stable]
      * uninit - marked #[stable]
      * move_val_init - renamed to overwrite and marked #[stable]
      * {from,to}_{be,le}{16,32,64} - all functions marked #[stable]
      * swap/replace/drop - marked #[stable]
      * size_of_val/min_align_of_val/align_of_val - these functions are marked
        #[unstable], but will continue to exist in some form. Concerns have been
        raised about their `_val` prefix.
      4afc15e3
    • A
      core: Stabilize the mem module · 19dc3b50
      Alex Crichton 提交于
      Excluding the functions inherited from the cast module last week (with marked
      stability levels), these functions received the following treatment.
      
      * size_of - this method has become #[stable]
      * nonzero_size_of/nonzero_size_of_val - these methods have been removed
      * min_align_of - this method is now #[stable]
      * pref_align_of - this method has been renamed without the
        `pref_` prefix, and it is the "default alignment" now. This decision is in line
        with what clang does (see url linked in comment on function). This function
        is now #[stable].
      * init - renamed to zeroed and marked #[stable]
      * uninit - marked #[stable]
      * move_val_init - renamed to overwrite and marked #[stable]
      * {from,to}_{be,le}{16,32,64} - all functions marked #[stable]
      * swap/replace/drop - marked #[stable]
      * size_of_val/min_align_of_val/align_of_val - these functions are marked
        #[unstable], but will continue to exist in some form. Concerns have been
        raised about their `_val` prefix.
      
      [breaking-change]
      19dc3b50
    • K
      Change std inject attributes to outer attributes · 23ca66ec
      Kevin Ballard 提交于
      The #[phase(syntax,link)] attribute on `extern crate std` needs to be an
      outer attribute so it can pretty-print properly.
      
      Also add `#![no_std]` and `#[feature(phase)]` so compiling the
      pretty-printed source will work.
      23ca66ec
    • A
      test: Add test for fixed issue #12796 · 4aac621b
      Alex Crichton 提交于
      Doesn't close #12796 because the error message is awful.
      4aac621b