diff options
| author | reez12g <reez12g@gmail.com> | 2022-10-02 11:00:43 +0900 |
|---|---|---|
| committer | reez12g <reez12g@gmail.com> | 2022-10-02 11:00:43 +0900 |
| commit | ebcec301829e64cc0e29b2a0f1daf79ecbd73bcd (patch) | |
| tree | 6c9512e4f668bafd6a3d8a40c1855b58700754ce | |
| parent | e89fbc5872acbf3b003f02242b3889d815bd6de8 (diff) | |
| download | rust-ebcec301829e64cc0e29b2a0f1daf79ecbd73bcd.tar.gz rust-ebcec301829e64cc0e29b2a0f1daf79ecbd73bcd.zip | |
Remove 'E0312' from 'compile_fail,E0312' statement temporarily
| -rw-r--r-- | compiler/rustc_borrowck/src/diagnostics/region_errors.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_borrowck/src/region_infer/mod.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/region_errors.rs b/compiler/rustc_borrowck/src/diagnostics/region_errors.rs index a4dfc945e33..038cae9a3ed 100644 --- a/compiler/rustc_borrowck/src/diagnostics/region_errors.rs +++ b/compiler/rustc_borrowck/src/diagnostics/region_errors.rs @@ -341,7 +341,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> { /// Report an error because the universal region `fr` was required to outlive /// `outlived_fr` but it is not known to do so. For example: /// - /// ```ignore(compile_fail,E0312) + /// ```compile_fail /// fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x } /// ``` /// diff --git a/compiler/rustc_borrowck/src/region_infer/mod.rs b/compiler/rustc_borrowck/src/region_infer/mod.rs index 7775691c2a7..3410f260b2f 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: - /// ```ignore(compile_fail,E0312) + /// ```compile_fail /// 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 - /// ```ignore(compile_fail,E0312) + /// ```compile_fail /// fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x } /// ``` /// returning `x` requires `&'a u32 <: &'b u32` and hence we establish (transitively) a |
