File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/bootstrap/src/core/builder Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ pub struct Cargo {
101101impl Cargo {
102102 /// Calls [`Builder::cargo`] and [`Cargo::configure_linker`] to prepare an invocation of `cargo`
103103 /// to be run.
104+ #[ track_caller]
104105 pub fn new (
105106 builder : & Builder < ' _ > ,
106107 compiler : Compiler ,
@@ -139,6 +140,7 @@ impl Cargo {
139140
140141 /// Same as [`Cargo::new`] except this one doesn't configure the linker with
141142 /// [`Cargo::configure_linker`].
143+ #[ track_caller]
142144 pub fn new_for_mir_opt_tests (
143145 builder : & Builder < ' _ > ,
144146 compiler : Compiler ,
@@ -396,6 +398,7 @@ impl From<Cargo> for BootstrapCommand {
396398
397399impl Builder < ' _ > {
398400 /// Like [`Builder::cargo`], but only passes flags that are valid for all commands.
401+ #[ track_caller]
399402 pub fn bare_cargo (
400403 & self ,
401404 compiler : Compiler ,
@@ -480,6 +483,7 @@ impl Builder<'_> {
480483 /// scoped by `mode`'s output directory, it will pass the `--target` flag for the specified
481484 /// `target`, and will be executing the Cargo command `cmd`. `cmd` can be `miri-cmd` for
482485 /// commands to be run with Miri.
486+ #[ track_caller]
483487 fn cargo (
484488 & self ,
485489 compiler : Compiler ,
You can’t perform that action at this time.
0 commit comments