Skip to content

Commit ebc5051

Browse files
committed
---
yaml --- r: 143870 b: refs/heads/try2 c: 3aefb96 h: refs/heads/master v: v3
1 parent 047c448 commit ebc5051

File tree

9 files changed

+20
-17
lines changed

9 files changed

+20
-17
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 96254b4090a86767d1a3b387158464ece44160fa
8+
refs/heads/try2: 3aefb9649d15c16acef4eb465b06b598b3a1f179
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/driver/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ pub fn build_session(sopts: @session::options,
785785
pub fn build_session_(sopts: @session::options,
786786
cm: @codemap::CodeMap,
787787
demitter: diagnostic::Emitter,
788-
span_diagnostic_handler: @diagnostic::span_handler)
788+
span_diagnostic_handler: @mut diagnostic::span_handler)
789789
-> Session {
790790
let target_cfg = build_target_config(sopts, demitter);
791791
let p_s = parse::new_parse_sess_special_handler(span_diagnostic_handler,

branches/try2/src/librustc/driver/session.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ pub struct Session_ {
192192
// For a library crate, this is always none
193193
entry_fn: @mut Option<(NodeId, codemap::span)>,
194194
entry_type: @mut Option<EntryFnType>,
195-
span_diagnostic: @diagnostic::span_handler,
195+
span_diagnostic: @mut diagnostic::span_handler,
196196
filesearch: @filesearch::FileSearch,
197197
building_library: @mut bool,
198198
working_dir: Path,
@@ -261,7 +261,7 @@ impl Session_ {
261261
pub fn next_node_id(@self) -> ast::NodeId {
262262
return syntax::parse::next_node_id(self.parse_sess);
263263
}
264-
pub fn diagnostic(@self) -> @diagnostic::span_handler {
264+
pub fn diagnostic(@self) -> @mut diagnostic::span_handler {
265265
self.span_diagnostic
266266
}
267267
pub fn debugging_opt(@self, opt: uint) -> bool {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use syntax::oldvisit;
2929

3030
// Traverses an AST, reading all the information about use'd crates and extern
3131
// libraries necessary for later resolving, typechecking, linking, etc.
32-
pub fn read_crates(diag: @span_handler,
32+
pub fn read_crates(diag: @mut span_handler,
3333
crate: &ast::Crate,
3434
cstore: @mut cstore::CStore,
3535
filesearch: @FileSearch,
@@ -74,7 +74,7 @@ fn dump_crates(crate_cache: &[cache_entry]) {
7474
}
7575

7676
fn warn_if_multiple_versions(e: @mut Env,
77-
diag: @span_handler,
77+
diag: @mut span_handler,
7878
crate_cache: &[cache_entry]) {
7979
use std::either::*;
8080

@@ -113,7 +113,7 @@ fn warn_if_multiple_versions(e: @mut Env,
113113
}
114114

115115
struct Env {
116-
diag: @span_handler,
116+
diag: @mut span_handler,
117117
filesearch: @FileSearch,
118118
cstore: @mut cstore::CStore,
119119
os: loader::os,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub type encode_inlined_item<'self> = &'self fn(ecx: &EncodeContext,
5555
ii: ast::inlined_item);
5656

5757
pub struct EncodeParams<'self> {
58-
diag: @span_handler,
58+
diag: @mut span_handler,
5959
tcx: ty::ctxt,
6060
reexports2: middle::resolve::ExportMap2,
6161
item_symbols: &'self HashMap<ast::NodeId, ~str>,
@@ -82,7 +82,7 @@ struct Stats {
8282
}
8383

8484
pub struct EncodeContext<'self> {
85-
diag: @span_handler,
85+
diag: @mut span_handler,
8686
tcx: ty::ctxt,
8787
stats: @mut Stats,
8888
reexports2: middle::resolve::ExportMap2,

branches/try2/src/librustc/metadata/loader.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub enum os {
4343
}
4444

4545
pub struct Context {
46-
diag: @span_handler,
46+
diag: @mut span_handler,
4747
filesearch: @FileSearch,
4848
span: span,
4949
ident: @str,
@@ -163,7 +163,7 @@ pub fn package_id_from_metas(metas: &[@ast::MetaItem]) -> Option<@str> {
163163
}
164164

165165
pub fn note_linkage_attrs(intr: @ident_interner,
166-
diag: @span_handler,
166+
diag: @mut span_handler,
167167
attrs: ~[ast::Attribute]) {
168168
let r = attr::find_linkage_metas(attrs);
169169
for mi in r.iter() {

branches/try2/src/librustc/metadata/tyencode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use syntax::diagnostic::span_handler;
2525
use syntax::print::pprust::*;
2626

2727
pub struct ctxt {
28-
diag: @span_handler,
28+
diag: @mut span_handler,
2929
// Def -> str Callback:
3030
ds: @fn(def_id) -> ~str,
3131
// The type context.

branches/try2/src/librustc/middle/lint.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ enum AnyVisitor {
301301
// recursive call can use the original visitor's method, although the
302302
// recursing visitor supplied to the method is the item stopping visitor.
303303
OldVisitor(oldvisit::vt<@mut Context>, oldvisit::vt<@mut Context>),
304-
NewVisitor(@visit::Visitor<()>),
304+
NewVisitor(@mut visit::Visitor<()>),
305305
}
306306

307307
struct Context {
@@ -465,7 +465,7 @@ impl Context {
465465
self.visitors.push(OldVisitor(v, item_stopping_visitor(v)));
466466
}
467467

468-
fn add_lint(&mut self, v: @visit::Visitor<()>) {
468+
fn add_lint(&mut self, v: @mut visit::Visitor<()>) {
469469
self.visitors.push(NewVisitor(v));
470470
}
471471

@@ -989,7 +989,7 @@ fn lint_unused_mut() -> oldvisit::vt<@mut Context> {
989989
})
990990
}
991991

992-
fn lint_session(cx: @mut Context) -> @visit::Visitor<()> {
992+
fn lint_session(cx: @mut Context) -> @mut visit::Visitor<()> {
993993
ast_util::id_visitor(|id| {
994994
match cx.tcx.sess.lints.pop(&id) {
995995
None => {},

branches/try2/src/librustc/middle/ty.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,16 @@ pub enum AutoRef {
226226
AutoBorrowFn(Region),
227227

228228
/// Convert from T to *T
229-
AutoUnsafe(ast::mutability)
229+
AutoUnsafe(ast::mutability),
230+
231+
/// Convert from @Trait/~Trait/&Trait to &Trait
232+
AutoBorrowObj(Region, ast::mutability),
230233
}
231234

232235
pub type ctxt = @ctxt_;
233236

234237
struct ctxt_ {
235-
diag: @syntax::diagnostic::span_handler,
238+
diag: @mut syntax::diagnostic::span_handler,
236239
interner: @mut HashMap<intern_key, ~t_box_>,
237240
next_id: @mut uint,
238241
cstore: @mut metadata::cstore::CStore,

0 commit comments

Comments
 (0)