Skip to content
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

Rollup of 15 pull requests #42212

Merged
merged 37 commits into from
May 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
770bd57
Add `'static` and `Send` constraints explanations to `thread::spawn`
May 13, 2017
a256630
Add an option to the parser to avoid parsing out of line modules
nrc May 17, 2017
9ad0dba
remove "much" from unicode diagnostic
euclio May 20, 2017
f166bd9
Make RangeInclusive just a two-field struct
scottmcm Apr 24, 2017
7eaca60
Return a correct size_hint for degenerate inclusive ranges
scottmcm May 21, 2017
66237af
Fix building without backtrace feature, which was broken in ca8b754
ids1024 May 21, 2017
f4147e5
Implement requires_synchronized_create() for Redox
ids1024 May 21, 2017
0b85b64
libstd/sync/mpsc: relicense under rust license
dvyukov May 22, 2017
14b767d
Add example of recursive drop to Drop trait.
Havvy May 22, 2017
ca909c8
Add example of variable declaration drop order to Drop trait.
Havvy May 22, 2017
d7927ff
Add description of how values are dropped to Drop trait.
Havvy May 22, 2017
5f4b0ff
Fix trailing whitespace.
Havvy May 22, 2017
b41b294
Suggested changes by birkenfeld
Havvy May 23, 2017
e860655
Remove some needless // gate-test- comments
est31 May 23, 2017
2aa6700
bootstrap: Actually respect verbosity setting in config.toml
devurandom May 24, 2017
604f716
bootstrap: Make bootstrap verbose if requested
devurandom May 24, 2017
cd86a9b
bootstrap: Use common run() function to call cargo
devurandom May 24, 2017
5558c64
Change error count messages
citizen428 May 22, 2017
f6d935b
fix broken link to nomicon in Unsize docs
SamWhited May 24, 2017
55c3f0b
Add missing urls for OsStr docs
GuillaumeGomez May 24, 2017
e0f11b4
Update Cargo submodule
alexcrichton May 24, 2017
47f8b4a
Hack around abysmally slow llvm clones
aidanhs May 25, 2017
f4780a3
Rollup merge of #41980 - gamazeps:thread-send, r=steveklabnik
Mark-Simulacrum May 25, 2017
43d81a8
Rollup merge of #42071 - nrc:parse-mods, r=nikomatsakis
Mark-Simulacrum May 25, 2017
989c8e8
Rollup merge of #42120 - euclio:unicode, r=arielb1
Mark-Simulacrum May 25, 2017
00c87a6
Rollup merge of #42134 - scottmcm:rangeinclusive-struct, r=aturon
Mark-Simulacrum May 25, 2017
8bac98a
Rollup merge of #42141 - ids1024:nobacktrace, r=aturon
Mark-Simulacrum May 25, 2017
81b8e09
Rollup merge of #42142 - ids1024:redox, r=aturon
Mark-Simulacrum May 25, 2017
73d4b19
Rollup merge of #42149 - dvyukov:license, r=brson
Mark-Simulacrum May 25, 2017
d64dddb
Rollup merge of #42150 - citizen428:feature/error-count-messages, r=M…
Mark-Simulacrum May 25, 2017
ca0860d
Rollup merge of #42159 - Havvy:doc-drop, r=steveklabnik
Mark-Simulacrum May 25, 2017
8430271
Rollup merge of #42177 - est31:master, r=Mark-Simulacrum
Mark-Simulacrum May 25, 2017
96328fc
Rollup merge of #42186 - devurandom:fix/bootstrap-verbose, r=alexcric…
Mark-Simulacrum May 25, 2017
793fd41
Rollup merge of #42191 - alexcrichton:update-cargo, r=Mark-Simulacrum
Mark-Simulacrum May 25, 2017
a78a0db
Rollup merge of #42195 - SamWhited:fix_broken_link, r=steveklabnik
Mark-Simulacrum May 25, 2017
2bca4fa
Rollup merge of #42198 - GuillaumeGomez:os-str-doc, r=QuietMisdreavus
Mark-Simulacrum May 25, 2017
d429b49
Rollup merge of #42211 - aidanhs:aphs-llvm-clone-hacks, r=Mark-Simula…
Mark-Simulacrum May 25, 2017
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
29 changes: 0 additions & 29 deletions src/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 21 additions & 18 deletions src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ def unpack(tarball, dst, verbose=False, match=None):
shutil.move(tp, fp)
shutil.rmtree(os.path.join(dst, fname))

def run(args, verbose=False, exception=False, cwd=None):
def run(args, verbose=False, exception=False, cwd=None, env=None):
if verbose:
print("running: " + ' '.join(args))
sys.stdout.flush()
# Use Popen here instead of call() as it apparently allows powershell on
# Windows to not lock up waiting for input presumably.
ret = subprocess.Popen(args, cwd=cwd)
ret = subprocess.Popen(args, cwd=cwd, env=env)
code = ret.wait()
if code != 0:
err = "failed to run: " + ' '.join(args)
Expand Down Expand Up @@ -385,17 +385,15 @@ def build_bootstrap(self):
raise Exception("no cargo executable found at `%s`" % self.cargo())
args = [self.cargo(), "build", "--manifest-path",
os.path.join(self.rust_root, "src/bootstrap/Cargo.toml")]
if self.verbose:
args.append("--verbose")
if self.verbose > 1:
args.append("--verbose")
if self.use_locked_deps:
args.append("--locked")
if self.use_vendored_sources:
args.append("--frozen")
self.run(args, env)

