Skip to content

Commit ee7894a

Browse files
committed
---
yaml --- r: 153946 b: refs/heads/try2 c: 3db5cf6 h: refs/heads/master v: v3
1 parent 62cd75a commit ee7894a

File tree

130 files changed

+962
-2860
lines changed

Some content is hidden

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

130 files changed

+962
-2860
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: 2eb3ab19ac488094757319ddf10356bf5c47eee0
8+
refs/heads/try2: 3db5cf6f1da06c4aadc5395e69f81afcd25e7555
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/configure

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,6 @@ case $CFG_OSTYPE in
291291
CFG_OSTYPE=unknown-freebsd
292292
;;
293293

294-
DragonFly)
295-
CFG_OSTYPE=unknown-dragonfly
296-
;;
297-
298294
Darwin)
299295
CFG_OSTYPE=apple-darwin
300296
;;

branches/try2/mk/platform.mk

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -580,33 +580,6 @@ CFG_LDPATH_x86_64-unknown-freebsd :=
580580
CFG_RUN_x86_64-unknown-freebsd=$(2)
581581
CFG_RUN_TARG_x86_64-unknown-freebsd=$(call CFG_RUN_x86_64-unknown-freebsd,,$(2))
582582

583-
# x86_64-pc-dragonfly-elf configuration
584-
CC_x86_64-unknown-dragonfly=$(CC)
585-
CXX_x86_64-unknown-dragonfly=$(CXX)
586-
CPP_x86_64-unknown-dragonfly=$(CPP)
587-
AR_x86_64-unknown-dragonfly=$(AR)
588-
CFG_LIB_NAME_x86_64-unknown-dragonfly=lib$(1).so
589-
CFG_STATIC_LIB_NAME_x86_64-unknown-dragonfly=lib$(1).a
590-
CFG_LIB_GLOB_x86_64-unknown-dragonfly=lib$(1)-*.so
591-
CFG_LIB_DSYM_GLOB_x86_64-unknown-dragonfly=$(1)-*.dylib.dSYM
592-
CFG_CFLAGS_x86_64-unknown-dragonfly := -I/usr/include -I/usr/local/include $(CFLAGS)
593-
CFG_GCCISH_CFLAGS_x86_64-unknown-dragonfly := -Wall -Werror -g -fPIC -I/usr/include -I/usr/local/include $(CFLAGS)
594-
CFG_GCCISH_LINK_FLAGS_x86_64-unknown-dragonfly := -shared -fPIC -g -pthread -lrt
595-
CFG_GCCISH_DEF_FLAG_x86_64-unknown-dragonfly := -Wl,--export-dynamic,--dynamic-list=
596-
CFG_GCCISH_PRE_LIB_FLAGS_x86_64-unknown-dragonfly := -Wl,-whole-archive
597-
CFG_GCCISH_POST_LIB_FLAGS_x86_64-unknown-dragonfly := -Wl,-no-whole-archive
598-
CFG_DEF_SUFFIX_x86_64-unknown-dragonfly := .bsd.def
599-
CFG_LLC_FLAGS_x86_64-unknown-dragonfly :=
600-
CFG_INSTALL_NAME_x86_64-unknown-dragonfly =
601-
CFG_LIBUV_LINK_FLAGS_x86_64-unknown-dragonfly := -pthread -lkvm
602-
CFG_EXE_SUFFIX_x86_64-unknown-dragonfly :=
603-
CFG_WINDOWSY_x86_64-unknown-dragonfly :=
604-
CFG_UNIXY_x86_64-unknown-dragonfly := 1
605-
CFG_PATH_MUNGE_x86_64-unknown-dragonfly :=
606-
CFG_LDPATH_x86_64-unknown-dragonfly :=
607-
CFG_RUN_x86_64-unknown-dragonfly=$(2)
608-
CFG_RUN_TARG_x86_64-unknown-dragonfly=$(call CFG_RUN_x86_64-unknown-dragonfly,,$(2))
609-
610583

611584
# The -Qunused-arguments sidesteps spurious warnings from clang
612585
define FILTER_FLAGS

