Skip to content

Commit e7d1adf

Browse files
committed
---
yaml --- r: 148207 b: refs/heads/try2 c: 29e82c6 h: refs/heads/master i: 148205: 6e14ab8 148203: 7fcdae4 148199: 944c05e 148191: c0c18b7 v: v3
1 parent 920e924 commit e7d1adf

File tree

540 files changed

+14370
-26632
lines changed

Some content is hidden

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

540 files changed

+14370
-26632
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 6bbd2ed98e2332d4ba7164b7c35b9b67e0257ab3
8+
refs/heads/try2: 29e82c65b47130fb431aaca0b33935ecfcd09d85
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,4 @@ src/etc/dl
9595
build/
9696
i686-pc-mingw32/
9797
src/librustc/lib/llvmdeps.rs
98+
*.pot

branches/try2/.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[submodule "src/llvm"]
22
path = src/llvm
3-
url = https://github.com/luqmana/llvm.git
3+
url = https://github.com/rust-lang/llvm.git
44
branch = master
55
[submodule "src/libuv"]
66
path = src/libuv
7-
url = https://github.com/alexcrichton/libuv.git
7+
url = https://github.com/rust-lang/libuv.git
88
branch = master
99
[submodule "src/gyp"]
1010
path = src/gyp
11-
url = https://github.com/alexcrichton/gyp.git
11+
url = https://github.com/rust-lang/gyp.git

branches/try2/AUTHORS.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ Lindsey Kuper <[email protected]>
225225
Luca Bruno <[email protected]>
226226
Luis de Bethencourt <[email protected]>
227227
Luqman Aden <[email protected]>
228+
228229
Magnus Auvinen <[email protected]>
229230
Mahmut Bulut <[email protected]>
230231
maikklein <[email protected]>
@@ -240,6 +241,7 @@ Martin DeMello <[email protected]>
240241
Marvin Löbel <[email protected]>
241242
Matt Brubeck <[email protected]>
242243
Matt Carberry <[email protected]>
244+
Matthew Auld <[email protected]>
243245
Matthew Iselin <[email protected]>
244246
Matthew McPherrin <[email protected]>
245247
Matthew O'Connor <[email protected]>

branches/try2/COPYRIGHT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terms.
66

77
Longer version:
88

9-
The Rust Project is copyright 2013, The Rust Project
9+
The Rust Project is copyright 2014, The Rust Project
1010
Developers (given in the file AUTHORS.txt).
1111

1212
Licensed under the Apache License, Version 2.0

branches/try2/LICENSE-MIT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Copyright (c) 2006-2009 Graydon Hoare
2-
Copyright (c) 2009-2013 Mozilla Foundation
2+
Copyright (c) 2009-2014 Mozilla Foundation
33

44
Permission is hereby granted, free of charge, to any
55
person obtaining a copy of this software and associated

branches/try2/Makefile.in

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# stageN - this is the system root, corresponding to, e.g. /usr
3434
# bin - binaries compiled for the host
3535
# lib - libraries used by the host compiler
36-
# rustc - rustc's own place to organize libraries
36+
# rustlib - rustc's own place to organize libraries
3737
# $(target) - target-specific artifacts
3838
# bin - binaries for target architectures
3939
# lib - libraries for target architectures
@@ -410,11 +410,14 @@ export CFG_SRC_DIR
410410
export CFG_BUILD_DIR
411411
export CFG_VERSION
412412
export CFG_VERSION_WIN
413+
export CFG_RELEASE
413414
export CFG_BUILD
414415
export CFG_LLVM_ROOT
415416
export CFG_ENABLE_MINGW_CROSS
416417
export CFG_PREFIX
417418
export CFG_LIBDIR
419+
export CFG_RUSTLIBDIR
420+
export LIBDIR_RELATIVE
418421

419422
######################################################################
420423
# Subprograms
@@ -432,12 +435,12 @@ define SREQ
432435
# Destinations of artifacts for the host compiler
433436
HROOT$(1)_H_$(3) = $(3)/stage$(1)
434437
HBIN$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/bin
435-
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(CFG_LIBDIR)
438+
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(LIBDIR_RELATIVE)
436439

437440
# Destinations of artifacts for target architectures
438-
TROOT$(1)_T_$(2)_H_$(3) = $$(HLIB$(1)_H_$(3))/rustc/$(2)
441+
TROOT$(1)_T_$(2)_H_$(3) = $$(HLIB$(1)_H_$(3))/$$(CFG_RUSTLIBDIR)/$(2)
439442
TBIN$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/bin
440-
TLIB$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/$$(CFG_LIBDIR)
443+
TLIB$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/lib
441444

442445
# The name of the standard and extra libraries used by rustc
443446
HSTDLIB_DEFAULT$(1)_H_$(3) = \

branches/try2/RELEASES.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Version 0.9 (January 2014)
22
--------------------------
33

4-
* ~1600 changes, numerous bugfixes
4+
* ~1800 changes, numerous bugfixes
55

