Skip to content

Commit dc15ce7

Browse files
committed
chore: Bump Rust toolchain
1 parent c7e423f commit dc15ce7

File tree

7 files changed

+28
-26
lines changed

7 files changed

+28
-26
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ FEDORA=33
4747
PYTHON=3.6
4848
LLVM=11
4949
CLANG_TOOLS=8
50-
RUST=nightly-2022-03-08
50+
RUST=nightly-2022-03-22
5151
GO=1.15
5252
NODE=14
5353
MAVEN=3.5.4

.github/workflows/rust.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
matrix:
3232
arch: [amd64]
33-
rust: [nightly-2022-03-08]
33+
rust: [nightly-2022-03-22]
3434
container:
3535
image: ${{ matrix.arch }}/rust
3636
env:
@@ -92,7 +92,7 @@ jobs:
9292
strategy:
9393
matrix:
9494
arch: [amd64]
95-
rust: [nightly-2022-03-08]
95+
rust: [nightly-2022-03-22]
9696
container:
9797
image: ${{ matrix.arch }}/rust
9898
env:
@@ -157,8 +157,8 @@ jobs:
157157
submodules: true
158158
- name: Setup toolchain
159159
run: |
160-
rustup toolchain install nightly-2022-03-08
161-
rustup default nightly-2022-03-08
160+
rustup toolchain install nightly-2022-03-22
161+
rustup default nightly-2022-03-22
162162
- uses: actions/setup-python@v2
163163
with:
164164
python-version: "3.10"
@@ -210,7 +210,7 @@ jobs:
210210
strategy:
211211
matrix:
212212
os: [windows-latest, macos-latest]
213-
rust: [nightly-2022-03-08]
213+
rust: [nightly-2022-03-22]
214214
steps:
215215
- uses: actions/checkout@v2
216216
with:
@@ -240,7 +240,7 @@ jobs:
240240
# strategy:
241241
# matrix:
242242
# arch: [amd64]
243-
# rust: [nightly-2022-03-08]
243+
# rust: [nightly-2022-03-22]
244244
# container:
245245
# image: ${{ matrix.arch }}/rust
246246
# env:
@@ -292,8 +292,8 @@ jobs:
292292
- uses: actions/checkout@v2
293293
- name: Setup toolchain
294294
run: |
295-
rustup toolchain install nightly-2022-03-08
296-
rustup default nightly-2022-03-08
295+
rustup toolchain install nightly-2022-03-22
296+
rustup default nightly-2022-03-22
297297
rustup component add rustfmt
298298
- name: Run
299299
run: cargo fmt --all -- --check
@@ -305,7 +305,7 @@ jobs:
305305
strategy:
306306
matrix:
307307
arch: [amd64]
308-
rust: [nightly-2022-03-08]
308+
rust: [nightly-2022-03-22]
309309
container:
310310
image: ${{ matrix.arch }}/rust
311311
env:
@@ -348,7 +348,7 @@ jobs:
348348
strategy:
349349
matrix:
350350
arch: [amd64]
351-
rust: [nightly-2022-03-08]
351+
rust: [nightly-2022-03-22]
352352
container:
353353
image: ${{ matrix.arch }}/rust
354354
env:
@@ -396,7 +396,7 @@ jobs:
396396
# strategy:
397397
# matrix:
398398
# arch: [amd64]
399-
# rust: [nightly-2022-03-08]
399+
# rust: [nightly-2022-03-22]
400400
# container:
401401
# image: ${{ matrix.arch }}/rust
402402
# env:
@@ -449,7 +449,7 @@ jobs:
449449
# strategy:
450450
# matrix:
451451
# arch: [amd64]
452-
# rust: [nightly-2022-03-08]
452+
# rust: [nightly-2022-03-22]
453453
# steps:
454454
# - uses: actions/checkout@v2
455455
# with:

ci/docker/linux-apt-lint.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ COPY ci/scripts/install_iwyu.sh /arrow/ci/scripts/
4646
RUN arrow/ci/scripts/install_iwyu.sh /tmp/iwyu /usr/local ${clang_tools}
4747

4848
# Rust linter
49-
ARG rust=nightly-2022-03-08
49+
ARG rust=nightly-2022-03-22
5050
RUN curl https://sh.rustup.rs -sSf | \
5151
sh -s -- --default-toolchain stable -y
5252
ENV PATH /root/.cargo/bin:$PATH

