Skip to content

Rollup #19785

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

Merged
merged 38 commits into from
Dec 15, 2014
Merged

Rollup #19785

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
a9fdd16
Fix po4a conf file
steveklabnik Dec 10, 2014
6780031
Fix inappropriate ## headings
steveklabnik Dec 10, 2014
3c9d898
Fix up some {ignore} and {notrust}s
steveklabnik Dec 10, 2014
7676d01
Update intro.md
sethpollack Dec 11, 2014
f473aee
gdb < RUST_BACKTRACE
steveklabnik Dec 11, 2014
38d2909
reference: type definition -> type alias
steveklabnik Dec 11, 2014
3cb10ef
Remove mentions of sundown.
steveklabnik Dec 11, 2014
47b071a
Add doctests for `iter` and `into_iter` for BTreeSet.
jbranchaud Dec 12, 2014
25223c8
rustdoc: Properly inline const items
tomjakubowski Dec 12, 2014
0c60115
gedit language spec: add new-style Unicode escapes
SimonSapin Dec 12, 2014
3cc730e
Add Ord impl to raw pointers
mpdn Dec 12, 2014
cd3bdeb
Remove feature gate directives for `if_let`, `while_let`, and `tuple_…
csouth3 Dec 12, 2014
0a015f2
Update vim syntax highlighting for ExactSizeIterator
csouth3 Dec 12, 2014
a28d16a
libc::c_char is not necessarily i8
akosthekiss Dec 12, 2014
31f75ac
metadata: Encode attributes for const items
tomjakubowski Dec 13, 2014
58125e5
Add a doctest for BTreeSet::new.
jbranchaud Dec 13, 2014
d333a91
vim: Support the new \u{1234} unicode escapes
lilyball Dec 13, 2014
3fc6dc9
Expansion should explicitly include enum
frewsxcv Dec 13, 2014
1567c94
Fix a typo in ownership guide, aquire to acquire.
jbranchaud Dec 13, 2014
34dfa7a
rollup merge of #19709: steveklabnik/po4a_fix
brson Dec 14, 2014
6c4a2bc
rollup merge of #19710: steveklabnik/gh15449
brson Dec 14, 2014
42f4d63
rollup merge of #19714: steveklabnik/gh16219
brson Dec 14, 2014
36f7f1e
rollup merge of #19735: sethpollack/patch-1
brson Dec 14, 2014
cb21198
rollup merge of #19738: steveklabnik/gh19717
brson Dec 14, 2014
8404ea6
rollup merge of #19746: steveklabnik/gh9266
brson Dec 14, 2014
1f349f6
rollup merge of #19754: steveklabnik/remove_sundown
brson Dec 14, 2014
e717362
rollup merge of #19763: csouth3/remove-featuregates
brson Dec 14, 2014
7afee3a
rollup merge of #19771: jbranchaud/add-btreeset-iter-doctests
brson Dec 14, 2014
3673486
rollup merge of #19774: tomjakubowski/rustdoc-consts-statics
brson Dec 14, 2014
5691c0f
rollup merge of #19775: SimonSapin/gedit-new-unicode-escape
brson Dec 14, 2014
e8e8677
rollup merge of #19779: Noctune/master
brson Dec 14, 2014
0b214bf
rollup merge of #19784: csouth3/vim-syntax-iter
brson Dec 14, 2014
53982b6
rollup merge of #19787: akiss77/fix-i8-c_char
brson Dec 14, 2014
77d2a11
rollup merge of #19793: tomjakubowski/metadata-const-attrs
brson Dec 14, 2014
74fde5e
rollup merge of #19802: jbranchaud/add-btreeset-new-doctest
brson Dec 14, 2014
e52efe2
rollup merge of #19804: kballard/vim-new-unicode-escapes
brson Dec 14, 2014
f0bf34d
rollup merge of #19812: frewsxcv/expansion-include-enum
brson Dec 14, 2014
1cb7e9f
rollup merge of #19814: jbranchaud/fix-a-typo-in-ownership-guide
brson Dec 14, 2014
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
3 changes: 1 addition & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -988,8 +988,7 @@ do
make_dir $t/rt/jemalloc
for i in \
isaac sync test \
arch/i386 arch/x86_64 arch/arm arch/mips \
sundown/src sundown/html
arch/i386 arch/x86_64 arch/arm arch/mips
do
make_dir $t/rt/stage$s/$i
done
Expand Down
3 changes: 1 addition & 2 deletions mk/ctags.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
.PHONY: TAGS.emacs TAGS.vi

# This is using a blacklist approach, probably more durable than a whitelist.
# We exclude: external dependencies (llvm, rt/{msvc,sundown,vg}),
# We exclude: external dependencies (llvm, rt/{msvc,vg}),
# tests (compiletest, test) and a couple of other things (rt/arch, etc)
CTAGS_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/llvm,, \
$(patsubst ${CFG_SRC_DIR}src/compiletest,, \
Expand All @@ -25,7 +25,6 @@ CTAGS_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/llvm,, \
$(patsubst ${CFG_SRC_DIR}src/rt,, \
$(patsubst ${CFG_SRC_DIR}src/rt/arch,, \
$(patsubst ${CFG_SRC_DIR}src/rt/msvc,, \
$(patsubst ${CFG_SRC_DIR}src/rt/sundown,, \
$(patsubst ${CFG_SRC_DIR}src/rt/vg,, \
$(wildcard ${CFG_SRC_DIR}src/*) $(wildcard ${CFG_SRC_DIR}src/rt/*) \
)))))))))
Expand Down
11 changes: 8 additions & 3 deletions src/doc/complement-bugreport.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ It's also helpful to provide the exact version and host by copying the output of
re-running the erroneous rustc command with the `--version=verbose` flag, which will
produce something like this:

```{ignore}
```text
rustc 0.12.0 (ba4081a5a 2014-10-07 13:44:41 -0700)
binary: rustc
commit-hash: ba4081a5a8573875fed17545846f6f6902c8ba8d
Expand All @@ -46,8 +46,13 @@ host: i686-apple-darwin
release: 0.12.0
```

