@@ -258,7 +258,7 @@ impl<'a> LintLevelsBuilder<'a> {
258258 let meta_item = match li. meta_item ( ) {
259259 Some ( meta_item) if meta_item. is_word ( ) => meta_item,
260260 _ => {
261- let mut err = bad_attr ( li. span ) ;
261+ let mut err = bad_attr ( li. span ( ) ) ;
262262 if let Some ( item) = li. meta_item ( ) {
263263 if let ast:: MetaItemKind :: NameValue ( _) = item. node {
264264 if item. path == "reason" {
@@ -290,7 +290,7 @@ impl<'a> LintLevelsBuilder<'a> {
290290 let name = meta_item. path . segments . last ( ) . expect ( "empty lint name" ) . ident . name ;
291291 match store. check_lint_name ( & name. as_str ( ) , tool_name) {
292292 CheckLintNameResult :: Ok ( ids) => {
293- let src = LintSource :: Node ( name, li. span , reason) ;
293+ let src = LintSource :: Node ( name, li. span ( ) , reason) ;
294294 for id in ids {
295295 specs. insert ( * id, ( level, src) ) ;
296296 }
@@ -301,7 +301,7 @@ impl<'a> LintLevelsBuilder<'a> {
301301 Ok ( ids) => {
302302 let complete_name = & format ! ( "{}::{}" , tool_name. unwrap( ) , name) ;
303303 let src = LintSource :: Node (
304- Symbol :: intern ( complete_name) , li. span , reason
304+ Symbol :: intern ( complete_name) , li. span ( ) , reason
305305 ) ;
306306 for id in ids {
307307 specs. insert ( * id, ( level, src) ) ;
@@ -323,18 +323,18 @@ impl<'a> LintLevelsBuilder<'a> {
323323 lint,
324324 lvl,
325325 src,
326- Some ( li. span . into ( ) ) ,
326+ Some ( li. span ( ) . into ( ) ) ,
327327 & msg,
328328 ) ;
329329 err. span_suggestion (
330- li. span ,
330+ li. span ( ) ,
331331 "change it to" ,
332332 new_lint_name. to_string ( ) ,
333333 Applicability :: MachineApplicable ,
334334 ) . emit ( ) ;
335335
336336 let src = LintSource :: Node (
337- Symbol :: intern ( & new_lint_name) , li. span , reason
337+ Symbol :: intern ( & new_lint_name) , li. span ( ) , reason
338338 ) ;
339339 for id in ids {
340340 specs. insert ( * id, ( level, src) ) ;
@@ -361,11 +361,11 @@ impl<'a> LintLevelsBuilder<'a> {
361361 lint,
362362 level,
363363 src,
364- Some ( li. span . into ( ) ) ,
364+ Some ( li. span ( ) . into ( ) ) ,
365365 & msg) ;
366366 if let Some ( new_name) = renamed {
367367 err. span_suggestion (
368- li. span ,
368+ li. span ( ) ,
369369 "use the new name" ,
370370 new_name,
371371 Applicability :: MachineApplicable
@@ -384,12 +384,12 @@ impl<'a> LintLevelsBuilder<'a> {
384384 lint,
385385 level,
386386 src,
387- Some ( li. span . into ( ) ) ,
387+ Some ( li. span ( ) . into ( ) ) ,
388388 & msg) ;
389389
390390 if let Some ( suggestion) = suggestion {
391391 db. span_suggestion (
392- li. span ,
392+ li. span ( ) ,
393393 "did you mean" ,
394394 suggestion. to_string ( ) ,
395395 Applicability :: MachineApplicable ,
0 commit comments