summaryrefslogtreecommitdiff
path: root/experimental/mrustc/mrustc-0001-Fix-two-typos.patch
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/mrustc/mrustc-0001-Fix-two-typos.patch')
-rw-r--r--experimental/mrustc/mrustc-0001-Fix-two-typos.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/experimental/mrustc/mrustc-0001-Fix-two-typos.patch b/experimental/mrustc/mrustc-0001-Fix-two-typos.patch
new file mode 100644
index 000000000..fc58d2cd8
--- /dev/null
+++ b/experimental/mrustc/mrustc-0001-Fix-two-typos.patch
@@ -0,0 +1,35 @@
+From ca30fdadc60b3cb42a0c1e30c1d14088fc2e5cac Mon Sep 17 00:00:00 2001
+From: Tobias Bucher <tobiasbucher5991@gmail.com>
+Date: Sun, 15 Dec 2024 12:43:13 +0100
+Subject: [PATCH 1/6] Fix two typos
+
+
+diff --git a/src/hir/hir_ops.cpp b/src/hir/hir_ops.cpp
+index 84698c74..0d7c128a 100644
+--- a/src/hir/hir_ops.cpp
++++ b/src/hir/hir_ops.cpp
+@@ -713,7 +713,7 @@ bool ::HIR::TraitImpl::overlaps_with(const Crate& crate, const ::HIR::TraitImpl&
+ DEBUG("- Params mismatch");
+ return false;
+ }
+- // Matched with second ording
++ // Matched with second ordering
+ }
+ else if( this->m_trait_args.match_test_generics_fuzz(sp, other.m_trait_args, cb_ident, matcher) != ::HIR::Compare::Equal )
+ {
+diff --git a/src/parse/lex.cpp b/src/parse/lex.cpp
+index 29fc6599..ddf3a168 100644
+--- a/src/parse/lex.cpp
++++ b/src/parse/lex.cpp
+@@ -43,7 +43,7 @@ Lexer::Lexer(const ::std::string& filename, AST::Edition edition, ParseState ps)
+ throw ::std::runtime_error("Incomplete BOM - missing \\xBB in second position");
+ }
+ if( this->getc_byte() != '\xbf' ) {
+- throw ::std::runtime_error("Incomplete BOM - missing \\xBF in second position");
++ throw ::std::runtime_error("Incomplete BOM - missing \\xBF in third position");
+ }
+ m_line_ofs = 0;
+ }
+--
+2.40.0
+