]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/doc_panics.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / tools / clippy / tests / ui / doc_panics.stderr
index c0c4e9e4fa7eec6d682eddd4f7b214cfeded6712..2fa88a2f6ec4bd76ddeec0207af7165209e47965 100644 (file)
@@ -63,5 +63,20 @@ LL |             panic!()
    |             ^^^^^^^^
    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
 
-error: aborting due to 4 previous errors
+error: docs for function which may panic missing `# Panics` section
+  --> $DIR/doc_panics.rs:32:1
+   |
+LL | / pub fn unreachable_and_panic() {
+LL | |     if true { unreachable!() } else { panic!() }
+LL | | }
+   | |_^
+   |
+note: first possible panic found here
+  --> $DIR/doc_panics.rs:33:39
+   |
+LL |     if true { unreachable!() } else { panic!() }
+   |                                       ^^^^^^^^
+   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: aborting due to 5 previous errors