File tree Expand file tree Collapse file tree 4 files changed +72
-72
lines changed Expand file tree Collapse file tree 4 files changed +72
-72
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ pub struct Options {
70
70
pub gc : bool ,
71
71
pub optimize : OptLevel ,
72
72
pub debuginfo : DebugInfoLevel ,
73
- pub lint_opts : Vec < ( lint:: Lint , lint:: level ) > ,
73
+ pub lint_opts : Vec < ( lint:: Lint , lint:: Level ) > ,
74
74
pub output_types : Vec < back:: link:: OutputType > ,
75
75
// This was mutable for rustpkg, which updates search paths based on the
76
76
// parsed code. It remains mutable in case its replacements wants to use
@@ -580,8 +580,8 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
580
580
let no_trans = matches. opt_present ( "no-trans" ) ;
581
581
let no_analysis = matches. opt_present ( "no-analysis" ) ;
582
582
583
- let lint_levels = [ lint:: allow , lint:: warn ,
584
- lint:: deny , lint:: forbid ] ;
583
+ let lint_levels = [ lint:: Allow , lint:: Warn ,
584
+ lint:: Deny , lint:: Forbid ] ;
585
585
let mut lint_opts = Vec :: new ( ) ;
586
586
let lint_dict = lint:: get_lint_dict ( ) ;
587
587
for level in lint_levels. iter ( ) {
Original file line number Diff line number Diff line change 12
12
// closely. The idea is that all reachable symbols are live, codes called
13
13
// from live codes are live, and everything else is dead.
14
14
15
- use middle:: lint:: { allow , contains_lint, DeadCode } ;
15
+ use middle:: lint:: { Allow , contains_lint, DeadCode } ;
16
16
use middle:: privacy;
17
17
use middle:: ty;
18
18
use middle:: typeck;
@@ -195,7 +195,7 @@ impl<'a> Visitor<()> for MarkSymbolVisitor<'a> {
195
195
}
196
196
197
197
fn has_allow_dead_code_or_lang_attr ( attrs : & [ ast:: Attribute ] ) -> bool {
198
- contains_lint ( attrs, allow , DEAD_CODE_LINT_STR )
198
+ contains_lint ( attrs, Allow , DEAD_CODE_LINT_STR )
199
199
|| attr:: contains_name ( attrs. as_slice ( ) , "lang" )
200
200
}
201
201
You can’t perform that action at this time.
0 commit comments