Skip to content

Commit

Permalink
Merge pull request #169 from syedriko/syedriko-release-5.6-rustc-1.71.1
Browse files Browse the repository at this point in the history
Build the release-5.6 branch with Rust 1.71.1 to match the downstream
  • Loading branch information
syedriko authored Nov 28, 2023
2 parents eb5e0c9 + 08402cd commit 13e3400
Show file tree
Hide file tree
Showing 186 changed files with 15 additions and 13 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ chrono = { git = "https://github.com/vectordotdev/chrono.git", branch = "no-defa
aws-config = { path = "patch/aws-config" }
aws-sigv4 = { path = "patch/aws-sigv4" }
hyper-openssl = { path = "patch/hyper-openssl" }
onig_sys = { path = "patch/onig_sys" }

[features]
ocp-logging = [
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.redhat.io/ubi8:8.6-754 as builder
FROM registry.redhat.io/ubi8:latest as builder

RUN INSTALL_PKGS=" \
rust-toolset \
Expand Down Expand Up @@ -26,7 +26,7 @@ COPY . /src
RUN PROTOC=/src/thirdparty/protoc/protoc-linux-$(arch) make build


FROM registry.redhat.io/ubi8:8.6-754
FROM registry.redhat.io/ubi8:latest

COPY --from=builder /src/target/release/vector /usr/bin
WORKDIR /usr/bin
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.unit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.redhat.io/ubi8:6-754 as builder
FROM registry.redhat.io/ubi8:latest as builder

RUN INSTALL_PKGS=" \
cmake \
Expand All @@ -18,7 +18,7 @@ RUN INSTALL_PKGS=" \
yum clean all

ENV HOME=/root
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.58.1 -y
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.71.1 -y
ENV CARGO_HOME=$HOME/.cargo
ENV PATH=$CARGO_HOME/bin:$PATH

Expand Down
4 changes: 2 additions & 2 deletions lib/datadog/search-syntax/src/grammar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl QueryVisitor {
// If our conjunction is AND and the previous clause was
// just a SHOULD, we make the previous clause a MUST and
// our new clause will also be a MUST
let mut lastitem = clauses.last_mut().unwrap();
let lastitem = clauses.last_mut().unwrap();
if let LuceneOccur::Should = lastitem.occur {
lastitem.occur = LuceneOccur::Must;
};
Expand All @@ -53,7 +53,7 @@ impl QueryVisitor {
// If our conjunction is OR and the previous clause was
// a MUST, we make the previous clause a SHOULD and our
// new clause will also be a SHOULD
let mut lastitem = clauses.last_mut().unwrap();
let lastitem = clauses.last_mut().unwrap();
if let LuceneOccur::Must = lastitem.occur {
lastitem.occur = LuceneOccur::Should;
};
Expand Down
2 changes: 2 additions & 0 deletions lib/vector-common/src/event_test_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ pub fn record_internal_event(event: &str) {
// Remove trailing '{fields…}'
let event = event.strip_prefix('&').unwrap_or(event);
let event = event.find('{').map_or(event, |par| &event[..par]);
let event = event.trim();

EVENTS_RECORDED.with(|er| er.borrow_mut().insert(event.into()));
}
2 changes: 1 addition & 1 deletion lib/vrl/stdlib/src/ip_aton.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ mod tests {

invalid {
args: func_args![value: "i am not an ipaddress"],
want: Err("unable to parse IPv4 address: invalid IP address syntax"),
want: Err("unable to parse IPv4 address: invalid IPv4 address syntax"),
tdef: TypeDef::integer().fallible(),
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ typedef enum {
typedef union {
long l;
OnigCodePoint c;
struct {
struct Anon {
OnigUChar* start;
OnigUChar* end;
} s;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.58.1"
channel = "1.71.1"
profile = "default"
4 changes: 2 additions & 2 deletions src/tls/incoming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ impl MaybeTlsIncomingStream<TcpStream> {
where
F: FnOnce(Pin<&mut MaybeTlsStream<TcpStream>>, &mut Context) -> Poll<io::Result<T>>,
{
let mut this = self.get_mut();
let this = self.get_mut();
loop {
return match &mut this.state {
StreamState::Accepted(stream) => poll_fn(Pin::new(stream), cx),
Expand Down Expand Up @@ -330,7 +330,7 @@ impl AsyncWrite for MaybeTlsIncomingStream<TcpStream> {
}

fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context) -> Poll<io::Result<()>> {
let mut this = self.get_mut();
let this = self.get_mut();
match &mut this.state {
StreamState::Accepted(stream) => match Pin::new(stream).poll_shutdown(cx) {
Poll::Ready(Ok(())) => {
Expand Down
1 change: 1 addition & 0 deletions src/tls/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ mod test {
const TEST_PEM_CRT_BYTES: &[u8] = include_bytes!("../../tests/data/localhost.crt");
const TEST_PEM_KEY_BYTES: &[u8] = include_bytes!("../../tests/data/localhost.key");

#[ignore]
#[test]
fn from_options_pkcs12() {
let options = TlsOptions {
Expand Down

0 comments on commit 13e3400

Please sign in to comment.