branches/try2/mk/rt.mk

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,6 @@ else ifeq ($(OSTYPE_$(1)), apple-ios)
171171
JEMALLOC_ARGS_$(1) := --disable-tls
172172
else ifeq ($(OSTYPE_$(1)), unknown-freebsd)
173173
LIBUV_OSTYPE_$(1) := freebsd
174-
else ifeq ($(OSTYPE_$(1)), unknown-dragonfly)
175-
LIBUV_OSTYPE_$(1) := freebsd
176-
# required on DragonFly, otherwise gyp fails with a Python exception
177-
LIBUV_GYP_ARGS_$(1) := --no-parallel
178174
else ifeq ($(OSTYPE_$(1)), linux-androideabi)
179175
LIBUV_OSTYPE_$(1) := android
180176
LIBUV_ARGS_$(1) := PLATFORM=android host=android OS=linux
@@ -206,7 +202,7 @@ $$(LIBUV_MAKEFILE_$(1)): $$(LIBUV_DEPS) $$(MKFILE_DEPS) $$(LIBUV_STAMP_$(1))
206202
$$(CFG_PYTHON) ./gyp_uv.py -f make -Dtarget_arch=$$(LIBUV_ARCH_$(1)) \
207203
-D ninja \
208204
-DOS=$$(LIBUV_OSTYPE_$(1)) \
209-
-Goutput_dir=$$(@D) $$(LIBUV_GYP_ARGS_$(1)) --generator-output $$(@D))
205+
-Goutput_dir=$$(@D) --generator-output $$(@D))
210206
touch $$@
211207

212208
# Windows has a completely different build system for libuv because of mingw. In

branches/try2/src/compiletest/header.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ pub struct TestProps {
3636
pub no_prefer_dynamic: bool,
3737
// Don't run --pretty expanded when running pretty printing tests
3838
pub no_pretty_expanded: bool,
39-
// Which pretty mode are we testing with, default to 'normal'
40-
pub pretty_mode: String,
41-
// Only compare pretty output and don't try compiling
42-
pub pretty_compare_only: bool,
4339
}
4440

