Skip to content

Added cmp/to_str/clone functionality and related tests to B-tree #11051

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
ea8caa7
Committing standard compare/to_str/clone features, but no tests yet.
niftynif Dec 16, 2013
a9a7a42
std: uniform modules titles for doc
lucab Dec 24, 2013
8ca1c34
Add docs for more crates
emberian Dec 28, 2013
0aab974
Guard a maybe_yield in Chan with can_resched
alexcrichton Dec 28, 2013
38a5edb
auto merge of #11180 : alexcrichton/rust/fix-deferred-send, r=cmr
bors Dec 29, 2013
e53e86a
Add a compiler-docs target
emberian Dec 29, 2013
7b382e5
Fix rustdoc bug involving PatLit
emberian Dec 29, 2013
afe8f6e
auto merge of #11177 : cmr/rust/native_and_green_docs, r=alexcrichton
bors Dec 29, 2013
4660659
rust.md : update crate attributes.
eliovir Dec 29, 2013
aa5d779
auto merge of #11134 : lucab/rust/lucab/libstd-doc, r=cmr
bors Dec 29, 2013
b3ae7b1
Add /doc/{green,native} to .gitignore
lilyball Dec 29, 2013
01209f1
Add method .as_mut_slice() to MutableVector
lilyball Dec 9, 2013
1db7464
Add /doc/{rustc,syntax} to .gitignore
lilyball Dec 29, 2013
4bc0971
Rename pkgid variables
luisbg Dec 28, 2013
f872c47
Rename PkgId to CrateId
luisbg Dec 28, 2013
016d52e
Rename uses of PkgId to CrateId in librustpkg
luisbg Dec 28, 2013
51b5f32
Update Docs to use crateid
luisbg Dec 28, 2013
5580b4c
Register new snapshots.
alexcrichton Dec 29, 2013
0da86ba
Actually block in a windows cvar
alexcrichton Dec 29, 2013
b27c53b
Fix a deadlock in a libgreen test
alexcrichton Dec 30, 2013
b5b570b
auto merge of #11204 : alexcrichton/rust/issue-11200, r=cmr
bors Dec 30, 2013
d9eaeda
Update llvm.
luqmana Dec 27, 2013
0cbb44a
auto merge of #11181 : luqmana/rust/up-llvm, r=alexcrichton
bors Dec 30, 2013
582ad8f
rustdoc: only filter lines starting with '# ' from the shown code.
huonw Dec 28, 2013
dedc29f
rustdoc: Unify the handling of the hidden example lines.
huonw Dec 30, 2013
adc5eef
auto merge of #11168 : sfackler/rust/de-at-extctxt, r=alexcrichton
bors Dec 30, 2013
28a091f
auto merge of #10885 : kballard/rust/as_mut_slice, r=cmr
bors Dec 30, 2013
ac0c376
auto merge of #11169 : alexcrichton/rust/snapshots, r=sanxiyn
bors Dec 30, 2013
f37b746
auto merge of #11182 : luisbg/rust/crateid, r=cmr
bors Dec 30, 2013
a4f30bf
auto merge of #11185 : huonw/rust/doc-ignore, r=cmr
bors Dec 30, 2013
6db7e35
auto merge of #11190 : eliovir/rust/patch-3, r=alexcrichton
bors Dec 30, 2013
f7fd618
auto merge of #11194 : kballard/rust/gitignore-doc-green-native, r=al…
bors Dec 30, 2013
1502b11
auto merge of #11199 : alexcrichton/rust/windows-isnt-waiting, r=pcwa…
bors Dec 30, 2013
1b7954a
Committing standard compare/to_str/clone features, but no tests yet.
niftynif Dec 16, 2013
81ca64b
Added more robust compare and equals for Branch and Leaf, as well
niftynif Dec 30, 2013
1edeb37
Merge branch 'master' of http://github.com/niftynif/rust
niftynif Dec 30, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ src/.DS_Store
/doc/latex
/doc/std
/doc/extra
/doc/green
/doc/native
/doc/rustc
/doc/syntax
/nd/
/llvm/
version.md
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "src/llvm"]
path = src/llvm
url = https://github.com/alexcrichton/llvm.git
url = https://github.com/luqmana/llvm.git
branch = master
[submodule "src/libuv"]
path = src/libuv
Expand Down
14 changes: 7 additions & 7 deletions doc/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -610,12 +610,12 @@ the behavior of the compiler.

~~~~
// Package ID
#[ pkgid = "projx#2.5" ];
#[ crate_id = "projx#2.5" ];

// Additional metadata attributes
#[ desc = "Project X" ];
#[ license = "BSD" ];
#[ author = "Jane Doe" ];
#[ comment = "This is a comment on Project X." ];

// Specify the output type
#[ crate_type = "lib" ];
Expand Down Expand Up @@ -776,9 +776,9 @@ as the `ident` provided in the `extern_mod_decl`.
The external crate is resolved to a specific `soname` at compile time, and a
runtime linkage requirement to that `soname` is passed to the linker for
loading at runtime. The `soname` is resolved at compile time by scanning the
compiler's library path and matching the optional `pkgid` provided as a string literal
against the `pkgid` attributes that were declared on the external crate when
it was compiled. If no `pkgid` is provided, a default `name` attribute is
compiler's library path and matching the optional `crateid` provided as a string literal
against the `crateid` attributes that were declared on the external crate when
it was compiled. If no `crateid` is provided, a default `name` attribute is
assumed, equal to the `ident` given in the `extern_mod_decl`.

