@@ -63,7 +63,7 @@ pub struct Manifest {
63
63
default_run : Option < String > ,
64
64
metabuild : Option < Vec < String > > ,
65
65
resolve_behavior : Option < ResolveBehavior > ,
66
- rustflags : Vec < String > ,
66
+ lint_rustflags : Vec < String > ,
67
67
}
68
68
69
69
/// When parsing `Cargo.toml`, some warnings should silenced
@@ -406,7 +406,7 @@ impl Manifest {
406
406
original : Rc < TomlManifest > ,
407
407
metabuild : Option < Vec < String > > ,
408
408
resolve_behavior : Option < ResolveBehavior > ,
409
- rustflags : Vec < String > ,
409
+ lint_rustflags : Vec < String > ,
410
410
) -> Manifest {
411
411
Manifest {
412
412
summary,
@@ -432,7 +432,7 @@ impl Manifest {
432
432
default_run,
433
433
metabuild,
434
434
resolve_behavior,
435
- rustflags ,
435
+ lint_rustflags ,
436
436
}
437
437
}
438
438
@@ -517,9 +517,9 @@ impl Manifest {
517
517
self . resolve_behavior
518
518
}
519
519
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 ( )
523
523
}
524
524
525
525
pub fn map_source ( self , to_replace : SourceId , replace_with : SourceId ) -> Manifest {
0 commit comments