diff --git a/.cargo/config b/.cargo/config
index 9952f0e4dd689c4a47d7ae2fb10734e3af50a7e3..fcad4b69c72501c7fd825d174c0fb3c65ac81b1a 100644
--- a/.cargo/config
+++ b/.cargo/config
@@ -9,7 +9,6 @@ paths = [
     "patches/platform-info",
     "patches/ring",
     "patches/tar-rs",
-    "patches/tempfile",
     "patches/termsize",
     "patches/time",
 ]
diff --git a/.gitmodules b/.gitmodules
index acbc2edba42b8ff96b136c38e776c9d98607849d..486723ae8e03235e0c10bd632a6693e46422826f 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -29,10 +29,6 @@
 	path = patches/termsize
 	url = https://gitlab.redox-os.org/redox-os/termsize.git
 	branch = redox-unix
-[submodule "patches/tempfile"]
-	path = patches/tempfile
-	url = https://gitlab.redox-os.org/redox-os/tempfile.git
-	branch = redox-unix
 [submodule "patches/platform-info"]
 	path = patches/platform-info
 	url = https://gitlab.redox-os.org/redox-os/platform-info.git
diff --git a/patches/tempfile b/patches/tempfile
deleted file mode 160000
index 0ae305457184fa974ea1c4f7ed4602afdd5fedc6..0000000000000000000000000000000000000000
--- a/patches/tempfile
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 0ae305457184fa974ea1c4f7ed4602afdd5fedc6