Skip to content

Commit 42c377b

Browse files
committed
---
yaml --- r: 275056 b: refs/heads/stable c: d835f5b h: refs/heads/master
1 parent 9f4becb commit 42c377b

File tree

36 files changed

+392
-501
lines changed

36 files changed

+392
-501
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: 54f3f2e302d6e5460e14c7e21c2c1a54291e8a59
32+
refs/heads/stable: d835f5bfd84104477d77cfc47e1f7a8c50ec384d
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

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_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_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)