4541
// Load any test directives embedded in the file
@@ -55,8 +51,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
5551
let mut check_stdout = false;
5652
let mut no_prefer_dynamic = false;
5753
let mut no_pretty_expanded = false;
58-
let mut pretty_mode = None;
59-
let mut pretty_compare_only = false;
6054
iter_header(testfile, |ln| {
6155
match parse_error_pattern(ln) {
6256
Some(ep) => error_patterns.push(ep),
@@ -91,14 +85,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
9185
no_pretty_expanded = parse_no_pretty_expanded(ln);
9286
}
9387

94-
if pretty_mode.is_none() {
95-
pretty_mode = parse_pretty_mode(ln);
96-
}
97-
98-
if !pretty_compare_only {
99-
pretty_compare_only = parse_pretty_compare_only(ln);
100-
}
101-
10288
match parse_aux_build(ln) {
10389
Some(ab) => { aux_builds.push(ab); }
10490
None => {}
@@ -129,8 +115,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
129115
check_stdout: check_stdout,
130116
no_prefer_dynamic: no_prefer_dynamic,
131117
no_pretty_expanded: no_pretty_expanded,
132-
pretty_mode: pretty_mode.unwrap_or("normal".to_string()),
133-
pretty_compare_only: pretty_compare_only
134118
}
135119
}
136120

@@ -221,14 +205,6 @@ fn parse_no_pretty_expanded(line: &str) -> bool {
221205
parse_name_directive(line, "no-pretty-expanded")
222206
}
223207

224-
fn parse_pretty_mode(line: &str) -> Option<String> {
225-
parse_name_value_directive(line, "pretty-mode")
226-
}
227-
228-
fn parse_pretty_compare_only(line: &str) -> bool {
229-
parse_name_directive(line, "pretty-compare-only")
230-
}
231-
232208
fn parse_exec_env(line: &str) -> Option<(String, String)> {
233209
parse_name_value_directive(line, "exec-env").map(|nv| {
234210
// nv is either FOO or FOO=BAR

branches/try2/src/compiletest/runtest.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ fn run_pretty_test(config: &Config, props: &TestProps, testfile: &Path) {
168168
props,
169169
testfile,
170170
srcs[round].to_string(),
171-
props.pretty_mode.as_slice());
171+
"normal");
172172

173173
if !proc_res.status.success() {
174174
fatal_proc_rec(format!("pretty-printing failed in round {}",
@@ -200,9 +200,6 @@ fn run_pretty_test(config: &Config, props: &TestProps, testfile: &Path) {
200200

201201
compare_source(expected.as_slice(), actual.as_slice());
202202

203-
// If we're only making sure that the output matches then just stop here
204-
if props.pretty_compare_only { return; }
205-
206203
// Finally, let's make sure it actually appears to remain valid code
207204
let proc_res = typecheck_source(config, props, testfile, actual);
208205

@@ -837,7 +834,6 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
837834
#[cfg(target_os = "linux")]
838835
#[cfg(target_os = "macos")]
839836
#[cfg(target_os = "freebsd")]
840-
#[cfg(target_os = "dragonfly")]
841837
fn prefix_matches( line : &str, prefix : &str ) -> bool {
842838
line.starts_with( prefix )
843839
}
@@ -1241,7 +1237,6 @@ fn program_output(config: &Config, testfile: &Path, lib_path: &str, prog: String
12411237
#[cfg(target_os = "linux")]
12421238
#[cfg(target_os = "macos")]
12431239
#[cfg(target_os = "freebsd")]
1244-
#[cfg(target_os = "dragonfly")]
12451240
fn make_cmdline(_libpath: &str, prog: &str, args: &[String]) -> String {
12461241
format!("{} {}", prog, args.connect(" "))
12471242
}

branches/try2/src/compiletest/util.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ static OS_TABLE: &'static [(&'static str, &'static str)] = &[
2121
("android", "android"),
2222
("linux", "linux"),
2323
("freebsd", "freebsd"),
24-
("dragonfly", "dragonfly"),
2524
];
2625

2726
pub fn get_os(triple: &str) -> &'static str {

branches/try2/src/doc/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ as that for which this documentation was generated.*
8484

8585
* [Reddit](http://reddit.com/r/rust)
8686
* [Stack Overflow](http://stackoverflow.com/questions/tagged/rust)
87-
* [Developer Forum](http://discuss.rust-lang.org/)
8887
* The Rust IRC channels on [irc.mozilla.org](http://irc.mozilla.org/):
8988
* [`#rust`](http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust) - general discussion
9089
* [`#rust-gamedev`](http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-gamedev) - game development

branches/try2/src/doc/intro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ int add_one(void)
3636
}
3737
```
3838
39-
**Note: The above C++ code is deliberately simple and non-idiomatic for the purpose
40-
of demonstration. It is not representative of production-quality C++ code.**
39+
**Note: obviously this is very simple and non-idiomatic C++.
40+
You wouldn't write it in practice; it is for illustrative purposes.**
4141
4242
This function allocates an integer on the stack,
4343
and stores it in a variable, `i`.

branches/try2/src/doc/rust.md

Lines changed: 6 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,12 +1950,6 @@ interpreted:
19501950
- `unsafe_no_drop_flag` - on structs, remove the flag that prevents
19511951
destructors from being run twice. Destructors might be run multiple times on
19521952
the same object with this attribute.
1953-
- `phase` - on `extern crate` statements, allows specifying which "phase" of
1954-
compilation the crate should be loaded for. Currently, there are two
1955-
choices: `link` and `plugin`. `link` is the default. `plugin` will load the
1956-
crate at compile-time and use any syntax extensions or lints that the crate
1957-
defines. They can both be specified, `#[phase(link, plugin)]` to use a crate
1958-
both at runtime and compiletime.
19591953

19601954
### Conditional compilation
19611955

@@ -2007,7 +2001,7 @@ The following configurations must be defined by the implementation:
20072001
`"unix"` or `"windows"`. The value of this configuration option is defined as
20082002
a configuration itself, like `unix` or `windows`.
20092003
* `target_os = "..."`. Operating system of the target, examples include
2010-
`"win32"`, `"macos"`, `"linux"`, `"android"`, `"freebsd"` or `"dragonfly"`.
2004+
`"win32"`, `"macos"`, `"linux"`, `"android"` or `"freebsd"`.
20112005
* `target_word_size = "..."`. Target word size in bits. This is set to `"32"`
20122006
for targets with 32-bit pointers, and likewise set to `"64"` for 64-bit
20132007
pointers.
@@ -2401,17 +2395,17 @@ The currently implemented features of the reference compiler are:
24012395
closure as `once` is unlikely to be supported going forward. So
24022396
they are hidden behind this feature until they are to be removed.
24032397

2404-
* `asm` - The `asm!` macro provides a means for inline assembly. This is often
2405-
useful, but the exact syntax for this feature along with its semantics
2406-
are likely to change, so this macro usage must be opted into.
2407-
2408-
* `managed_boxes` - Usage of `@` is gated due to many
2398+
* `managed_boxes` - Usage of `@` pointers is gated due to many
24092399
planned changes to this feature. In the past, this has meant
24102400
"a GC pointer", but the current implementation uses
24112401
reference counting and will likely change drastically over
24122402
time. Additionally, the `@` syntax will no longer be used to
24132403
create GC boxes.
24142404

2405+
* `asm` - The `asm!` macro provides a means for inline assembly. This is often
2406+
useful, but the exact syntax for this feature along with its semantics
2407+
are likely to change, so this macro usage must be opted into.
2408+
24152409
* `non_ascii_idents` - The compiler supports the use of non-ascii identifiers,
24162410
but the implementation is a little rough around the
24172411
edges, so this can be seen as an experimental feature for
@@ -2433,66 +2427,6 @@ The currently implemented features of the reference compiler are:
24332427
if the system linker is not used then specifying custom flags
24342428
doesn't have much meaning.
24352429

2436-
* `phase` - Usage of the `#[phase]` attribute allows loading compiler plugins
2437-
for custom lints or syntax extensions. The implementation is considered
2438-
unwholesome and in need of overhaul, and it is not clear what they
2439-
will look like moving forward.
2440-
2441-
* `plugin_registrar` - Indicates that a crate has compiler plugins that it
2442-
wants to load. As with `phase`, the implementation is
2443-
in need of a overhaul, and it is not clear that plugins
2444-
defined using this will continue to work.
2445-
2446-
* `log_syntax` - Allows use of the `log_syntax` macro attribute, which is a
2447-
nasty hack that will certainly be removed.
2448-
2449-
* `trace_macros` - Allows use of the `trace_macros` macro, which is a nasty
2450-
hack that will certainly be removed.
2451-
2452-
* `concat_idents` - Allows use of the `concat_idents` macro, which is in many
2453-
ways insufficient for concatenating identifiers, and may
2454-
be removed entirely for something more wholsome.
2455-
2456-
* `unsafe_destructor` - Allows use of the `#[unsafe_destructor]` attribute,
2457-
which is considered wildly unsafe and will be
2458-
obsoleted by language improvements.
2459-
2460-
* `intrinsics` - Allows use of the "rust-intrinsics" ABI. Compiler intrinsics
2461-
are inherently unstable and no promise about them is made.
2462-
2463-
* `lang_items` - Allows use of the `#[lang]` attribute. Like `intrinsics`,
2464-
lang items are inherently unstable and no promise about
2465-
them is made.
2466-
2467-
* `simd` - Allows use of the `#[simd]` attribute, which is overly simple and
2468-
not the SIMD interface we want to expose in the long term.
2469-
2470-
* `default_type_params` - Allows use of default type parameters. The future of
2471-
this feature is uncertain.
2472-
2473-
* `quote` - Allows use of the `quote_*!` family of macros, which are
2474-
implemented very poorly and will likely change significantly
2475-
with a proper implementation.
2476-
2477-
* `linkage` - Allows use of the `linkage` attribute, which is not portable.
2478-
2479-
* `struct_inherit` - Allows using struct inheritance, which is barely
2480-
implemented and will probably be removed. Don't use this.
2481-
2482-
* `overloaded_calls` - Allow implementing the `Fn*` family of traits on user
2483-
types, allowing overloading the call operator (`()`).
2484-
This feature may still undergo changes before being
2485-
stabilized.
2486-
2487-
* `unboxed_closure_sugar` - Allows using `|Foo| -> Bar` as a trait bound
2488-
meaning one of the `Fn` traits. Still
2489-
experimental.
2490-
2491-
* `rustc_diagnostic_macros`- A mysterious feature, used in the implementation
2492-
of rustc, not meant for mortals.
2493-
2494-
* `unboxed_closures` - A work in progress feature with many known bugs.
2495-
24962430
If a feature is promoted to a language feature, then all existing programs will
24972431
start to receive compilation warnings about #[feature] directives which enabled
24982432
the new feature (because the directive is no longer necessary). However, if

branches/try2/src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -269,14 +269,6 @@
269269
<match>\\\%{common_escape}</match>
270270
</context>
271271

272-
<context id="raw-string" style-ref="string" class="string" class-disabled="no-spell-check">
273-
<start>r(#*)"</start>
274-
<end>"\%{1@start}</end>
275-
<include>
276-
<context ref="def:line-continue"/>
277-
</include>
278-
</context>
279-
280272
<context id="string" style-ref="string" class="string" class-disabled="no-spell-check">
281273
<start>"</start>
282274
<end>"</end>
@@ -295,8 +287,6 @@
295287
<end>\]</end>
296288
<include>
297289
<context ref="def:in-comment"/>
298-
<context ref="string"/>
299-
<context ref="raw-string"/>
300290
</include>
301291
</context>
302292

@@ -315,7 +305,6 @@
315305
<context ref="number"/>
316306
<context ref="scope"/>
317307
<context ref="string"/>
318-
<context ref="raw-string"/>
319308
<context ref="char"/>
320309
<context ref="lifetime"/>
321310
<context ref="attribute"/>

branches/try2/src/etc/local_stage0.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ LIB_PREFIX=lib
1818

1919
OS=`uname -s`
2020
case $OS in
21-
("Linux"|"FreeBSD"|"DragonFly")
21+
("Linux"|"FreeBSD")
2222
BIN_SUF=
2323
LIB_SUF=.so
2424
break
@@ -58,6 +58,3 @@ cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}extra*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_D
5858
cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}rust*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
5959
cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}std*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
6060
cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}syntax*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
61-
62-
# do not fail if one of the above fails, as all we need is a working rustc!
63-
exit 0

branches/try2/src/etc/mklldeps.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ def run(args):
5656
os = 'linux'
5757
elif 'freebsd' in os:
5858
os = 'freebsd'
59-
elif 'dragonfly' in os:
60-
os = 'dragonfly'
6159
elif 'android' in os:
6260
os = 'android'
6361
elif 'win' in os or 'mingw' in os:

branches/try2/src/liballoc/arc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl<T: Share + Send> Arc<T> {
9292
}
9393

9494
#[inline]
95-
fn inner(&self) -> &ArcInner<T> {
95+
fn inner<'a>(&'a self) -> &'a ArcInner<T> {
9696
// This unsafety is ok because while this arc is alive we're guaranteed
9797
// that the inner pointer is valid. Furthermore, we know that the
9898
// `ArcInner` structure itself is `Share` because the inner data is
@@ -142,7 +142,7 @@ impl<T: Share + Send> Clone for Arc<T> {
142142
#[experimental = "Deref is experimental."]
143143
impl<T: Send + Share> Deref<T> for Arc<T> {
144144
#[inline]
145-
fn deref(&self) -> &T {
145+
fn deref<'a>(&'a self) -> &'a T {
146146
&self.inner().data
147147
}
148148
}
@@ -155,7 +155,7 @@ impl<T: Send + Share + Clone> Arc<T> {
155155
/// data is cloned if the reference count is greater than one.
156156
#[inline]
157157
#[experimental]
158-
pub fn make_unique(&mut self) -> &mut T {
158+
pub fn make_unique<'a>(&'a mut self) -> &'a mut T {
159159
// Note that we hold a strong reference, which also counts as
160160
// a weak reference, so we only clone if there is an
161161
// additional reference of either kind.
@@ -238,7 +238,7 @@ impl<T: Share + Send> Weak<T> {
238238
}
239239

240240
#[inline]
241-
fn inner(&self) -> &ArcInner<T> {
241+
fn inner<'a>(&'a self) -> &'a ArcInner<T> {
242242
// See comments above for why this is "safe"
243243
unsafe { &*self._ptr }
244244
}

0 commit comments

Comments
 (0)