Skip to content

Commit 709be0f

Browse files
committed
---
yaml --- r: 107245 b: refs/heads/dist-snap c: 55f81bc h: refs/heads/master i: 107243: ffff05d v: v3
1 parent ba6af6a commit 709be0f

File tree

8 files changed

+125
-125
lines changed

8 files changed

+125
-125
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: 520c82e0e971f4107d09ae18670274a278fac382
9+
refs/heads/dist-snap: 55f81bce8372b3278454ab4c72429d745facd16d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustc/driver/session.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub struct options {
145145
llvm_args: ~[~str],
146146
debuginfo: bool,
147147
extra_debuginfo: bool,
148-
lint_opts: ~[(lint::lint, lint::level)],
148+
lint_opts: ~[(lint::Lint, lint::level)],
149149
save_temps: bool,
150150
output_type: back::link::OutputType,
151151
// This is mutable for rustpkg, which updates search paths based on the
@@ -214,7 +214,7 @@ pub struct Session_ {
214214
building_library: Cell<bool>,
215215
working_dir: Path,
216216
lints: RefCell<HashMap<ast::NodeId,
217-
~[(lint::lint, codemap::Span, ~str)]>>,
217+
~[(lint::Lint, codemap::Span, ~str)]>>,
218218
node_id: Cell<ast::NodeId>,
219219
outputs: @RefCell<~[OutputStyle]>,
220220
}
@@ -268,7 +268,7 @@ impl Session_ {
268268
self.span_diagnostic.handler().unimpl(msg)
269269
}
270270
pub fn add_lint(&self,
271-
lint: lint::lint,
271+
lint: lint::Lint,
272272
id: ast::NodeId,
273273
sp: Span,
274274
msg: ~str) {
@@ -443,12 +443,12 @@ pub fn collect_outputs(session: &Session,
443443
Some(n) if "staticlib" == n => Some(OutputStaticlib),
444444
Some(n) if "bin" == n => Some(OutputExecutable),
445445
Some(_) => {
446-
session.add_lint(lint::unknown_crate_type, ast::CRATE_NODE_ID,
446+
session.add_lint(lint::UnknownCrateType, ast::CRATE_NODE_ID,
447447
a.span, ~"invalid `crate_type` value");
448448
None
449449
}
450450
_ => {
451-
session.add_lint(lint::unknown_crate_type, ast::CRATE_NODE_ID,
451+
session.add_lint(lint::UnknownCrateType, ast::CRATE_NODE_ID,
452452
a.span, ~"`crate_type` requires a value");
453453
None
454454
}

branches/dist-snap/src/librustc/front/feature_gate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ pub fn check_crate(sess: Session, crate: &ast::Crate) {
233233
directive not necessary");
234234
}
235235
None => {
236-
sess.add_lint(lint::unknown_features,
236+
sess.add_lint(lint::UnknownFeatures,
237237
ast::CRATE_NODE_ID,
238238
mi.span,
239239
~"unknown feature");

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use middle::ty;
1616
use middle::typeck;
1717
use middle::privacy;
18-
use middle::lint::dead_code;
18+
use middle::lint::DeadCode;
1919

2020
use std::hashmap::HashSet;
2121
use syntax::ast;
@@ -328,7 +328,7 @@ impl DeadVisitor {
328328

329329
fn warn_dead_code(&mut self, id: ast::NodeId,
330330
span: codemap::Span, ident: &ast::Ident) {
331-
self.tcx.sess.add_lint(dead_code, id, span,
331+
self.tcx.sess.add_lint(DeadCode, id, span,
332332
format!("code is never used: `{}`",
333333
token::ident_to_str(ident)));
334334
}

0 commit comments

Comments
 (0)