Skip to content

Commit 4f71dd5

Browse files
authored
Bump versions to 1.70.0 (#321)
1 parent c8a19ef commit 4f71dd5

File tree

8 files changed

+24
-8
lines changed

8 files changed

+24
-8
lines changed

Dockerfile.try

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ USER postgres
4040
ENV USER postgres
4141

4242
# Install Rust
43-
RUN wget -qO- https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain=1.69.0
43+
RUN wget -qO- https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain=1.70.0
4444
ENV PATH="/var/lib/postgresql/.cargo/bin:${PATH}"
4545

4646
# Copy in plrust source

doc/src/install-plrust-on-debian-ubuntu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Where:
2828
Example:
2929

3030
```
31-
plrust-trusted-1.2.3_1.69.0-debian-pg15-amd64.deb
31+
plrust-trusted-1.2.3_1.70.0-debian-pg15-amd64.deb
3232
```
3333

3434
## Preparing the environment

plrust/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fi
4242
git pull
4343
git submodule update --init --recursive
4444
else
45-
git clone https://github.com/tcdi/postgrestd.git --branch "rust-1.69.0" --recurse-submodules
45+
git clone https://github.com/tcdi/postgrestd.git --branch "rust-1.70.0" --recurse-submodules
4646
cd ./postgrestd
4747
fi
4848
rm --force rust-toolchain.toml

plrustc/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ fi
2525
export RUSTC_BOOTSTRAP=1
2626

2727
version=$($RUSTC --version | cut -d ' ' -f 2)
28-
if [ "$version" != "1.69.0" ]; then
29-
echo "rustc ('$RUSTC') is not version 1.69.0" >&2
28+
if [ "$version" != "1.70.0" ]; then
29+
echo "rustc ('$RUSTC') is not version 1.70.0" >&2
3030
exit 1
3131
fi
3232

plrustc/plrustc/src/main.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,13 @@ impl FileLoader for ErrorHidingFileLoader {
281281
replacement_error()
282282
})
283283
}
284+
285+
fn read_binary_file(&self, path: &Path) -> std::io::Result<Vec<u8>> {
286+
std::fs::read(path).map_err(|_| {
287+
// TODO: Should there be a way to preserve errors for debugging?
288+
replacement_error()
289+
})
290+
}
284291
}
285292

286293
struct PlrustcFileLoader {
@@ -315,6 +322,14 @@ impl FileLoader for PlrustcFileLoader {
315322
Err(replacement_error())
316323
}
317324
}
325+
326+
fn read_binary_file(&self, path: &Path) -> std::io::Result<Vec<u8>> {
327+
if path.exists() && !path.is_dir() && self.is_inside_allowed_dir(path) {
328+
ErrorHidingFileLoader.read_binary_file(path)
329+
} else {
330+
Err(replacement_error())
331+
}
332+
}
318333
}
319334

320335
/// Get the sysroot, looking from most specific to this invocation to the

plrustc/plrustc/uitests/ice_hook.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ note: Please file a bug report at <https://github.com/tcdi/plrust/issues/new>
99

1010
note: plrustc version: <version here>
1111

12+
thread panicked while panicking. aborting.

plrustc/rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[toolchain]
2-
channel = "1.69.0"
2+
channel = "1.70.0"
33
components = [ "rustfmt", "rust-src", "rustc-dev", "cargo", "llvm-tools" ]
44
targets = [ ]
55
profile = "minimal"

rust-toolchain.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[toolchain]
2-
channel = "1.69.0"
3-
components = [ "rustfmt", "rust-src", "rustc-dev" ]
2+
channel = "1.70.0"
3+
components = [ "rustfmt", "rust-src", "rustc-dev", "llvm-tools" ]
44
targets = [ ]
55
profile = "minimal"

0 commit comments

Comments
 (0)