diff options
| author | Gibby Free <gibbyfree@microsoft.com> | 2023-03-02 10:41:08 -0800 |
|---|---|---|
| committer | Gibby Free <gibbyfree@microsoft.com> | 2023-03-02 10:41:08 -0800 |
| commit | 5c34f7788fbfb3ab281f93d09a4599c2e8cd7b8e (patch) | |
| tree | 1968f9d2e68bf4b1d8540ad75e50d98cb72bd784 | |
| parent | 05c1e6b1db11d3be8c5d554bbc4ce06574ddcf36 (diff) | |
| download | rust-5c34f7788fbfb3ab281f93d09a4599c2e8cd7b8e.tar.gz rust-5c34f7788fbfb3ab281f93d09a4599c2e8cd7b8e.zip | |
whitespace, delete unstable book page
| -rw-r--r-- | compiler/rustc_feature/src/builtin_attrs.rs | 2 | ||||
| -rw-r--r-- | src/doc/unstable-book/src/language-features/debugger-visualizer.md | 27 |
2 files changed, 1 insertions, 28 deletions
diff --git a/compiler/rustc_feature/src/builtin_attrs.rs b/compiler/rustc_feature/src/builtin_attrs.rs index fc919daeeca..34c9af2ac6b 100644 --- a/compiler/rustc_feature/src/builtin_attrs.rs +++ b/compiler/rustc_feature/src/builtin_attrs.rs @@ -405,7 +405,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ // Debugging ungated!( - debugger_visualizer, Normal, + debugger_visualizer, Normal, template!(List: r#"natvis_file = "...", gdb_script_file = "...""#), DuplicatesOk ), diff --git a/src/doc/unstable-book/src/language-features/debugger-visualizer.md b/src/doc/unstable-book/src/language-features/debugger-visualizer.md deleted file mode 100644 index c7a0414b676..00000000000 --- a/src/doc/unstable-book/src/language-features/debugger-visualizer.md +++ /dev/null @@ -1,27 +0,0 @@ -# `debugger_visualizer` - -The tracking issue for this feature is: [#95939] - -[#95939]: https://github.com/rust-lang/rust/issues/95939 - ------------------------- - -The `debugger_visualizer` attribute can be used to instruct the compiler -to embed a debugger visualizer file into the PDB/ELF generated by `rustc`. - -## Examples - -``` rust,ignore (partial-example) -#![feature(debugger_visualizer)] -#![debugger_visualizer(natvis_file = "foo.natvis")] -#![debugger_visualizer(gdb_script_file = "foo.py")] -struct Foo { - -} -``` - -## Limitations - -Currently, this feature only supports embedding Natvis files on `-windows-msvc` -targets via the `natvis_file` meta item. `-windows-gnu` targets are not currently -supported. |