66
* Language
77
* The `float` type has been removed. Use `f32` or `f64` instead.
@@ -22,6 +22,9 @@ Version 0.9 (January 2014)
2222
* `@fn`s have been removed.
2323
* `do` only works with procs in order to make it obvious what the cost
2424
of `do` is.
25+
* Single-element tuple-like structs can no longer be dereferenced to
26+
obtain the inner value. A more comprehensive solution for overloading
27+
the dereference operator will be provided in the future.
2528
* The `#[link(...)]` attribute has been replaced with
2629
`#[crate_id = "name#vers"]`.
2730
* Empty `impl`s must be terminated with empty braces and may not be
@@ -32,6 +35,8 @@ Version 0.9 (January 2014)
3235
* `printf!` and `printfln!` (old-style formatting) removed in favor of
3336
`print!` and `println!`.
3437
* `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
38+
* The `extern mod foo (name = "bar")` syntax has been removed. Use
39+
`extern mod foo = "bar"` instead.
3540
* New reserved keywords: `alignof`, `offsetof`, `sizeof`.
3641
* Macros can have attributes.
3742
* Macros can expand to items with attributes.
@@ -76,6 +81,7 @@ Version 0.9 (January 2014)
7681
variables. Currently behind the `thread_local` feature gate.
7782
* The `return` keyword may be used in closures.
7883
* Types that can be copied via a memcpy implement the `Pod` kind.
84+
* The `cfg` attribute can now be used on struct fields and enum variants.
7985

8086
* Libraries
8187
* std: The `option` and `result` API's have been overhauled to make them
@@ -90,9 +96,14 @@ Version 0.9 (January 2014)
9096
* std: The reference counted pointer type `extra::rc` moved into std.
9197
* std: The `Gc` type in the `gc` module will replace `@` (it is currently
9298
just a wrapper around it).
99+
* std: The `Either` type has been removed.
93100
* std: `fmt::Default` can be implemented for any type to provide default
94101
formatting to the `format!` macro, as in `format!("{}", myfoo)`.
95102
* std: The `rand` API continues to be tweaked.
103+
* std: The `rust_begin_unwind` function, useful for insterting breakpoints
104+
on failure in gdb, is now named `rust_fail`.
105+
* std: The `each_key` and `each_value` methods on `HashMap` have been
106+
replaced by the `keys` and `values` iterators.
96107
* std: Functions dealing with type size and alignment have moved from the
97108
`sys` module to the `mem` module.
98109
* std: The `path` module was written and API changed.

branches/try2/configure

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,18 @@ valopt sysconfdir "/etc" "install system configuration files"
397397
valopt datadir "${CFG_PREFIX}/share" "install data"
398398
valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
399399
valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
400-
valopt libdir "${CFG_PREFIX}/lib" "install libraries"
400+
401+
# On windows we just store the libraries in the bin directory because
402+
# there's no rpath
403+
# FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
404+
LIBDIR_RELATIVE=lib
405+
if [ "$CFG_OSTYPE" = "pc-mingw32" ]
406+
then
407+
LIBDIR_RELATIVE=bin
408+
fi
409+
410+
valopt libdir "${CFG_PREFIX}/${LIBDIR_RELATIVE}" "install libraries"
411+
valopt rustlibdir "rustlib" "subdirectory name for rustc's libraries"
401412

402413
# Validate Options
403414
step_msg "validating $CFG_SELF args"
@@ -559,10 +570,10 @@ then
559570
step_msg "on OS X 10.9, forcing use of clang"
560571
CFG_ENABLE_CLANG=1
561572
putvar CFG_ENABLE_CLANG
562-
else
563-
# on OS X, with xcode 5 and newer, certain developers may have
573+
else
574+
# on OS X, with xcode 5 and newer, certain developers may have
564575
# cc, gcc and g++ point to a mixture of clang and gcc
565-
# if so, this will create very strange build errors
576+
# if so, this will create very strange build errors
566577
# this last stanza is to detect some such problems and save the future rust
567578
# contributor some time solving that issue.
568579
# this detection could be generalized to other OSes aside from OS X
@@ -575,8 +586,8 @@ then
575586
# note that for xcode 5, g++ points to clang, not clang++
576587
if !((chk_cc gcc clang && chk_cc g++ clang) ||
577588
(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.
589+
err "the gcc and g++ in your path point to different compilers.
590+
Check which versions are in your path with cc --version and g++ --version.
580591
To resolve this problem, either fix your PATH or run configure with --enable-clang"
581592
fi
582593

@@ -750,15 +761,6 @@ do
750761
done
751762
done
752763

753-
# On windows we just store the libraries in the bin directory because
754-
# there's no rpath
755-
# FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
756-
CFG_LIBDIR=lib
757-
if [ "$CFG_OSTYPE" = "pc-mingw32" ]
758-
then
759-
CFG_LIBDIR=bin
760-
fi
761-
762764
for h in $CFG_HOST
763765
do
764766
for t in $CFG_TARGET
@@ -769,16 +771,16 @@ do
769771
make_dir $h/stage$i/bin
770772

771773
# host lib dir
772-
make_dir $h/stage$i/$CFG_LIBDIR
774+
make_dir $h/stage$i/$LIBDIR_RELATIVE
773775

774776
# host test dir
775777
make_dir $h/stage$i/test
776778

777779
# target bin dir
778-
make_dir $h/stage$i/$CFG_LIBDIR/rustc/$t/bin
780+
make_dir $h/stage$i/$LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/bin
779781

780782
# target lib dir
781-
make_dir $h/stage$i/$CFG_LIBDIR/rustc/$t/$CFG_LIBDIR
783+
make_dir $h/stage$i/$LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/lib
782784
done
783785
done
784786

@@ -792,12 +794,14 @@ do
792794
make_dir $h/test/debug-info
793795
make_dir $h/test/codegen
794796
make_dir $h/test/doc-tutorial
795-
make_dir $h/test/doc-tutorial-ffi
796-
make_dir $h/test/doc-tutorial-macros
797-
make_dir $h/test/doc-tutorial-borrowed-ptr
798-
make_dir $h/test/doc-tutorial-container
799-
make_dir $h/test/doc-tutorial-tasks
800-
make_dir $h/test/doc-tutorial-conditions
797+
make_dir $h/test/doc-guide-ffi
798+
make_dir $h/test/doc-guide-macros
799+
make_dir $h/test/doc-guide-lifetimes
800+
make_dir $h/test/doc-guide-pointers
801+
make_dir $h/test/doc-guide-container
802+
make_dir $h/test/doc-guide-tasks
803+
make_dir $h/test/doc-guide-conditions
804+
make_dir $h/test/doc-complement-cheatsheet
801805
make_dir $h/test/doc-rust
802806
done
803807

@@ -1031,6 +1035,8 @@ putvar CFG_HOST
10311035
putvar CFG_TARGET
10321036
putvar CFG_C_COMPILER
10331037
putvar CFG_LIBDIR
1038+
putvar CFG_RUSTLIBDIR
1039+
putvar LIBDIR_RELATIVE
10341040
putvar CFG_DISABLE_MANAGE_SUBMODULES
10351041
putvar CFG_ANDROID_CROSS_PATH
10361042
putvar CFG_MINGW32_CROSS_PATH
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
% HOWTO submit a RUST bug report
2+
3+
# I think I found a bug in the compiler!
4+
5+
If you see this message: ''error: internal compiler error: unexpected failure'',
6+
then you have definitely found a bug in the compiler. It's also possible that
7+
your code is not well-typed, but if you saw this message, it's still a bug in
8+
error reporting.
9+
10+
If you see a message about an LLVM assertion failure, then you have also
11+
definitely found a bug in the compiler. In both of these cases, it's not your
12+
fault and you should report a bug!
13+
14+
If you see a compiler error message that you think is meant for users to see,
15+
but it confuses you, *that's a bug too*. If it wasn't clear to you, then it's
16+
an error message we want to improve, so please report it so that we can try
17+
to make it better.
18+
19+
# I don't want to waste the Rust devs' time! How do I know the bug I found isn't a bug that already exists in the issue tracker?
20+
21+
If you don't have much time, then don't worry about that. Just submit the bug.
22+
If it's a duplicate, somebody will notice that and close it. No one will laugh
23+
at you, we promise (and if someone did, they would be violating the Rust
24+
[code of conduct](https://github.com/mozilla/rust/wiki/Note-development-policy code of conduct)).
25+
26+
If you have more time, it's very helpful if you can type the text of the error
27+
message you got [into the issue tracker search box](https://github.com/mozilla/rust/issues)
28+
to see if there's an existing bug that resembles your problem. If there is,
29+
and it's an open bug, you can comment on that issue and say you ran into it too.
30+
This will encourage devs to fix it. But again, don't let this stop you from
31+
submitting a bug. We'd rather have to do the work of closing duplicates than
32+
miss out on valid bug reports.
33+
34+
# What information should I include in a bug report?
35+
36+
It's helpful to include your specific OS (for example: Mac OS X 10.8.3,
37+
Windows 7, Ubuntu 12.0.4) and your hardware architecture (for example: i686, x86_64).
38+
It's also helpful to copy/paste the output of re-running the erroneous rustc
39+
commmand with the `-v` flag. Finally, if you can run the offending command under gdb,
40+
pasting a stack trace can be useful; to do so, you will need to set a breakpoint on `rust_begin_unwind`.
41+
42+
# I submitted a bug, but nobody has commented on it! I'm sad.
43+
44+
This is sad, but does happen sometimes, since we're short-staffed. If you
45+
submit a bug and you haven't received a comment on it within 3 business days,
46+
it's entirely reasonable to either ask on the #rust IRC channel,
47+
or post on the [rust-dev mailing list](https://mail.mozilla.org/listinfo/rust-dev)
48+
to ask what the status of the bug is.

0 commit comments

Comments
 (0)