Finally, if you can run the offending command under gdb, pasting a stack trace can be
useful; to do so, you will need to set a breakpoint on `rust_panic`.
Finally, if you can also provide a backtrace, that'd be great. You can get a
backtrace by setting the `RUST_BACKTRACE` environment variable to `1`, like
this:

```bash
$ RUST_BACKTRACE=1 rustc ...
```

# I submitted a bug, but nobody has commented on it!

Expand Down
2 changes: 1 addition & 1 deletion src/doc/guide-crates.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ fn main() {

Rust will give us a compile-time error:

```{notrust}
```text
Compiling phrases v0.0.1 (file:///home/you/projects/phrases)
/home/you/projects/phrases/src/main.rs:4:5: 4:40 error: a value named `hello` has already been imported in this module
/home/you/projects/phrases/src/main.rs:4 use phrases::japanese::greetings::hello;
Expand Down
4 changes: 2 additions & 2 deletions src/doc/guide-error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn main() {

This will give us an error:

```{notrust}
```text
error: non-exhaustive patterns: `_` not covered [E0004]
```

Expand Down Expand Up @@ -189,7 +189,7 @@ panic!("boom");

gives

```{notrust}
```text
task '<main>' panicked at 'boom', hello.rs:2
```

Expand Down
6 changes: 3 additions & 3 deletions src/doc/guide-ownership.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ fn add_one(mut num: Box<int>) {

This does not compile, and gives us an error:

```{notrust}
```text
error: use of moved value: `x`
println!("{}", x);
^
Expand Down Expand Up @@ -208,7 +208,7 @@ the function is over, and `num` goes out of scope, the borrow is over.
Lending out a reference to a resource that someone else owns can be
complicated, however. For example, imagine this set of operations:

1. I aquire a handle to some kind of resource.
1. I acquire a handle to some kind of resource.
2. I lend you a reference to the resource.
3. I decide I'm done with the resource, and deallocate it, while you still have
your reference.
Expand Down Expand Up @@ -406,7 +406,7 @@ fn main() {
We try to make four `Wheel`s, each with a `Car` that it's attached to. But the
compiler knows that on the second iteration of the loop, there's a problem:

```{notrust}
```text
error: use of moved value: `car`
Wheel { size: 360, owner: car };
^~~
Expand Down
16 changes: 8 additions & 8 deletions src/doc/guide-pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ println!("{}", x + z);

This gives us an error:

```{notrust}
```text
hello.rs:6:24: 6:25 error: mismatched types: expected `int` but found `&int` (expected int but found &-ptr)
hello.rs:6 println!("{}", x + z);
^
Expand Down Expand Up @@ -132,7 +132,7 @@ Pointers are useful in languages that are pass-by-value, rather than
pass-by-reference. Basically, languages can make two choices (this is made
up syntax, it's not Rust):

```{ignore}
```text
func foo(x) {
x = 5
}
Expand All @@ -152,7 +152,7 @@ and therefore, can change its value. At the comment, `i` will be `5`.
So what do pointers have to do with this? Well, since pointers point to a
location in memory...

```{ignore}
```text
func foo(&int x) {
*x = 5
}
Expand Down Expand Up @@ -191,7 +191,7 @@ knows. This might be harmless, and it might be catastrophic.
When you combine pointers and functions, it's easy to accidentally invalidate
the memory the pointer is pointing to. For example:

```{ignore}
```text
func make_pointer(): &int {
x = 5;

Expand All @@ -213,7 +213,7 @@ As one last example of a big problem with pointers, **aliasing** can be an
issue. Two pointers are said to alias when they point at the same location
in memory. Like this:

```{ignore}
```text
func mutate(&int i, int j) {
*i = j;
}
Expand Down Expand Up @@ -398,7 +398,7 @@ fn main() {

It gives this error:

```{notrust}
```text
test.rs:5:8: 5:10 error: cannot assign to `*x` because it is borrowed
test.rs:5 *x -= 1;
^~
Expand Down Expand Up @@ -522,7 +522,7 @@ boxes, though. As a rough approximation, you can treat this Rust code:

As being similar to this C code:

```{ignore}
```c
{
int *x;
x = (int *)malloc(sizeof(int));
Expand Down Expand Up @@ -626,7 +626,7 @@ fn main() {

This prints:

```{ignore}
```text
Cons(1, box Cons(2, box Cons(3, box Nil)))
```

Expand Down
Loading