Skip to content

Commit 6a896a7

Browse files
committed
---
yaml --- r: 236591 b: refs/heads/tmp c: c099cfa h: refs/heads/master i: 236589: 6a3ba8f 236587: cb545c0 236583: 71e60d7 236575: d6ae95b v: v3
1 parent 19e5b56 commit 6a896a7

File tree

96 files changed

+631
-529
lines changed

Some content is hidden

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

96 files changed

+631
-529
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: d2e13e822a73e0ea46ae9e21afdd3155fc997f6d
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: e266651a3dad368085be32d8f26305c225f131f6
28+
refs/heads/tmp: c099cfab061e8464141a1cf85c2bd09536a311d0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/configure

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,12 @@ $ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake
12951295
putvar CFG_MSVC_LIB_PATH_${bits}
12961296
;;
12971297

1298+
*-rumprun-netbsd)
1299+
step_msg "targeting rumprun-netbsd, disabling jemalloc"
1300+
CFG_DISABLE_JEMALLOC=1
1301+
putvar CFG_DISABLE_JEMALLOC
1302+
;;
1303+
12981304
*)
12991305
;;
13001306
esac
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# x86_64-rumprun-netbsd configuration
2+
CROSS_PREFIX_x86_64-rumprun-netbsd=x86_64-rumprun-netbsd-
3+
CC_x86_64-rumprun-netbsd=gcc
4+
CXX_x86_64-rumprun-netbsd=g++
5+
CPP_x86_64-rumprun-netbsd=gcc -E
6+
AR_x86_64-rumprun-netbsd=ar
7+
CFG_INSTALL_ONLY_RLIB_x86_64-rumprun-netbsd = 1
8+
CFG_LIB_NAME_x86_64-rumprun-netbsd=lib$(1).so
9+
CFG_STATIC_LIB_NAME_x86_64-rumprun-netbsd=lib$(1).a
10+
CFG_LIB_GLOB_x86_64-rumprun-netbsd=lib$(1)-*.so
11+
CFG_JEMALLOC_CFLAGS_x86_64-rumprun-netbsd := -m64
12+
CFG_GCCISH_CFLAGS_x86_64-rumprun-netbsd := -Wall -Werror -g -fPIC -m64
13+
CFG_GCCISH_CXXFLAGS_x86_64-rumprun-netbsd :=
14+
CFG_GCCISH_LINK_FLAGS_x86_64-rumprun-netbsd :=
15+
CFG_GCCISH_DEF_FLAG_x86_64-rumprun-netbsd :=
16+
CFG_LLC_FLAGS_x86_64-rumprun-netbsd :=
17+
CFG_INSTALL_NAME_x86_64-rumprun-netbsd =
18+
CFG_EXE_SUFFIX_x86_64-rumprun-netbsd =
19+
CFG_WINDOWSY_x86_64-rumprun-netbsd :=
20+
CFG_UNIXY_x86_64-rumprun-netbsd := 1
21+
CFG_LDPATH_x86_64-rumprun-netbsd :=
22+
CFG_RUN_x86_64-rumprun-netbsd=$(2)
23+
CFG_RUN_TARG_x86_64-rumprun-netbsd=$(call CFG_RUN_x86_64-rumprun-netbsd,,$(2))
24+
CFG_GNU_TRIPLE_x86_64-rumprun-netbsd := x86_64-rumprun-netbsd

