Skip to content

Commit 0bb6a94

Browse files
---
yaml --- r: 275065 b: refs/heads/stable c: 761e26b h: refs/heads/master i: 275063: 65b153f
1 parent fbbfa1b commit 0bb6a94

File tree

50 files changed

+1677
-1956
lines changed

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

+1677
-1956
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 0f2675a2e6eb74529d61523834fd124296f8431c
32+
refs/heads/stable: 761e26be680e4ef308a0609a5bcf12e2dabde623
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/.mailmap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Gareth Daniel Smith <garethdanielsmith@gmail.com> Gareth Smith <garethdanielsmit
8282
Georges Dubus <georges.dubus@gmail.com> <georges.dubus@compiletoi.net>
8383
Graham Fawcett <graham.fawcett@gmail.com> Graham Fawcett <fawcett@uwindsor.ca>
8484
Graydon Hoare <graydon@pobox.com> Graydon Hoare <graydon@mozilla.com>
85-
Guillaume Gomez <guillaume1.gomez@gmail.com>
85+
Guillaume Gomez <guillaume1.gomez@gmail.com> Guillaume Gomez <ggomez@ggo.ifr.lan>
8686
Heather <heather@cynede.net> <Cynede@Gentoo.org>
8787
Heather <heather@cynede.net> <Heather@cynede.net>
8888
Herman J. Radtke III <herman@hermanradtke.com> Herman J. Radtke III <hermanradtke@gmail.com>

branches/stable/src/liballoc_jemalloc/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ extern {}
4545
// explicitly request it), and on Android we explicitly request it as
4646
// unprefixing cause segfaults (mismatches in allocators).
4747
extern {
48-
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
48+
#[cfg_attr(any(target_os = "macos", target_os = "android"),
4949
link_name = "je_mallocx")]
5050
fn mallocx(size: size_t, flags: c_int) -> *mut c_void;
51-
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
51+
#[cfg_attr(any(target_os = "macos", target_os = "android"),
5252
link_name = "je_rallocx")]
5353
fn rallocx(ptr: *mut c_void, size: size_t, flags: c_int) -> *mut c_void;
54-
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
54+
#[cfg_attr(any(target_os = "macos", target_os = "android"),
5555
link_name = "je_xallocx")]
5656
fn xallocx(ptr: *mut c_void, size: size_t, extra: size_t, flags: c_int) -> size_t;
57-
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
57+
#[cfg_attr(any(target_os = "macos", target_os = "android"),
5858
link_name = "je_sdallocx")]
5959
fn sdallocx(ptr: *mut c_void, size: size_t, flags: c_int);
60-
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
60+
#[cfg_attr(any(target_os = "macos", target_os = "android"),
6161
link_name = "je_nallocx")]
6262
fn nallocx(size: size_t, flags: c_int) -> size_t;
6363
}

branches/stable/src/libcore/fmt/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@ pub trait Write {
121121
self.0.write_str(s)
122122
}
123123

124-
fn write_char(&mut self, c: char) -> Result {
125-
self.0.write_char(c)
126-
}
127-
128124
fn write_fmt(&mut self, args: Arguments) -> Result {
129125
self.0.write_fmt(args)
130126
}

branches/stable/src/liblibc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 403bdc88394919f297bdb365032044cc0481c319
1+
Subproject commit a64ee24718c0289b82a77d692cf56f8a1226de51

branches/stable/src/librustc/front/map/mod.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -325,17 +325,7 @@ impl<'ast> Map<'ast> {
325325
return DepNode::Krate,
326326

327327
NotPresent =>
328-
// Some nodes, notably struct fields, are not
329-
// present in the map for whatever reason, but
330-
// they *do* have def-ids. So if we encounter an
331-
// empty hole, check for that case.
332-
return self.opt_local_def_id(id)
333-
.map(|def_id| DepNode::Hir(def_id))
334-
.unwrap_or_else(|| {
335-
panic!("Walking parents from `{}` \
336-
led to `NotPresent` at `{}`",
337-
id0, id)
338-
}),
328+
panic!("Walking parents from `{}` led to `NotPresent` at `{}`", id0, id),
339329
}
340330
}
341331
}

branches/stable/src/librustc_back/target/freebsd_base.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,13 @@ pub fn opts() -> TargetOptions {
1616
linker: "cc".to_string(),
1717
dynamic_linking: true,
1818
executables: true,
19-
linker_is_gnu: true,
2019
has_rpath: true,
21-
pre_link_args: vec!(
22-
// GNU-style linkers will use this to omit linking to libraries
23-
// which don't actually fulfill any relocations, but only for
24-
// libraries which follow this flag. Thus, use it before
25-
// specifying libraries to link to.
26-
"-Wl,--as-needed".to_string(),
27-
20+
pre_link_args: vec![
2821
// Always enable NX protection when it is available
2922
"-Wl,-z,noexecstack".to_string(),
30-
),
31-
position_independent_executables: true,
23+
],
3224
exe_allocation_crate: super::maybe_jemalloc(),
25+
3326
.. Default::default()
3427
}
3528
}

