Skip to content

Commit 95e77e4

Browse files
committed
---
yaml --- r: 108538 b: refs/heads/dist-snap c: eb5ba4d h: refs/heads/master v: v3
1 parent d23c86e commit 95e77e4

File tree

10 files changed

+82
-15
lines changed

10 files changed

+82
-15
lines changed

[refs]

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

branches/dist-snap/.travis.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Use something that's not 'ruby' so we don't set up things like
2+
# RVM/bundler/ruby and whatnot. Right now 'rust' isn't a language on travis and
3+
# it treats unknown languages as ruby-like I believe.
4+
language: c
5+
6+
# Before we start doing anything, install the latest stock LLVM. These are
7+
# maintained by LLVM, and more information can be found at llvm.org/apt.
8+
#
9+
# Right now, the highest version is 3.5, and our SVN version is roughly aligned
10+
# with the 3.5 API (hurray!)
11+
install:
12+
- sudo sh -c "echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise main' >> /etc/apt/sources.list"
13+
- sudo sh -c "echo 'deb-src http://llvm.org/apt/precise/ llvm-toolchain-precise main' >> /etc/apt/sources.list"
14+
- sudo sh -c "echo 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main' >> /etc/apt/sources.list"
15+
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
16+
- sudo apt-get update -qq
17+
- sudo apt-get install -y --force-yes -qq llvm-3.5 llvm-3.5-dev clang-3.5 lldb-3.5
18+
19+
# All of the llvm tools are suffixed with "-3.5" which we don't want, so symlink
20+
# them all into a local directory and just use that
21+
#
22+
# FIXME: this shouldn't update the src/llvm sub-repo, that takes about a minute
23+
# it's gotta download so much stuff.
24+
before_script:
25+
- mkdir -p local-llvm/bin
26+
- ln -nsf /usr/bin/llvm-config-3.5 local-llvm/bin/llvm-config
27+
- ln -nsf /usr/bin/llvm-mc-3.5 local-llvm/bin/llvm-mc
28+
- ln -nsf /usr/bin/llvm-as-3.5 local-llvm/bin/llvm-as
29+
- ln -nsf /usr/bin/llvm-dis-3.5 local-llvm/bin/llvm-dis
30+
- ln -nsf /usr/bin/llc-3.5 local-llvm/bin/llc
31+
- ln -nsf /usr/include/llvm-3.5 local-llvm/include
32+
- ./configure --disable-optimize-tests --llvm-root=`pwd`/local-llvm --enable-fast-make --enable-clang
33+
34+
# Tidy everything up first, then build a few things, and then run a few tests.
35+
# Note that this is meant to run in a "fairly small" amount of time, so this
36+
# isn't exhaustive at all.
37+
#
38+
# The "-lffi and -lncurses" are required for LLVM. The LLVM that rust builds
39+
# manually disables bringing in these two libraries, but the stock LLVM was
40+
# apparently built with these options. We provide these options when building so
41+
# the `rustc` binary can successfully link.
42+
script:
43+
- make tidy
44+
- RUSTFLAGS="-C link-args='-lffi -lncurses'" make -j4 rustc-stage1
45+
- make check-stage1-std check-stage1-rpass check-stage1-cfail check-stage1-rfail
46+
47+
env:
48+
- NO_BENCH=1
49+
50+
# We track this ourselves, and in theory we don't have to update the LLVM repo
51+
# (but sadly we do right now anyway).
52+
git:
53+
submodules: false

branches/dist-snap/configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ then
604604
LLVM_VERSION=$($LLVM_CONFIG --version)
605605

606606
case $LLVM_VERSION in
607-
(3.[2-4]svn|3.[2-4])
607+
(3.[2-5]svn|3.[2-5])
608608
msg "found ok version of LLVM: $LLVM_VERSION"
609609
;;
610610
(*)
@@ -626,7 +626,7 @@ then
626626
| cut -d ' ' -f 2)
627627

628628
case $CFG_CLANG_VERSION in
629-
(3.0svn | 3.0 | 3.1* | 3.2* | 3.3* | 3.4* )
629+
(3.0svn | 3.0 | 3.1* | 3.2* | 3.3* | 3.4* | 3.5* )
630630
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
631631
CFG_C_COMPILER="clang"
632632
;;

branches/dist-snap/mk/main.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,12 @@ LLVM_TOOLS=bugpoint llc llvm-ar llvm-as llvm-dis llvm-mc opt llvm-extract
218218
define DEF_LLVM_VARS
219219
# The configure script defines these variables with the target triples
220220
# separated by Z. This defines new ones with the expected format.
221+
ifeq ($$(CFG_LLVM_ROOT),)
221222
CFG_LLVM_BUILD_DIR_$(1):=$$(CFG_LLVM_BUILD_DIR_$(subst -,_,$(1)))
222223
CFG_LLVM_INST_DIR_$(1):=$$(CFG_LLVM_INST_DIR_$(subst -,_,$(1)))
224+
else
225+
CFG_LLVM_INST_DIR_$(1):=$$(CFG_LLVM_ROOT)
226+
endif
223227

