Skip to content

Commit 797ff40

Browse files
author
Keegan McAllister
committed
---
yaml --- r: 118952 b: refs/heads/master c: b5542f7 h: refs/heads/master v: v3
1 parent 20f6bd7 commit 797ff40

File tree

12 files changed

+127
-127
lines changed

12 files changed

+127
-127
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 21e7b936d3a669b62e9cb8c6b2cf2c2eb0a5986c
2+
refs/heads/master: b5542f7f5b1eb11430960687f69b5766857efaa0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 71fe44def9676d519f5ce5d7304e581a42cf2c70
55
refs/heads/try: 1813e5aa1a03b0596b8de7abd1af31edf5d6098f

trunk/src/librustc/driver/driver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,15 +786,15 @@ pub fn collect_crate_types(session: &Session,
786786
}
787787
Some(ref n) if n.equiv(&("bin")) => Some(config::CrateTypeExecutable),
788788
Some(_) => {
789-
session.add_lint(lint::builtin::unknown_crate_type,
789+
session.add_lint(lint::builtin::UNKNOWN_CRATE_TYPE,
790790
ast::CRATE_NODE_ID,
791791
a.span,
792792
"invalid `crate_type` \
793793
value".to_string());
794794
None
795795
}
796796
_ => {
797-
session.add_lint(lint::builtin::unknown_crate_type,
797+
session.add_lint(lint::builtin::UNKNOWN_CRATE_TYPE,
798798
ast::CRATE_NODE_ID,
799799
a.span,
800800
"`crate_type` requires a \

trunk/src/librustc/front/feature_gate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ pub fn check_crate(sess: &Session, krate: &ast::Crate) {
409409
directive not necessary");
410410
}
411411
None => {
412-
sess.add_lint(lint::builtin::unknown_features,
412+
sess.add_lint(lint::builtin::UNKNOWN_FEATURES,
413413
ast::CRATE_NODE_ID,
414414
mi.span,
415415
"unknown feature".to_string());

0 commit comments

Comments
 (0)