branches/stable/src/librustc_data_structures/graph/mod.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl<N:Debug,E:Debug> Graph<N,E> {
115115
// Simple accessors
116116

117117
#[inline]
118-
pub fn all_nodes(&self) -> &[Node<N>] {
118+
pub fn all_nodes<'a>(&'a self) -> &'a [Node<N>] {
119119
&self.nodes
120120
}
121121

@@ -125,7 +125,7 @@ impl<N:Debug,E:Debug> Graph<N,E> {
125125
}
126126

127127
#[inline]
128-
pub fn all_edges(&self) -> &[Edge<E>] {
128+
pub fn all_edges<'a>(&'a self) -> &'a [Edge<E>] {
129129
&self.edges
130130
}
131131

@@ -150,15 +150,15 @@ impl<N:Debug,E:Debug> Graph<N,E> {
150150
idx
151151
}
152152

153-
pub fn mut_node_data(&mut self, idx: NodeIndex) -> &mut N {
153+
pub fn mut_node_data<'a>(&'a mut self, idx: NodeIndex) -> &'a mut N {
154154
&mut self.nodes[idx.0].data
155155
}
156156

157-
pub fn node_data(&self, idx: NodeIndex) -> &N {
157+
pub fn node_data<'a>(&'a self, idx: NodeIndex) -> &'a N {
158158
&self.nodes[idx.0].data
159159
}
160160

161-
pub fn node(&self, idx: NodeIndex) -> &Node<N> {
161+
pub fn node<'a>(&'a self, idx: NodeIndex) -> &'a Node<N> {
162162
&self.nodes[idx.0]
163163
}
164164

@@ -199,15 +199,15 @@ impl<N:Debug,E:Debug> Graph<N,E> {
199199
return idx;
200200
}
201201

202-
pub fn mut_edge_data(&mut self, idx: EdgeIndex) -> &mut E {
202+
pub fn mut_edge_data<'a>(&'a mut self, idx: EdgeIndex) -> &'a mut E {
203203
&mut self.edges[idx.0].data
204204
}
205205

206-
pub fn edge_data(&self, idx: EdgeIndex) -> &E {
206+
pub fn edge_data<'a>(&'a self, idx: EdgeIndex) -> &'a E {
207207
&self.edges[idx.0].data
208208
}
209209

210-
pub fn edge(&self, idx: EdgeIndex) -> &Edge<E> {
210+
pub fn edge<'a>(&'a self, idx: EdgeIndex) -> &'a Edge<E> {
211211
&self.edges[idx.0]
212212
}
213213

@@ -257,11 +257,11 @@ impl<N:Debug,E:Debug> Graph<N,E> {
257257
AdjacentEdges { graph: self, direction: direction, next: first_edge }
258258
}
259259

260-
pub fn successor_nodes(&self, source: NodeIndex) -> AdjacentTargets<N,E> {
260+
pub fn successor_nodes<'a>(&'a self, source: NodeIndex) -> AdjacentTargets<N,E> {
261261
self.outgoing_edges(source).targets()
262262
}
263263

264-
pub fn predecessor_nodes(&self, target: NodeIndex) -> AdjacentSources<N,E> {
264+
pub fn predecessor_nodes<'a>(&'a self, target: NodeIndex) -> AdjacentSources<N,E> {
265265
self.incoming_edges(target).sources()
266266
}
267267

branches/stable/src/librustc_data_structures/snapshot_vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ impl<D:SnapshotVecDelegate> SnapshotVec<D> {
9191
len
9292
}
9393

94-
pub fn get(&self, index: usize) -> &D::Value {
94+
pub fn get<'a>(&'a self, index: usize) -> &'a D::Value {
9595
&self.values[index]
9696
}
9797

9898
/// Returns a mutable pointer into the vec; whatever changes you make here cannot be undone
9999
/// automatically, so you should be sure call `record()` with some sort of suitable undo
100100
/// action.
101-
pub fn get_mut(&mut self, index: usize) -> &mut D::Value {
101+
pub fn get_mut<'a>(&'a mut self, index: usize) -> &'a mut D::Value {
102102
&mut self.values[index]
103103
}
104104

branches/stable/src/librustc_llvm/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,12 @@ impl AttrBuilder {
261261
}
262262
}
263263

