Skip to content

Commit 836c17a

Browse files
committed
---
yaml --- r: 95350 b: refs/heads/dist-snap c: ed37b00 h: refs/heads/master v: v3
1 parent 481f266 commit 836c17a

Some content is hidden

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

50 files changed

+1493
-1471
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 8b4423b04f519b78e0e9196ae1521531c80c743b
9+
refs/heads/dist-snap: ed37b00b06f14e41740bd296e99b4ece0ce63c84
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/Makefile.in

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ CFG_LIBSYNTAX_$(1) :=$(call CFG_LIB_NAME_$(1),syntax)
222222
CFG_LIBRUSTPKG_$(1) :=$(call CFG_LIB_NAME_$(1),rustpkg)
223223
CFG_LIBRUSTDOC_$(1) :=$(call CFG_LIB_NAME_$(1),rustdoc)
224224
CFG_LIBRUSTI_$(1) :=$(call CFG_LIB_NAME_$(1),rusti)
225-
CFG_LIBRUST_$(1) :=$(call CFG_LIB_NAME_$(1),rust)
226225

227226
EXTRALIB_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),extra)
228227
STDLIB_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),std)
@@ -231,15 +230,13 @@ LIBSYNTAX_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),syntax)
231230
LIBRUSTPKG_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rustpkg)
232231
LIBRUSTDOC_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rustdoc)
233232
LIBRUSTI_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rusti)
234-
LIBRUST_GLOB_$(1) :=$(call CFG_LIB_GLOB_$(1),rust)
235233
EXTRALIB_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),extra)
236234
STDLIB_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),std)
237235
LIBRUSTC_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustc)
238236
LIBSYNTAX_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),syntax)
239237
LIBRUSTPKG_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustpkg)
240238
LIBRUSTDOC_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustdoc)
241239
LIBRUSTI_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rusti)
242-
LIBRUST_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rust)
243240

244241
endef
245242

@@ -447,19 +444,16 @@ CSREQ$(1)_T_$(2)_H_$(3) = \
447444
$$(HBIN$(1)_H_$(3))/rustpkg$$(X_$(3)) \
448445
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) \
449446
$$(HBIN$(1)_H_$(3))/rusti$$(X_$(3)) \
450-
$$(HBIN$(1)_H_$(3))/rust$$(X_$(3)) \
451447
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTPKG_$(3)) \
452448
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTDOC_$(3)) \
453449
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTI_$(3)) \
454-
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUST_$(3)) \
455450
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2)) \
456451
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_EXTRALIB_$(2)) \
457452
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBSYNTAX_$(2)) \
458453
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTC_$(2)) \
459454
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTPKG_$(2)) \
460455
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTDOC_$(2)) \
461456
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTI_$(2)) \
462-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUST_$(2))
463457

464458
ifeq ($(1),0)
465459
# Don't run the the stage0 compiler under valgrind - that ship has sailed