branches/tmp/src/compiletest/compiletest.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ fn extract_gdb_version(full_version_line: Option<String>) -> Option<String> {
348348
if !full_version_line.trim().is_empty() => {
349349
let full_version_line = full_version_line.trim();
350350

351-
// used to be a regex "(^|[^0-9])([0-9]\.[0-9]+)"
351+
// used to be a regex "(^|[^0-9])([0-9]\.[0-9])([^0-9]|$)"
352352
for (pos, c) in full_version_line.char_indices() {
353353
if !c.is_digit(10) { continue }
354354
if pos + 2 >= full_version_line.len() { continue }
@@ -357,12 +357,11 @@ fn extract_gdb_version(full_version_line: Option<String>) -> Option<String> {
357357
if pos > 0 && full_version_line.char_at_reverse(pos).is_digit(10) {
358358
continue
359359
}
360-
let mut end = pos + 3;
361-
while end < full_version_line.len() &&
362-
full_version_line.char_at(end).is_digit(10) {
363-
end += 1;
360+
if pos + 3 < full_version_line.len() &&
361+
full_version_line.char_at(pos + 3).is_digit(10) {
362+
continue
364363
}
365-
return Some(full_version_line[pos..end].to_owned());
364+
return Some(full_version_line[pos..pos+3].to_owned());
366365
}
367366
println!("Could not extract GDB version from line '{}'",
368367
full_version_line);

branches/tmp/src/grammar/verify.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use syntax::parse::lexer::TokenAndSpan;
3535

3636
fn parse_token_list(file: &str) -> HashMap<String, token::Token> {
3737
fn id() -> token::Token {
38-
token::Ident(ast::Ident::with_empty_ctxt(Name(0))), token::Plain)
38+
token::Ident(ast::Ident { name: Name(0), ctxt: 0, }, token::Plain)
3939
}
4040

4141
let mut res = HashMap::new();
@@ -75,7 +75,7 @@ fn parse_token_list(file: &str) -> HashMap<String, token::Token> {
7575
"RPAREN" => token::CloseDelim(token::Paren),
7676
"SLASH" => token::BinOp(token::Slash),
7777
"COMMA" => token::Comma,
78-
"LIFETIME" => token::Lifetime(ast::Ident::with_empty_ctxt(Name(0))),
78+
"LIFETIME" => token::Lifetime(ast::Ident { name: Name(0), ctxt: 0 }),
7979
"CARET" => token::BinOp(token::Caret),
8080
"TILDE" => token::Tilde,
8181
"IDENT" => id(),
@@ -208,9 +208,9 @@ fn parse_antlr_token(s: &str, tokens: &HashMap<String, token::Token>, surrogate_
208208
token::Literal(token::ByteStr(..), n) => token::Literal(token::ByteStr(nm), n),
209209
token::Literal(token::ByteStrRaw(..), n) => token::Literal(token::ByteStrRaw(fix(content),
210210
count(content)), n),
211-
token::Ident(..) => token::Ident(ast::Ident::with_empty_ctxt(nm)),
211+
token::Ident(..) => token::Ident(ast::Ident { name: nm, ctxt: 0 },
212212
token::ModName),
213-
token::Lifetime(..) => token::Lifetime(ast::Ident::with_empty_ctxt(nm)),
213+
token::Lifetime(..) => token::Lifetime(ast::Ident { name: nm, ctxt: 0 }),
214214
ref t => t.clone()
215215
};
216216

branches/tmp/src/liblibc/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
html_playground_url = "https://play.rust-lang.org/",
2525
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/")]
2626
#![cfg_attr(test, feature(test))]
27+
#![feature(cfg_target_vendor)]
2728

2829
//! Bindings for the C standard library and other platform libraries
2930
//!
@@ -143,7 +144,10 @@ pub use funcs::bsd43::*;
143144

144145
// On NaCl, these libraries are static. Thus it would be a Bad Idea to link them
145146
// in when creating a test crate.
146-
#[cfg(not(any(windows, target_env = "musl", all(target_os = "nacl", test))))]
147+
#[cfg(not(any(windows,
148+
target_env = "musl",
149+
all(target_os = "nacl", test),
150+
all(target_os = "netbsd", target_vendor = "rumprun"))))]
147151
#[link(name = "c")]
148152
#[link(name = "m")]
149153
extern {}

branches/tmp/src/librustc/metadata/creader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ impl<'a> CrateReader<'a> {
482482
let span = mk_sp(lo, p.last_span.hi);
483483
p.abort_if_errors();
484484
macros.push(ast::MacroDef {
485-
ident: ast::Ident::with_empty_ctxt(name),
485+
ident: name.ident(),
486486
attrs: attrs,
487487
id: ast::DUMMY_NODE_ID,
488488
span: span,

branches/tmp/src/librustc/metadata/encoder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,9 @@ fn encode_info_for_mod(ecx: &EncodeContext,
520520
});
521521

522522
if let hir::ItemImpl(..) = item.node {
523-
let (name, did) = (item.name, item.id);
523+
let (ident, did) = (item.name, item.id);
524524
debug!("(encoding info for module) ... encoding impl {} ({}/{})",
525-
name,
525+
ident,
526526
did, ecx.tcx.map.node_to_string(did));
527527

528528
rbml_w.wr_tagged_u64(tag_mod_impl, def_to_u64(DefId::local(did)));

branches/tmp/src/librustc/metadata/tydecode.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ impl<'a,'tcx> TyDecoder<'a,'tcx> {
184184
}
185185
'[' => {
186186
let def = self.parse_def(RegionParameter);
187-
let name = token::intern(&self.parse_str(']'));
188-
ty::BrNamed(def, name)
187+
let ident = token::str_to_ident(&self.parse_str(']'));
188+
ty::BrNamed(def, ident.name)
189189
}
190190
'f' => {
191191
let id = self.parse_u32();
@@ -219,12 +219,12 @@ impl<'a,'tcx> TyDecoder<'a,'tcx> {
219219
assert_eq!(self.next(), '|');
220220
let index = self.parse_u32();
221221
assert_eq!(self.next(), '|');
222-
let name = token::intern(&self.parse_str(']'));
222+
let nm = token::str_to_ident(&self.parse_str(']'));
223223
ty::ReEarlyBound(ty::EarlyBoundRegion {
224224
param_id: node_id,
225225
space: space,
226226
index: index,
227-
name: name
227+
name: nm.name
228228
})
229229
}
230230
'f' => {
@@ -598,7 +598,7 @@ impl<'a,'tcx> TyDecoder<'a,'tcx> {
598598
ty::ProjectionPredicate {
599599
projection_ty: ty::ProjectionTy {
600600
trait_ref: self.parse_trait_ref(),
601-
item_name: token::intern(&self.parse_str('|')),
601+
item_name: token::str_to_ident(&self.parse_str('|')).name,
602602
},
603603
ty: self.parse_ty(),
604604
}

branches/tmp/src/librustc/middle/cfg/construct.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,15 +284,15 @@ impl<'a, 'tcx> CFGBuilder<'a, 'tcx> {
284284
}
285285

286286
hir::ExprBreak(label) => {
287-
let loop_scope = self.find_scope(expr, label.map(|l| l.node.name));
287+
let loop_scope = self.find_scope(expr, label.map(|l| l.node));
288288
let b = self.add_ast_node(expr.id, &[pred]);
289289
self.add_exiting_edge(expr, b,
290290
loop_scope, loop_scope.break_index);
291291
self.add_unreachable_node()
292292
}
293293

294294
hir::ExprAgain(label) => {
295-
let loop_scope = self.find_scope(expr, label.map(|l| l.node.name));
295+
let loop_scope = self.find_scope(expr, label.map(|l| l.node));
296296
let a = self.add_ast_node(expr.id, &[pred]);
297297
self.add_exiting_edge(expr, a,
298298
loop_scope, loop_scope.continue_index);
@@ -585,7 +585,7 @@ impl<'a, 'tcx> CFGBuilder<'a, 'tcx> {
585585

586586
fn find_scope(&self,
587587
expr: &hir::Expr,
588-
label: Option<ast::Name>) -> LoopScope {
588+
label: Option<ast::Ident>) -> LoopScope {
589589
if label.is_none() {
590590
return *self.loop_scopes.last().unwrap();
591591
}

0 commit comments

Comments
 (0)