-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add -Zmetrics-dir=PATH to save diagnostic metadata to disk #128702
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only comment I have is to extend the make test to
- exercise the new nightly flag
- verify what happens when both the nightly flag and env variable are set
- test the RUST_BACKTRACE=0 behavior against the file creation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've got a comment about this initialization procedure's interaction with pre-session-init ICEs.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This PR modifies cc @jieyouxu |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test changes looks good
a98d81e
to
2bd3523
Compare
This comment has been minimized.
This comment has been minimized.
24c915f
to
8112b54
Compare
This comment has been minimized.
This comment has been minimized.
@@ -1714,6 +1714,8 @@ options! { | |||
"emit the bc module with thin LTO info (default: yes)"), | |||
enforce_type_length_limit: bool = (false, parse_bool, [TRACKED], | |||
"enforce the type length limit when monomorphizing instances in codegen"), | |||
error_metrics: Option<PathBuf> = (None, parse_opt_pathbuf, [UNTRACKED], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets rename this flag to something more general, like just metrics
or metrics_directory
, as it will be used for more things beyond "errors".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me after flag rename to metrics-dir
@bors r=estebank |
Rollup of 7 pull requests Successful merges: - rust-lang#128520 (Skip over args when determining if async-closure's inner coroutine consumes its upvars) - rust-lang#128552 (Emit an error for invalid use of the `#[no_sanitize]` attribute) - rust-lang#128691 (Update `compiler-builtins` to 0.1.117) - rust-lang#128702 (Add -Zmetrics-dir=PATH to save diagnostic metadata to disk) - rust-lang#128797 (Fuchsia Test Runner: enable ffx repository server) - rust-lang#128798 (refactor(rustc_expand::mbe): Don't require full ExtCtxt when not necessary) - rust-lang#128800 (Add tracking issue to core-pattern-type) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#128702 - yaahc:metrics-flag, r=estebank Add -Zmetrics-dir=PATH to save diagnostic metadata to disk r? ``@estebank``
Part of the Metrics Initiative: #128914
r? @estebank