Skip to content

Commit 7bbdf29

Browse files
committed
lint: Don't warn about non-camel case impl names
Impls are always named __extensions__ so this warning is bogus
1 parent a0e3a2a commit 7bbdf29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustc/middle/lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ fn check_item_non_camel_case_types(cx: ty::ctxt, it: @ast::item) {
479479

480480
match it.node {
481481
ast::item_ty(*) | ast::item_class(*) |
482-
ast::item_trait(*) | ast::item_impl(*) => {
482+
ast::item_trait(*) => {
483483
check_case(cx, it.ident, it.id, it.id, it.span)
484484
}
485485
ast::item_enum(enum_definition, _) => {

0 commit comments

Comments
 (0)