You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #99620 - hudson-ayers:fix-location-detail, r=davidtwco
`-Z location-detail`: provide option to disable all location details
As reported [here](#89920 (comment)), when I first implemented the `-Z location-detail` flag there was a bug, where passing an empty list was not correctly supported, and instead rejected by the compiler. This PR fixes that such that passing an empty list results in no location details being tracked, as originally specified in rust-lang/rfcs#2091 .
This PR also adds a test case to verify that this option continues to work as intended.
Copy file name to clipboardExpand all lines: src/test/rustdoc-ui/z-help.stdout
+1-1
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@
69
69
-Z link-only=val -- link the `.rlink` file generated by `-Z no-link` (default: no)
70
70
-Z llvm-plugins=val -- a list LLVM plugins to enable (space separated)
71
71
-Z llvm-time-trace=val -- generate JSON tracing data file from LLVM data (default: no)
72
-
-Z location-detail=val -- comma separated list of location details to be tracked when using caller_locationvalid options are `file`, `line`, and `column` (default: all)
72
+
-Z location-detail=val -- what location details should be tracked when using caller_location, either `none`, or a comma separated list of location details, for which valid options are `file`, `line`, and `column` (default: `file,line,column`)
73
73
-Z ls=val -- list the symbols defined by a library crate (default: no)
74
74
-Z macro-backtrace=val -- show macro backtraces (default: no)
75
75
-Z merge-functions=val -- control the operation of the MergeFunctions LLVM pass, taking the same values as the target option of the same name
0 commit comments