about summary refs log tree commit diff
path: root/library/std/src/path.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-27 08:13:47 +0100
committerGitHub <noreply@github.com>2024-11-27 08:13:47 +0100
commitdcebc5eddd4dccc444d68eae8d5d321d63d2c06f (patch)
tree8426e7689712ffaf7a2a451babd6e5d94cc47665 /library/std/src/path.rs
parent21f6ef577ba8936d2e78c349e4062635818cbc6a (diff)
parentc14d137bfc5133f5a38fad2f58e30fed9c47ffe2 (diff)
downloadrust-dcebc5eddd4dccc444d68eae8d5d321d63d2c06f.tar.gz
rust-dcebc5eddd4dccc444d68eae8d5d321d63d2c06f.zip
Rollup merge of #133449 - joboet:io_const_error, r=tgross35
std: expose `const_io_error!` as `const_error!`

ACP: https://github.com/rust-lang/libs-team/issues/205
Tracking issue: https://github.com/rust-lang/rust/issues/133448

Probably best reviewed commit-by-commit, the first one does the API change, the second does the mass-rename.
Diffstat (limited to 'library/std/src/path.rs')
-rw-r--r--library/std/src/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs
index 7ffb11b6aed..33a3e4332f3 100644
--- a/library/std/src/path.rs
+++ b/library/std/src/path.rs
@@ -3581,7 +3581,7 @@ impl Error for StripPrefixError {
 pub fn absolute<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
     let path = path.as_ref();
     if path.as_os_str().is_empty() {
-        Err(io::const_io_error!(io::ErrorKind::InvalidInput, "cannot make an empty path absolute",))
+        Err(io::const_error!(io::ErrorKind::InvalidInput, "cannot make an empty path absolute",))
     } else {
         sys::path::absolute(path)
     }