datafusion/core/src/optimizer/projection_push_down.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ fn get_projected_schema(
126126

127127
/// Recursively transverses the logical plan removing expressions and that are not needed.
128128
fn optimize_plan(
129-
optimizer: &ProjectionPushDown,
129+
_optimizer: &ProjectionPushDown,
130130
plan: &LogicalPlan,
131131
required_columns: &HashSet<Column>, // set of columns required up to this step
132132
has_projection: bool,
@@ -165,7 +165,7 @@ fn optimize_plan(
165165
})?;
166166

167167
let new_input = optimize_plan(
168-
optimizer,
168+
_optimizer,
169169
input,
170170
&new_required_columns,
171171
true,
@@ -219,15 +219,15 @@ fn optimize_plan(
219219
}
220220

221221
let optimized_left = Arc::new(optimize_plan(
222-
optimizer,
222+
_optimizer,
223223
left,
224224
&new_required_columns,
225225
true,
226226
_optimizer_config,
227227
)?);
228228

229229
let optimized_right = Arc::new(optimize_plan(
230-
optimizer,
230+
_optimizer,
231231
right,
232232
&new_required_columns,
233233
true,
@@ -276,7 +276,7 @@ fn optimize_plan(
276276
// none columns in window expr are needed, remove the window expr
277277
if new_window_expr.is_empty() {
278278
return LogicalPlanBuilder::from(optimize_plan(
279-
optimizer,
279+
_optimizer,
280280
input,
281281
required_columns,
282282
true,
@@ -292,7 +292,7 @@ fn optimize_plan(
292292
)?;
293293

294294
LogicalPlanBuilder::from(optimize_plan(
295-
optimizer,
295+
_optimizer,
296296
input,
297297
&new_required_columns,
298298
true,
@@ -344,7 +344,7 @@ fn optimize_plan(
344344
group_expr: group_expr.clone(),
345345
aggr_expr: new_aggr_expr,
346346
input: Arc::new(optimize_plan(
347-
optimizer,
347+
_optimizer,
348348
input,
349349
&new_required_columns,
350350
true,
@@ -393,7 +393,7 @@ fn optimize_plan(
393393

394394
Ok(LogicalPlan::Analyze(Analyze {
395395
input: Arc::new(optimize_plan(
396-
optimizer,
396+
_optimizer,
397397
&a.input,
398398
&required_columns,
399399
false,
@@ -429,7 +429,7 @@ fn optimize_plan(
429429
new_required_columns.insert(f.qualified_column());
430430
});
431431
optimize_plan(
432-
optimizer,
432+
_optimizer,
433433
input_plan,
434434
&new_required_columns,
435435
has_projection,
@@ -478,7 +478,7 @@ fn optimize_plan(
478478
.filter(|c| schema.index_of_column(c).is_ok()),
479479
);
480480
let input = optimize_plan(
481-
optimizer,
481+
_optimizer,
482482
input,
483483
&new_required_columns,
484484
has_projection,
@@ -517,7 +517,7 @@ fn optimize_plan(
517517
.iter()
518518
.map(|input_plan| {
519519
optimize_plan(
520-
optimizer,
520+
_optimizer,
521521
input_plan,
522522
&new_required_columns,
523523
has_projection,

datafusion/core/src/physical_plan/sorts/sort.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ fn in_mem_partial_sort(
283283
let pre_sort = if buffered_batches.len() == 1 {
284284
buffered_batches.pop()
285285
} else {
286+
#[allow(clippy::iter_with_drain)]
286287
let batches = buffered_batches.drain(..).collect::<Vec<_>>();
287288
// combine all record batches into one for each column
288289
common::combine_batches(&batches, schema.clone())?

datafusion/jit/src/api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ impl<'a> CodeBlock<'a> {
260260
Ok(Stmt::IfElse(Box::new(condition.clone()), stmts, Vec::new()))
261261
} else {
262262
assert!(!then_stmts.is_empty());
263+
#[allow(clippy::iter_with_drain)]
263264
let then_stmts = then_stmts.drain(..).collect::<Vec<_>>();
264265
let else_stmts = self.stmts.drain(..).collect::<Vec<_>>();
265266
Ok(Stmt::IfElse(

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2022-03-08
1+
nightly-2022-03-22

0 commit comments

Comments
 (0)