264-
pub fn arg<T: AttrHelper + 'static>(&mut self, idx: usize, a: T) -> &mut AttrBuilder {
264+
pub fn arg<'a, T: AttrHelper + 'static>(&'a mut self, idx: usize, a: T) -> &'a mut AttrBuilder {
265265
self.attrs.push((idx, box a as Box<AttrHelper+'static>));
266266
self
267267
}
268268

269-
pub fn ret<T: AttrHelper + 'static>(&mut self, a: T) -> &mut AttrBuilder {
269+
pub fn ret<'a, T: AttrHelper + 'static>(&'a mut self, a: T) -> &'a mut AttrBuilder {
270270
self.attrs.push((ReturnIndex as usize, box a as Box<AttrHelper+'static>));
271271
self
272272
}

branches/stable/src/librustc_mir/mir_map.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extern crate rustc_front;
2222
use build;
2323
use graphviz;
2424
use pretty;
25-
use transform::{simplify_cfg, no_landing_pads};
25+
use transform::simplify_cfg;
2626
use rustc::dep_graph::DepNode;
2727
use rustc::mir::repr::Mir;
2828
use hair::cx::Cx;
@@ -148,7 +148,6 @@ impl<'a, 'm, 'tcx> Visitor<'tcx> for InnerDump<'a,'m,'tcx> {
148148

149149
match build_mir(Cx::new(&infcx), implicit_arg_tys, id, span, decl, body) {
150150
Ok(mut mir) => {
151-
no_landing_pads::NoLandingPads.run_on_mir(&mut mir, self.tcx);
152151
simplify_cfg::SimplifyCfg::new().run_on_mir(&mut mir, self.tcx);
153152

154153
let meta_item_list = self.attr

branches/stable/src/librustc_mir/transform/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@
1010

1111
pub mod simplify_cfg;
1212
pub mod erase_regions;
13-
pub mod no_landing_pads;
1413
mod util;

branches/stable/src/librustc_mir/transform/no_landing_pads.rs

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

branches/stable/src/librustc_privacy/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ let f = Bar::Foo{ a: 0, b: 0 }; // error: field `b` of struct `Bar::Foo`
205205
// is private
206206
```
207207
208-
To fix this error, please ensure that all the fields of the struct are public,
209-
or implement a function for easy instantiation. Examples:
208+
To fix this error, please ensure that all the fields of the struct, or
209+
implement a function for easy instantiation. Examples:
210210
211211
```
212212
mod Bar {

branches/stable/src/librustc_privacy/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ impl<'a, 'tcx> PrivacyVisitor<'a, 'tcx> {
833833
NamedField(name) => format!("field `{}` of {} is private",
834834
name, struct_desc),
835835
UnnamedField(idx) => format!("field #{} of {} is private",
836-
idx, struct_desc),
836+
idx + 1, struct_desc),
837837
};
838838
span_err!(self.tcx.sess, span, E0451,
839839
"{}", &msg[..]);

branches/stable/src/librustc_resolve/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,6 @@ impl<'a> NameBinding<'a> {
10381038

10391039
fn def_and_lp(&self) -> (Def, LastPrivate) {
10401040
let def = self.def().unwrap();
1041-
if let Def::Err = def { return (def, LastMod(AllPublic)) }
10421041
(def, LastMod(if self.is_public() { AllPublic } else { DependsOn(def.def_id()) }))
10431042
}
10441043

@@ -1290,7 +1289,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
12901289
span: Span,
12911290
lp: LastPrivate)
12921291
-> ResolveResult<(Module<'a>, LastPrivate)> {
1293-
fn search_parent_externals(needle: Name, module: Module) -> Option<Module> {
1292+
fn search_parent_externals<'a>(needle: Name, module: Module<'a>) -> Option<Module<'a>> {
12941293
match module.resolve_name(needle, TypeNS, false) {
12951294
Success(binding) if binding.is_extern_crate() => Some(module),
12961295
_ => match module.parent_link {
@@ -3514,10 +3513,10 @@ fn path_names_to_string(path: &Path, depth: usize) -> String {
35143513
}
35153514

35163515
/// A somewhat inefficient routine to obtain the name of a module.
3517-
fn module_to_string(module: Module) -> String {
3516+
fn module_to_string<'a>(module: Module<'a>) -> String {
35183517
let mut names = Vec::new();
35193518

3520-
fn collect_mod(names: &mut Vec<ast::Name>, module: Module) {
3519+
fn collect_mod<'a>(names: &mut Vec<ast::Name>, module: Module<'a>) {
35213520
match module.parent_link {
35223521
NoParentLink => {}
35233522
ModuleParentLink(ref module, name) => {

branches/stable/src/librustc_resolve/resolve_imports.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,6 @@ impl<'a, 'b:'a, 'tcx:'b> ImportResolver<'a, 'b, 'tcx> {
218218
kind: NameBindingKind::Def(Def::Err),
219219
span: None,
220220
});
221-
let dummy_binding =
222-
self.resolver.new_name_binding(e.import_directive.import(dummy_binding));
223221

224222
let _ = e.source_module.try_define_child(target, ValueNS, dummy_binding);
225223
let _ = e.source_module.try_define_child(target, TypeNS, dummy_binding);

branches/stable/src/librustc_trans/trans/common.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -767,10 +767,6 @@ impl<'blk, 'tcx> BlockAndBuilder<'blk, 'tcx> {
767767
{
768768
self.bcx.monomorphize(value)
769769
}
770-
771-
pub fn set_lpad(&self, lpad: Option<LandingPad>) {
772-
self.bcx.lpad.set(lpad.map(|p| &*self.fcx().lpad_arena.alloc(p)))
773-
}
774770
}
775771

776772
impl<'blk, 'tcx> Deref for BlockAndBuilder<'blk, 'tcx> {

0 commit comments

Comments
 (0)