@@ -63,7 +63,7 @@ pub struct Manifest {
6363 default_run : Option < String > ,
6464 metabuild : Option < Vec < String > > ,
6565 resolve_behavior : Option < ResolveBehavior > ,
66- rustflags : Vec < String > ,
66+ lint_rustflags : Vec < String > ,
6767}
6868
6969/// When parsing `Cargo.toml`, some warnings should silenced
@@ -406,7 +406,7 @@ impl Manifest {
406406 original : Rc < TomlManifest > ,
407407 metabuild : Option < Vec < String > > ,
408408 resolve_behavior : Option < ResolveBehavior > ,
409- rustflags : Vec < String > ,
409+ lint_rustflags : Vec < String > ,
410410 ) -> Manifest {
411411 Manifest {
412412 summary,
@@ -432,7 +432,7 @@ impl Manifest {
432432 default_run,
433433 metabuild,
434434 resolve_behavior,
435- rustflags ,
435+ lint_rustflags ,
436436 }
437437 }
438438
@@ -517,9 +517,9 @@ impl Manifest {
517517 self . resolve_behavior
518518 }
519519
520- /// Package-wide RUSTFLAGS
521- pub fn rustflags ( & self ) -> & [ String ] {
522- self . rustflags . as_slice ( )
520+ /// ` RUSTFLAGS` from the `[lints]` table
521+ pub fn lint_rustflags ( & self ) -> & [ String ] {
522+ self . lint_rustflags . as_slice ( )
523523 }
524524
525525 pub fn map_source ( self , to_replace : SourceId , replace_with : SourceId ) -> Manifest {
0 commit comments