- 23 5月, 2014 4 次提交
-
-
由 Patrick Walton 提交于
-
由 bors 提交于
-
由 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.
-
由 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.
-
- 22 5月, 2014 22 次提交
-
-
由 bors 提交于
It seemed to me, that [T] was deprecated and i am trying to help.
-
由 bors 提交于
Wikipedia suggests that windows on x64 has it's own calling convention (Supported by the fact that we implement it) source: http://en.wikipedia.org/wiki/X86_calling_conventions#x86-64_calling_conventions
-
由 bors 提交于
In particular, show examples for splitting the empty string and using `splitn` with a count of 0. Fix #14222.
-
由 Dirk Leifeld 提交于
-
由 bors 提交于
Right now, when you look in the "Implementors" section for traits, you only see implementors within that crate. This commit modifies that section to include implementors from neighboring crates as well. For example, the Container trait currently says that it is only implemented by strings and slices, but it is in fact implemented by nearly all containers. Implementation-wise, this change generates an "implementors cache" similarly to the search index where each crate will append implementors to the files. When the page for a trait is loaded, it will load its specific cache file, rendering links for all upstream types which implement the trait.
-
由 bors 提交于
-
由 Richo Healey 提交于
-
由 bors 提交于
Also adding tests for fixed ICEs
-
由 Cameron Zwarich 提交于
-
由 bors 提交于
Add slice::MutableCloneableVector to the prelude. It's the only slice trait that's currently missing. Update rust.vim to match the latest prelude and current set of keywords. Also teach it to handle box placement expressions specially.
-
由 bors 提交于
This type can be built with `Arc<Unsafe<T>>` now that liballoc exists.
-
由 Alex Crichton 提交于
Right now, when you look in the "Implementors" section for traits, you only see implementors within that crate. This commit modifies that section to include implementors from neighboring crates as well. For example, the Container trait currently says that it is only implemented by strings and slices, but it is in fact implemented by nearly all containers. Implementation-wise, this change generates an "implementors cache" similarly to the search index where each crate will append implementors to the files. When the page for a trait is loaded, it will load its specific cache file, rendering links for all upstream types which implement the trait.
-
由 Alex Crichton 提交于
-
由 Daniel Micay 提交于
The support for sized deallocation is nearly complete. The only known missing pieces are `Box<str>`, `Box<[T]>` and `proc`.
-
由 Daniel Micay 提交于
This is now only used internally by the compiler.
-
由 bors 提交于
Using `rustc` instead of e.g. `compile` makes it clear this is a rust build step.
-
由 bors 提交于
-
由 Tobias Bucher 提交于
In particular, show examples for splitting the empty string and using `splitn` with a count of 0. Fix #14222.
-
由 Brian Anderson 提交于
-
由 bors 提交于
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.
-
由 Alex Crichton 提交于
Closes #14084
-
由 Alex Crichton 提交于
Closes #14092
-
- 21 5月, 2014 14 次提交
-
-
由 bors 提交于
The changes to flowgraph make invalid invocations slightly more forgiving by (trying to) provide slightly more information and by avoiding the ICE message.
-
由 Piotr Jawniak 提交于
-
由 bors 提交于
-
由 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.
-
由 Huon Wilson 提交于
-
由 Huon Wilson 提交于
CamelCase all the way!
-
由 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]
-
由 Jonathan Bailey 提交于
-
由 bors 提交于
-
由 bors 提交于
StdWriter has .isatty(). StdReader can trivially vend the same function, and someone asked today on IRC how to call isatty() on stdin.
-
由 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.
-
由 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]
-
由 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.
-
由 Alex Crichton 提交于
Doesn't close #12796 because the error message is awful.
-