branches/dist-snap/doc/rustpkg.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ and builds it in any workspace(s) where it finds one.
137137
Supposing such packages are found in workspaces X, Y, and Z,
138138
the command leaves behind files in `X`'s, `Y`'s, and `Z`'s `build` directories,
139139
but not in their `lib` or `bin` directories.
140+
(The exception is when rustpkg fetches a package `foo`'s sources from a remote repository.
141+
In that case, it stores both the sources *and* the build artifacts for `foo`
142+
in the workspace that `foo` will install to (see ##install below)).
140143

141144
## clean
142145

@@ -148,7 +151,11 @@ but not in their `lib` or `bin` directories.
148151
If `RUST_PATH` is declared as an environment variable, then rustpkg installs the
149152
libraries and executables into the `lib` and `bin` subdirectories
150153
of the first entry in `RUST_PATH`.
151-
Otherwise, it installs them into `foo`'s `lib` and `bin` directories.
154+
Otherwise, if the current working directory CWD is a workspace,
155+
it installs them into CWD's `lib` and `bin` subdirectories.
156+
Otherwise, if the current working directory is CWD,
157+
it installs them into the .rust/lib and .rust/bin subdirectories of CWD
158+
(creating them if necessary).
152159

153160
## test
154161

branches/dist-snap/doc/tutorial-ffi.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ the true length after compression for setting the length.
135135
~~~~ {.xfail-test}
136136
pub fn compress(src: &[u8]) -> ~[u8] {
137137
#[fixed_stack_segment]; #[inline(never)];
138-
138+
139139
unsafe {
140140
let srclen = src.len() as size_t;
141141
let psrc = vec::raw::to_ptr(src);
@@ -157,7 +157,7 @@ format and `snappy_uncompressed_length` will retrieve the exact buffer size requ
157157
~~~~ {.xfail-test}
158158
pub fn uncompress(src: &[u8]) -> Option<~[u8]> {
159159
#[fixed_stack_segment]; #[inline(never)];
160-
160+
161161
unsafe {
162162
let srclen = src.len() as size_t;
163163
let psrc = vec::raw::to_ptr(src);
@@ -236,7 +236,7 @@ use std::libc::size_t;
236236
unsafe fn snappy_max_compressed_length(source_length: size_t) -> size_t {
237237
#[fixed_stack_segment]; #[inline(never)];
238238
return snappy_max_compressed_length(source_length);
239-
239+
240240
#[link_args = "-lsnappy"]
241241
extern {
242242
fn snappy_max_compressed_length(source_length: size_t) -> size_t;
@@ -259,9 +259,9 @@ check that one of the following conditions holds:
259259
2. The call occurs inside of an `extern fn`;
260260
3. The call occurs within a stack closure created by some other
261261
safe fn.
262-
262+
263263
All of these conditions ensure that you are running on a large stack
264-
segmented. However, they are sometimes too strict. If your application
264+
segment. However, they are sometimes too strict. If your application
265265
will be making many calls into C, it is often beneficial to promote
266266
the `#[fixed_stack_segment]` attribute higher up the call chain. For
267267
example, the Rust compiler actually labels main itself as requiring a
@@ -298,7 +298,7 @@ impl<T: Send> Unique<T> {
298298
pub fn new(value: T) -> Unique<T> {
299299
#[fixed_stack_segment];
300300
#[inline(never)];
301-
301+
302302
unsafe {
303303
let ptr = malloc(std::sys::size_of::<T>() as size_t) as *mut T;
304304
assert!(!ptr::is_null(ptr));
@@ -324,7 +324,7 @@ impl<T: Send> Drop for Unique<T> {
324324
fn drop(&mut self) {
325325
#[fixed_stack_segment];
326326
#[inline(never)];
327-
327+
328328
unsafe {
329329
let x = intrinsics::init(); // dummy value to swap in
330330
// moving the object out is needed to call the destructor

branches/dist-snap/man/rust.1

Lines changed: 0 additions & 111 deletions
This file was deleted.

branches/dist-snap/mk/clean.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,13 @@ clean$(1)_H_$(2):
7777
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_LIBRUSTC_$(2))
7878
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_LIBSYNTAX_$(2))
7979
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_LIBRUSTI_$(2))
80-
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_LIBRUST_$(2))
8180
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(STDLIB_GLOB_$(2))
8281
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(EXTRALIB_GLOB_$(2))
8382
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(LIBRUSTC_GLOB_$(2))
8483
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(LIBSYNTAX_GLOB_$(2))
8584
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(LIBRUSTPKG_GLOB_$(2))
8685
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(LIBRUSTDOC_GLOB_$(2))
8786
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(LIBRUSTI_GLOB_$(2))
88-
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(LIBRUST_GLOB_$(2))
8987
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_RUSTLLVM_$(2))
9088
$(Q)rm -f $$(HLIB$(1)_H_$(2))/libstd.rlib
9189

@@ -112,15 +110,13 @@ clean$(1)_T_$(2)_H_$(3):
112110
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTC_$(2))
113111
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBSYNTAX_$(2))
114112
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTI_$(2))
115-
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUST_$(2))
116113
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(STDLIB_GLOB_$(2))
117114
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(EXTRALIB_GLOB_$(2))
118115
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(LIBRUSTC_GLOB_$(2))
119116
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(LIBSYNTAX_GLOB_$(2))
120117
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(LIBRUSTPKG_GLOB_$(2))
121118
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(LIBRUSTDOC_GLOB_$(2))
122119
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(LIBRUSTI_GLOB_$(2))
123-
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(LIBRUST_GLOB_$(2))
124120
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_RUSTLLVM_$(2))
125121
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/libstd.rlib
126122
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/libmorestack.a

branches/dist-snap/mk/dist.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ PKG_FILES := \
3030
driver \
3131
librustpkg \
3232
librusti \
33-
librust \
3433
librustc \
3534
compiletest \
3635
etc \

branches/dist-snap/mk/install.mk

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ install-target-$(1)-host-$(2): $$(CSREQ$$(ISTAGE)_T_$(1)_H_$(2))
105105
$$(Q)$$(call INSTALL_LIB,$$(LIBRUSTPKG_GLOB_$(1)))
106106
$$(Q)$$(call INSTALL_LIB,$$(LIBRUSTDOC_GLOB_$(1)))
107107
$$(Q)$$(call INSTALL_LIB,$$(LIBRUSTI_GLOB_$(1)))
108-
$$(Q)$$(call INSTALL_LIB,$$(LIBRUST_GLOB_$(1)))
109108
$$(Q)$$(call INSTALL_LIB,libmorestack.a)
110109

111110
endef
@@ -140,18 +139,15 @@ install-host: $(CSREQ$(ISTAGE)_T_$(CFG_BUILD_TRIPLE)_H_$(CFG_BUILD_TRIPLE))
140139
$(Q)$(call INSTALL,$(HB2),$(PHB),rustpkg$(X_$(CFG_BUILD_TRIPLE)))
141140
$(Q)$(call INSTALL,$(HB2),$(PHB),rustdoc$(X_$(CFG_BUILD_TRIPLE)))
142141
$(Q)$(call INSTALL,$(HB2),$(PHB),rusti$(X_$(CFG_BUILD_TRIPLE)))
143-
$(Q)$(call INSTALL,$(HB2),$(PHB),rust$(X_$(CFG_BUILD_TRIPLE)))
144142
$(Q)$(call INSTALL_LIB,$(STDLIB_GLOB_$(CFG_BUILD_TRIPLE)))
145143
$(Q)$(call INSTALL_LIB,$(EXTRALIB_GLOB_$(CFG_BUILD_TRIPLE)))
146144
$(Q)$(call INSTALL_LIB,$(LIBRUSTC_GLOB_$(CFG_BUILD_TRIPLE)))
147145
$(Q)$(call INSTALL_LIB,$(LIBSYNTAX_GLOB_$(CFG_BUILD_TRIPLE)))
148146
$(Q)$(call INSTALL_LIB,$(LIBRUSTI_GLOB_$(CFG_BUILD_TRIPLE)))
149-
$(Q)$(call INSTALL_LIB,$(LIBRUST_GLOB_$(CFG_BUILD_TRIPLE)))
150147
$(Q)$(call INSTALL_LIB,$(LIBRUSTPKG_GLOB_$(CFG_BUILD_TRIPLE)))
151148
$(Q)$(call INSTALL_LIB,$(LIBRUSTDOC_GLOB_$(CFG_BUILD_TRIPLE)))
152149
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUNTIME_$(CFG_BUILD_TRIPLE)))
153150
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUSTLLVM_$(CFG_BUILD_TRIPLE)))
154-
$(Q)$(call INSTALL,$(S)/man, $(PREFIX_ROOT)/share/man/man1,rust.1)
155151
$(Q)$(call INSTALL,$(S)/man, $(PREFIX_ROOT)/share/man/man1,rustc.1)
156152
$(Q)$(call INSTALL,$(S)/man, $(PREFIX_ROOT)/share/man/man1,rustdoc.1)
157153
$(Q)$(call INSTALL,$(S)/man, $(PREFIX_ROOT)/share/man/man1,rusti.1)
@@ -167,7 +163,6 @@ uninstall:
167163
$(Q)rm -f $(PHB)/rustc$(X_$(CFG_BUILD_TRIPLE))
168164
$(Q)rm -f $(PHB)/rustpkg$(X_$(CFG_BUILD_TRIPLE))
169165
$(Q)rm -f $(PHB)/rusti$(X_$(CFG_BUILD_TRIPLE))
170-
$(Q)rm -f $(PHB)/rust$(X_$(CFG_BUILD_TRIPLE))
171166
$(Q)rm -f $(PHB)/rustdoc$(X_$(CFG_BUILD_TRIPLE))
172167
$(Q)rm -f $(PHL)/$(CFG_RUSTLLVM_$(CFG_BUILD_TRIPLE))
173168
$(Q)rm -f $(PHL)/$(CFG_RUNTIME_$(CFG_BUILD_TRIPLE))
@@ -179,12 +174,10 @@ uninstall:
179174
$(call HOST_LIB_FROM_HL_GLOB,$(LIBRUSTPKG_GLOB_$(CFG_BUILD_TRIPLE))) \
180175
$(call HOST_LIB_FROM_HL_GLOB,$(LIBRUSTDOC_GLOB_$(CFG_BUILD_TRIPLE))) \
181176
$(call HOST_LIB_FROM_HL_GLOB,$(LIBRUSTI_GLOB_$(CFG_BUILD_TRIPLE))) \
182-
$(call HOST_LIB_FROM_HL_GLOB,$(LIBRUST_GLOB_$(CFG_BUILD_TRIPLE))) \
183177
; \
184178
do rm -f $$i ; \
185179
done
186180
$(Q)rm -Rf $(PHL)/rustc
187-
$(Q)rm -f $(PREFIX_ROOT)/share/man/man1/rust.1
188181
$(Q)rm -f $(PREFIX_ROOT)/share/man/man1/rustc.1
189182
$(Q)rm -f $(PREFIX_ROOT)/share/man/man1/rustdoc.1
190183
$(Q)rm -f $(PREFIX_ROOT)/share/man/man1/rusti.1