def run(self, args, env=None, cwd=None):
proc = subprocess.Popen(args, env=env, cwd=cwd)
ret = proc.wait()
if ret != 0:
sys.exit(ret)
run(args, env=env, verbose=self.verbose)

def output(self, args, env=None, cwd=None):
default_encoding = sys.getdefaultencoding()
Expand Down Expand Up @@ -567,7 +565,7 @@ def update_submodules(self):
path = line[1:].split(' ')[1]
submodules.append([path, line[0]])

self.run(["git", "submodule", "sync"], cwd=self.rust_root)
run(["git", "submodule", "sync"], cwd=self.rust_root)

for submod in submodules:
path, status = submod
Expand All @@ -580,15 +578,15 @@ def update_submodules(self):
submod_path = os.path.join(self.rust_root, path)

if status == ' ':
self.run(["git", "reset", "--hard"], cwd=submod_path)
self.run(["git", "clean", "-fdx"], cwd=submod_path)
run(["git", "reset", "--hard"], cwd=submod_path)
run(["git", "clean", "-fdx"], cwd=submod_path)
elif status == '+':
self.run(["git", "submodule", "update", path], cwd=self.rust_root)
self.run(["git", "reset", "--hard"], cwd=submod_path)
self.run(["git", "clean", "-fdx"], cwd=submod_path)
run(["git", "submodule", "update", path], cwd=self.rust_root)
run(["git", "reset", "--hard"], cwd=submod_path)
run(["git", "clean", "-fdx"], cwd=submod_path)
elif status == '-':
self.run(["git", "submodule", "init", path], cwd=self.rust_root)
self.run(["git", "submodule", "update", path], cwd=self.rust_root)
run(["git", "submodule", "init", path], cwd=self.rust_root)
run(["git", "submodule", "update", path], cwd=self.rust_root)
else:
raise ValueError('unknown submodule status: ' + status)

Expand Down Expand Up @@ -620,6 +618,11 @@ def bootstrap():
except:
pass

if '\nverbose = 2' in rb.config_toml:
rb.verbose = 2
elif '\nverbose = 1' in rb.config_toml:
rb.verbose = 1

rb.use_vendored_sources = '\nvendor = true' in rb.config_toml or \
'CFG_ENABLE_VENDOR' in rb.config_mk

Expand Down Expand Up @@ -676,7 +679,7 @@ def bootstrap():
env["BUILD"] = rb.build
env["SRC"] = rb.rust_root
env["BOOTSTRAP_PARENT_ID"] = str(os.getpid())
rb.run(args, env)
run(args, env=env, verbose=rb.verbose)

def main():
start_time = time()
Expand Down
10 changes: 10 additions & 0 deletions src/ci/init_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ if [ ! -d "$cache_src_dir/.git" ]; then
git clone https://github.com/rust-lang/rust.git $cache_src_dir"
fi
retry sh -c "cd $cache_src_dir && git reset --hard && git pull"
(cd $cache_src_dir && git rm src/llvm)
retry sh -c "cd $cache_src_dir && \
git submodule deinit -f . && git submodule sync && git submodule update --init"

Expand All @@ -76,6 +77,15 @@ touch "$cache_valid_file"
# http://stackoverflow.com/questions/12641469/list-submodules-in-a-git-repository
modules="$(git config --file .gitmodules --get-regexp '\.path$' | cut -d' ' -f2)"
for module in $modules; do
if [ "$module" = src/llvm ]; then
commit="$(git ls-tree HEAD src/llvm | awk '{print $3}')"
git rm src/llvm
curl -sSL -O "https://github.com/rust-lang/llvm/archive/$commit.tar.gz"
tar -C src/ -xf "$commit.tar.gz"
rm "$commit.tar.gz"
mv "src/llvm-$commit" src/llvm
continue
fi
if [ ! -d "$cache_src_dir/$module" ]; then
echo "WARNING: $module not found in pristine repo"
retry sh -c "git submodule deinit -f $module && git submodule update --init $module"
Expand Down
10 changes: 2 additions & 8 deletions src/libcollections/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,10 @@ impl<T> RangeArgument<T> for Range<T> {
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
impl<T> RangeArgument<T> for RangeInclusive<T> {
fn start(&self) -> Bound<&T> {
match *self {
RangeInclusive::Empty{ ref at } => Included(at),
RangeInclusive::NonEmpty { ref start, .. } => Included(start),
}
Included(&self.start)
}
fn end(&self) -> Bound<&T> {
match *self {
RangeInclusive::Empty{ ref at } => Excluded(at),
RangeInclusive::NonEmpty { ref end, .. } => Included(end),
}
Included(&self.end)
}
}

Expand Down
Loading