224228
# Any rules that depend on LLVM should depend on LLVM_CONFIG
225229
LLVM_CONFIG_$(1):=$$(CFG_LLVM_INST_DIR_$(1))/bin/llvm-config$$(X_$(1))

branches/dist-snap/src/librustc/middle/ty.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3691,15 +3691,15 @@ pub fn type_err_to_str(cx: ctxt, err: &type_err) -> ~str {
36913691
}
36923692
}
36933693
terr_integer_as_char => {
3694-
format!("expected an integral type but found char")
3694+
format!("expected an integral type but found `char`")
36953695
}
36963696
terr_int_mismatch(ref values) => {
3697-
format!("expected {} but found {}",
3697+
format!("expected `{}` but found `{}`",
36983698
values.expected.to_str(),
36993699
values.found.to_str())
37003700
}
37013701
terr_float_mismatch(ref values) => {
3702-
format!("expected {} but found {}",
3702+
format!("expected `{}` but found `{}`",
37033703
values.expected.to_str(),
37043704
values.found.to_str())
37053705
}
@@ -3767,13 +3767,13 @@ pub fn provided_trait_methods(cx: ctxt, id: ast::DefId) -> ~[@Method] {
37673767
}
37683768
_ => {
37693769
cx.sess.bug(format!("provided_trait_methods: \
3770-
{:?} is not a trait",
3770+
`{:?}` is not a trait",
37713771
id))
37723772
}
37733773
}
37743774
}
37753775
_ => {
3776-
cx.sess.bug(format!("provided_trait_methods: {:?} is not \
3776+
cx.sess.bug(format!("provided_trait_methods: `{:?}` is not \
37773777
a trait",
37783778
id))
37793779
}

branches/dist-snap/src/librustc/middle/typeck/collect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ pub fn instantiate_trait_ref(ccx: &CrateCtxt,
768768
_ => {
769769
ccx.tcx.sess.span_fatal(
770770
ast_trait_ref.path.span,
771-
format!("{} is not a trait",
771+
format!("`{}` is not a trait",
772772
path_to_str(&ast_trait_ref.path)));
773773
}
774774
}

branches/dist-snap/src/librustdoc/html/static/main.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,13 @@
114114
function initSearch(searchIndex) {
115115
var currentResults, index, params = getQueryStringParams();
116116

117-
// Populate search bar with query string search term when provided.
118-
$(".search-input")[0].value = params.search || '';
117+
// Populate search bar with query string search term when provided,
118+
// but only if the input bar is empty. This avoid the obnoxious issue
119+
// where you start trying to do a search, and the index loads, and
120+
// suddenly your search is gone!
121+
if ($(".search-input")[0].value === "") {
122+
$(".search-input")[0].value = params.search || '';
123+
}
119124

120125
/**
121126
* Executes the query and builds an index of results
@@ -574,8 +579,12 @@
574579
// When browsing forward to search results the previous search will be repeated,
575580
// so the currentResults are cleared to ensure the search is successful.
576581
currentResults = null;
577-
// Synchronize search bar with query string state and perform the search.
578-
$('.search-input').val(params.search);
582+
// Synchronize search bar with query string state and
583+
// perform the search, but don't empty the bar if there's
584+
// nothing there.
585+
if params.search !== undefined {
586+
$('.search-input').val(params.search);
587+
}
579588
// Some browsers fire 'onpopstate' for every page load (Chrome), while others fire the
580589
// event only when actually popping a state (Firefox), which is why search() is called
581590
// both here and at the end of the startSearch() function.

branches/dist-snap/src/test/compile-fail/gated-phase.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:macro_crate_test.rs
12+
// ignore-stage1
1213

1314
#[phase(syntax)]
1415
//~^ ERROR compile time crate loading is experimental and possibly buggy

branches/dist-snap/src/test/compile-fail/issue-2330.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ trait channel<T> {
1515
}
1616

1717
// `chan` is not a trait, it's an enum
18-
impl chan for int { //~ ERROR chan is not a trait
18+
impl chan for int { //~ ERROR `chan` is not a trait
1919
fn send(&self, v: int) { fail!() }
2020
}
2121

branches/dist-snap/src/test/compile-fail/issue-3907.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct S {
1717
name: int
1818
}
1919

20-
impl Foo for S { //~ ERROR: Foo is not a trait
20+
impl Foo for S { //~ ERROR: `Foo` is not a trait
2121
fn bar() { }
2222
}
2323

0 commit comments

Comments
 (0)