Four examples of `extern mod` declarations:
Expand Down Expand Up @@ -1729,7 +1729,7 @@ names are effectively reserved. Some significant attributes include:
* The `cfg` attribute, for conditional-compilation by build-configuration.
* The `lang` attribute, for custom definitions of traits and functions that are known to the Rust compiler (see [Language items](#language-items)).
* The `link` attribute, for describing linkage metadata for a extern blocks.
* The `pkgid` attribute, for describing the package ID of a crate.
* The `crate_id` attribute, for describing the package ID of a crate.
* The `test` attribute, for marking functions as unit tests.
* The `allow`, `warn`, `forbid`, and `deny` attributes, for
controlling lint checks (see [Lint check attributes](#lint-check-attributes)).
Expand Down Expand Up @@ -3792,7 +3792,7 @@ specified then log level 4 is assumed. Debug messages can be omitted
by passing `--cfg ndebug` to `rustc`.

As an example, to see all the logs generated by the compiler, you would set
`RUST_LOG` to `rustc`, which is the crate name (as specified in its `pkgid`
`RUST_LOG` to `rustc`, which is the crate name (as specified in its `crate_id`
[attribute](#attributes)). To narrow down the logs to just crate resolution,
you would set it to `rustc::metadata::creader`. To see just error logging
use `rustc=0`.
Expand Down
9 changes: 5 additions & 4 deletions doc/rustdoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ comments":
~~~
// the "link" crate attribute is currently required for rustdoc, but normally
// isn't needed.
#[pkgid = "universe"];
#[crate_id = "universe"];
#[crate_type="lib"];

//! Tools for dealing with universes (this is a doc comment, and is shown on
Expand Down Expand Up @@ -132,9 +132,10 @@ specifiers that can be used to dictate how a code block is tested:
~~~

Rustdoc also supplies some extra sugar for helping with some tedious
documentation examples. If a line is prefixed with a `#` character, then the
line will not show up in the HTML documentation, but it will be used when
testing the code block.
documentation examples. If a line is prefixed with `# `, then the line
will not show up in the HTML documentation, but it will be used when
testing the code block (NB. the space after the `#` is required, so
that one can still write things like `#[deriving(Eq)]`).

~~~
```rust
Expand Down
2 changes: 1 addition & 1 deletion doc/rustpkg.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ then both `bar` and `bar/extras/baz` are valid package identifiers
in the workspace `foo`.

Because rustpkg uses generic source file names as the main inputs, you will
need to specify the package identifier in them using the `pkgid` attribute
need to specify the package identifier in them using the `crate_id` attribute
on the crate.

## Source files
Expand Down
15 changes: 15 additions & 0 deletions mk/docs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
######################################################################

DOCS :=
CDOCS :=
DOCS_L10N :=

BASE_DOC_OPTS := --from=markdown --standalone --toc --number-sections
Expand Down Expand Up @@ -232,8 +233,21 @@ doc/$(1)/index.html: $$(RUSTDOC) $$(TLIB2_T_$(3)_H_$(3))/$(CFG_STDLIB_$(3))
DOCS += doc/$(1)/index.html
endef

define compiledoc
doc/$(1)/index.html: $$(RUSTDOC) $$(TLIB2_T_$(3)_H_$(3))/$(CFG_STDLIB_$(3))
@$$(call E, rustdoc: $$@)
$(Q)$(RUSTDOC) --cfg stage2 $(2)

CDOCS += doc/$(1)/index.html
endef

$(eval $(call libdoc,std,$(STDLIB_CRATE),$(CFG_BUILD)))
$(eval $(call libdoc,extra,$(EXTRALIB_CRATE),$(CFG_BUILD)))
$(eval $(call libdoc,native,$(LIBNATIVE_CRATE),$(CFG_BUILD)))
$(eval $(call libdoc,green,$(LIBGREEN_CRATE),$(CFG_BUILD)))

$(eval $(call compiledoc,rustc,$(COMPILER_CRATE),$(CFG_BUILD)))
$(eval $(call compiledoc,syntax,$(LIBSYNTAX_CRATE),$(CFG_BUILD)))


ifdef CFG_DISABLE_DOCS
Expand All @@ -256,6 +270,7 @@ doc/version_info.html: version_info.html.template $(MKFILE_DEPS) \
GENERATED += doc/version.md doc/version_info.html

docs: $(DOCS)
compiler-docs: $(CDOCS)

docs-l10n: $(DOCS_L10N)

Expand Down
2 changes: 1 addition & 1 deletion src/etc/combine-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def scrub(b):
"""
// AUTO-GENERATED FILE: DO NOT EDIT
#[crate_id=\"run_pass_stage2#0.1\"];
#[pkgid=\"run_pass_stage2#0.1\"];
#[crate_id=\"run_pass_stage2#0.1\"];
#[feature(globs, macro_rules, struct_variant, managed_boxes)];
#[allow(warnings)];
"""
Expand Down
Loading