Skip to content

Commit 1f779bd

Browse files
committed
---
yaml --- r: 94477 b: refs/heads/try c: cab6878 h: refs/heads/master i: 94475: 5a5bdc7 v: v3
1 parent dc325af commit 1f779bd

File tree

374 files changed

+7725
-8586
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

374 files changed

+7725
-8586
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: d9c06586f2aa12f89c94a27a20f0d0b260da216e
5+
refs/heads/try: cab687853a63198e5de9aa094d4ac01d068d0285
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
lexer.ml
5353
TAGS
5454
TAGS.emacs
55-
TAGS.vi
55+
TAGS.vim
5656
version.ml
5757
version.texi
5858
/Makefile

branches/try/Makefile.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,11 @@ ifneq ($(strip $(findstring snap,$(MAKECMDGOALS)) \
657657
include $(CFG_SRC_DIR)mk/snap.mk
658658
endif
659659

660+
ifneq ($(findstring reformat,$(MAKECMDGOALS)),)
661+
CFG_INFO := $(info cfg: including reformat rules)
662+
include $(CFG_SRC_DIR)mk/pp.mk
663+
endif
664+
660665
ifneq ($(strip $(findstring check,$(MAKECMDGOALS)) \
661666
$(findstring test,$(MAKECMDGOALS)) \
662667
$(findstring perf,$(MAKECMDGOALS)) \

branches/try/configure

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -559,27 +559,6 @@ then
559559
step_msg "on OS X 10.9, forcing use of clang"
560560
CFG_ENABLE_CLANG=1
561561
putvar CFG_ENABLE_CLANG
562-
else
563-
# on OS X, with xcode 5 and newer, certain developers may have
564-
# cc, gcc and g++ point to a mixture of clang and gcc
565-
# if so, this will create very strange build errors
566-
# this last stanza is to detect some such problems and save the future rust
567-
# contributor some time solving that issue.
568-
# this detection could be generalized to other OSes aside from OS X
569-
# but the issue seems most likely to happen on OS X
570-
571-
chk_cc () {
572-
$1 --version 2> /dev/null | grep -q $2
573-
}
574-
# check that gcc, cc and g++ all point to the same compiler.
575-
# note that for xcode 5, g++ points to clang, not clang++
576-
if !((chk_cc gcc clang && chk_cc g++ clang) ||
577-
(chk_cc gcc gcc &&( chk_cc g++ g++ || chk g++ gcc))) then
578-
err "the gcc and g++ in your path point to different compilers.
579-
Check which versions are in your path with cc --version and g++ --version.
580-
To resolve this problem, either fix your PATH or run configure with --enable-clang"
581-
fi
582-
583562
fi
584563
fi
585564

@@ -910,11 +889,9 @@ do
910889
# Try to have LLVM pull in as few dependencies as possible (#9397)
911890
LLVM_OPTS="$LLVM_OPTS --disable-zlib --disable-libffi"
912891

913-
# Use win32 native thread/lock apis instead of pthread wrapper.
914-
# (llvm's configure tries to find pthread first, so we have to disable it explicitly.)
915-
# Also note that pthreads works badly on mingw-w64 systems: #8996
892+
# pthreads works badly on mingw-w64 systems: #8996
916893
case "$CFG_BUILD" in
917-
(*-mingw32)
894+
(*w64-mingw32)
918895
LLVM_OPTS="$LLVM_OPTS --disable-pthreads"
919896
;;
920897
esac

branches/try/doc/rust.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,6 @@ dd {
216216
list-style-type: none;
217217
padding-left: 0px;
218218
}
219-
/* Only display one level of hierarchy in the TOC */
220-
#TOC ul ul {
221-
display: none;
222-
}
223219

224220
sub,
225221
sup {

branches/try/doc/rust.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ extern mod extra; // equivalent to: extern mod extra = "extra";
790790
791791
extern mod rustextra = "extra"; // linking to 'extra' under another name
792792
793-
extern mod foo = "some/where/rust-foo#foo:1.0"; // a full package ID for rustpkg
793+
extern mod foo = "some/where/foo#1.0"; // a full package ID for rustpkg
794794
~~~~
795795

796796
##### Use declarations
@@ -2177,11 +2177,7 @@ Expressions are divided into two main categories: _lvalues_ and _rvalues_.
21772177
Likewise within each expression, sub-expressions may occur in _lvalue context_ or _rvalue context_.
21782178
The evaluation of an expression depends both on its own category and the context it occurs within.
21792179

2180-
An lvalue is an expression that represents a memory location. These
2181-
expressions are [paths](#path-expressions) (which refer to local
2182-
variables, function and method arguments, or static variables),
2183-
dereferences (`*expr`), [indexing expressions](#index-expressions)
2184-
(`expr[expr]`), and [field references](#field-expressions) (`expr.f`).
2180+
[Path](#path-expressions), [field](#field-expressions) and [index](#index-expressions) expressions are lvalues.
21852181
All other expressions are rvalues.
21862182

21872183
The left operand of an [assignment](#assignment-expressions),
@@ -3329,12 +3325,6 @@ The kinds are:
33293325
This kind includes scalars, owning pointers, owned closures, and
33303326
structural types containing only other owned types.
33313327
All `Send` types are `'static`.
3332-
`Pod`
3333-
: Types of this kind consist of "Plain Old Data"
3334-
which can be copied by simply moving bits.
3335-
All values of this kind can be implicitly copied.
3336-
This kind includes scalars and immutable references,
3337-
as well as structural types containing other `Pod` types.
33383328
`'static`
33393329
: Types of this kind do not contain any borrowed pointers;
33403330
this can be a useful guarantee for code

branches/try/doc/rustdoc.md

Lines changed: 0 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -85,92 +85,3 @@ javascript and a statically-generated search index. No special web server is
8585
required for the search.
8686

8787
[sundown]: https://github.com/vmg/sundown/
88-
89-
# Testing the Documentation
90-
91-
`rustdoc` has support for testing code examples which appear in the
92-
documentation. This is helpful for keeping code examples up to date with the
93-
source code.
94-
95-
To test documentation, the `--test` argument is passed to rustdoc:
96-
97-
~~~
98-
rustdoc --test crate.rs
99-
~~~
100-
101-
## Defining tests
102-
103-
Rust documentation currently uses the markdown format, and code blocks can refer
104-
to any piece of code-related documentation, which isn't always rust. Because of
105-
this, only code blocks with the language of "rust" will be considered for
106-
testing.
107-
108-
~~~
109-
```rust
110-
// This is a testable code block
111-
```
112-
113-
```
114-
// This is not a testable code block
115-
```
116-
117-
// This is not a testable code block (4-space indent)
118-
~~~
119-
120-
In addition to only testing "rust"-language code blocks, there are additional
121-
specifiers that can be used to dictate how a code block is tested:
122-
123-
~~~
124-
```rust,ignore
125-
// This code block is ignored by rustdoc, but is passed through to the test
126-
// harness
127-
```
128-
129-
```rust,should_fail
130-
// This code block is expected to generate a failure
131-
```
132-
~~~
133-
134-
Rustdoc also supplies some extra sugar for helping with some tedious
135-
documentation examples. If a line is prefixed with a `#` character, then the
136-
line will not show up in the HTML documentation, but it will be used when
137-
testing the code block.
138-
139-
~~~
140-
```rust
141-
# // showing 'fib' in this documentation would just be tedious and detracts from
142-
# // what's actualy being documented.
143-
# fn fib(n: int) { n + 2 }
144-
145-
do spawn { fib(200); }
146-
```
147-
~~~
148-
149-
The documentation online would look like `do spawn { fib(200); }`, but when
150-
testing this code, the `fib` function will be included (so it can compile).
151-
152-
## Running tests (advanced)
153-
154-
Running tests often requires some special configuration to filter tests, find
155-
libraries, or try running ignored examples. The testing framework that rustdoc
156-
uses is build on `extra::test`, which is also used when you compile crates with
157-
rustc's `--test` flag. Extra arguments can be passed to rustdoc's test harness
158-
with the `--test-args` flag.
159-
160-
~~~
161-
// Only run tests containing 'foo' in their name
162-
rustdoc --test lib.rs --test-args 'foo'
163-
164-
// See what's possible when running tests
165-
rustdoc --test lib.rs --test-args '--help'
166-
167-
// Run all ignored tests
168-
rustdoc --test lib.rs --test-args '--ignored'
169-
~~~
170-
171-
When testing a library, code examples will often show how functions are used,
172-
and this code often requires `use`-ing paths from the crate. To accomodate this,
173-
rustdoc will implicitly add `extern mod <crate>;` where `<crate>` is the name of
174-
the crate being tested to the top of each code example. This means that rustdoc
175-
must be able to find a compiled version of the library crate being tested. Extra
176-
search paths may be added via the `-L` flag to `rustdoc`.

0 commit comments

Comments
 (0)