about summary refs log tree commit diff
diff options
context:
space:
mode:
authorreez12g <reez12g@gmail.com>2022-09-16 16:12:49 +0900
committerreez12g <reez12g@gmail.com>2022-09-29 16:49:16 +0900
commitcf31a29492137ac2a7aa59bf49549911ef91ab24 (patch)
tree989e82e92446c5ee517ce5ea0e9bf3d1b89371b7
parentc2ad8d2551da3cb6ee8fe656fe65cbd696ec0e2d (diff)
downloadrust-cf31a29492137ac2a7aa59bf49549911ef91ab24.tar.gz
rust-cf31a29492137ac2a7aa59bf49549911ef91ab24.zip
Mark ignore on error code docs in compiler/rustc_borrowck/src/region_infer/mod.rs
-rw-r--r--compiler/rustc_borrowck/src/region_infer/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_borrowck/src/region_infer/mod.rs b/compiler/rustc_borrowck/src/region_infer/mod.rs
index 244e6e3422d..7775691c2a7 100644
--- a/compiler/rustc_borrowck/src/region_infer/mod.rs
+++ b/compiler/rustc_borrowck/src/region_infer/mod.rs
@@ -1398,7 +1398,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
     /// whether any of the constraints were too strong. In particular,
     /// we want to check for a case where a universally quantified
     /// region exceeded its bounds. Consider:
-    /// ```compile_fail,E0312
+    /// ```ignore(compile_fail,E0312)
     /// fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
     /// ```
     /// In this case, returning `x` requires `&'a u32 <: &'b u32`
@@ -1451,7 +1451,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
     /// <https://smallcultfollowing.com/babysteps/blog/2019/01/17/polonius-and-region-errors/>
     ///
     /// In the canonical example
-    /// ```compile_fail,E0312
+    /// ```ignore(compile_fail,E0312)
     /// fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
     /// ```
     /// returning `x` requires `&'a u32 <: &'b u32` and hence we establish (transitively) a