diff options
Diffstat (limited to 'meta/recipes-devtools/rust/files/fix-tidy-check-failure.patch')
-rw-r--r-- | meta/recipes-devtools/rust/files/fix-tidy-check-failure.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/files/fix-tidy-check-failure.patch b/meta/recipes-devtools/rust/files/fix-tidy-check-failure.patch new file mode 100644 index 0000000000..54b4ee690b --- /dev/null +++ b/meta/recipes-devtools/rust/files/fix-tidy-check-failure.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | fix a comment with uneven number of backticks in rustc_mir_build | ||
2 | |||
3 | Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/8e7734978245522cbbd14e53e08e888faf031ded] | ||
4 | |||
5 | Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com> | ||
6 | --- | ||
7 | diff --git a/compiler/rustc_mir_build/src/build/expr/as_rvalue.rs b/compiler/rustc_mir_build/src/build/expr/as_rvalue.rs | ||
8 | index 3f89e33778..c66af11845 100644 | ||
9 | --- a/compiler/rustc_mir_build/src/build/expr/as_rvalue.rs | ||
10 | +++ b/compiler/rustc_mir_build/src/build/expr/as_rvalue.rs | ||
11 | @@ -231,7 +231,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> { | ||
12 | if range.start <= range.end { BinOp::BitAnd } else { BinOp::BitOr }; | ||
13 | |||
14 | let mut comparer = |range: u128, bin_op: BinOp| -> Place<'tcx> { | ||
15 | - // We can use `ty::TypingEnv::fully_monomorphized()`` here | ||
16 | + // We can use `ty::TypingEnv::fully_monomorphized()` here | ||
17 | // as we only need it to compute the layout of a primitive. | ||
18 | let range_val = Const::from_bits( | ||
19 | this.tcx, | ||