branches/dist-snap/mk/tests.mk

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# The names of crates that must be tested
1717
TEST_TARGET_CRATES = std extra
18-
TEST_HOST_CRATES = rust rusti rustpkg rustc rustdoc syntax
18+
TEST_HOST_CRATES = rusti rustpkg rustc rustdoc syntax
1919
TEST_CRATES = $(TEST_TARGET_CRATES) $(TEST_HOST_CRATES)
2020

2121
# Markdown files under doc/ that should have their code extracted and run
@@ -387,16 +387,6 @@ $(3)/stage$(1)/test/rustitest-$(2)$$(X_$(2)): \
387387
@$$(call E, compile_and_link: $$@)
388388
$$(STAGE$(1)_T_$(2)_H_$(3)) -o $$@ $$< --test
389389

390-
$(3)/stage$(1)/test/rusttest-$(2)$$(X_$(2)): \
391-
$$(RUST_LIB) $$(RUST_INPUTS) \
392-
$$(SREQ$(1)_T_$(2)_H_$(3)) \
393-
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTPKG_$(2)) \
394-
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTDOC_$(2)) \
395-
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTI_$(2)) \
396-
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTC_$(2))
397-
@$$(call E, compile_and_link: $$@)
398-
$$(STAGE$(1)_T_$(2)_H_$(3)) -o $$@ $$< --test
399-
400390
$(3)/stage$(1)/test/rustdoctest-$(2)$$(X_$(2)): \
401391
$$(RUSTDOC_LIB) $$(RUSTDOC_INPUTS) \
402392
$$(SREQ$(1)_T_$(2)_H_$(3)) \

0 commit comments

Comments
 (0)