[INFO] fetching crate cedar-policy-formatter 3.3.0... [INFO] checking cedar-policy-formatter-3.3.0 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate cedar-policy-formatter 3.3.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate cedar-policy-formatter 3.3.0 on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cedar-policy-formatter 3.3.0 [INFO] finished tweaking crates.io crate cedar-policy-formatter 3.3.0 [INFO] tweaked toml for crates.io crate cedar-policy-formatter 3.3.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 136 packages to latest compatible versions [INFO] [stderr] Adding arrayvec v0.5.2 (latest: v0.7.6) [INFO] [stderr] Adding bit-set v0.5.3 (latest: v0.8.0) [INFO] [stderr] Adding bit-vec v0.6.3 (latest: v0.8.0) [INFO] [stderr] Adding encode_unicode v0.3.6 (latest: v1.0.0) [INFO] [stderr] Adding fixedbitset v0.4.2 (latest: v0.5.7) [INFO] [stderr] Adding hashbrown v0.12.3 (latest: v0.14.5) [INFO] [stderr] Adding indexmap v1.9.3 (latest: v2.5.0) [INFO] [stderr] Adding itertools v0.11.0 (latest: v0.13.0) [INFO] [stderr] Adding itertools v0.12.1 (latest: v0.13.0) [INFO] [stderr] Adding lalrpop v0.20.2 (latest: v0.21.0) [INFO] [stderr] Adding lalrpop-util v0.20.2 (latest: v0.21.0) [INFO] [stderr] Adding phf_shared v0.10.0 (latest: v0.11.2) [INFO] [stderr] Adding siphasher v0.3.11 (latest: v1.0.1) [INFO] [stderr] Adding term v0.7.0 (latest: v1.0.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-core v0.52.0 (latest: v0.58.0) [INFO] [stderr] Adding windows-sys v0.52.0 (latest: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] beb16c6b3ee66ada3b45572bf388f545edf0ef89b3772dd8fbd940adfbde8ff5 [INFO] running `Command { std: "docker" "start" "-a" "beb16c6b3ee66ada3b45572bf388f545edf0ef89b3772dd8fbd940adfbde8ff5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "beb16c6b3ee66ada3b45572bf388f545edf0ef89b3772dd8fbd940adfbde8ff5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "beb16c6b3ee66ada3b45572bf388f545edf0ef89b3772dd8fbd940adfbde8ff5", kill_on_drop: false }` [INFO] [stdout] beb16c6b3ee66ada3b45572bf388f545edf0ef89b3772dd8fbd940adfbde8ff5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63dcfd0b41a6a0428335ab13a911c26941e996ac8fe4859498d341d034118c9d [INFO] running `Command { std: "docker" "start" "-a" "63dcfd0b41a6a0428335ab13a911c26941e996ac8fe4859498d341d034118c9d", kill_on_drop: false }` [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Checking serde v1.0.209 [INFO] [stderr] Compiling psm v0.1.22 [INFO] [stderr] Compiling unicode-xid v0.2.5 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Compiling pico-args v0.5.0 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling stacker v0.1.17 [INFO] [stderr] Compiling logos-codegen v0.14.1 [INFO] [stderr] Compiling miette-derive v7.2.0 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Checking rustc_lexer v0.1.0 [INFO] [stderr] Checking bstr v1.10.0 [INFO] [stderr] Checking nonempty v0.10.0 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking pretty v0.12.3 [INFO] [stderr] Checking similar v2.6.0 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling logos-derive v0.14.1 [INFO] [stderr] Checking logos v0.14.1 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling lalrpop-util v0.20.2 [INFO] [stderr] Checking smol_str v0.2.2 [INFO] [stderr] Checking miette v7.2.0 [INFO] [stderr] Compiling lalrpop v0.20.2 [INFO] [stderr] Checking globset v0.4.14 [INFO] [stderr] Checking insta v1.39.0 [INFO] [stderr] Checking serde_with v3.9.0 [INFO] [stderr] Compiling cedar-policy-core v3.3.0 [INFO] [stderr] Checking cedar-policy-formatter v3.3.0 (/opt/rustwide/workdir) [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/fmt.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | .map(|p| (p.id().to_smolstr(), p)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/fmt.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | .map(|p| (p.id().to_smolstr(), p)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 41 | let var_doc = vd.variable.as_inner()?.to_doc(context)?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 42 | [INFO] [stdout] 43 | let is_doc = match &vd.entity_type { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 63 | Some(match &vd.ineq { [INFO] [stdout] | ______________^ [INFO] [stdout] 64 | | Some((op, rhs)) => { [INFO] [stdout] 65 | | let op_comment = match &vd.entity_type { [INFO] [stdout] 66 | | Some(entity_type) => { [INFO] [stdout] ... | [INFO] [stdout] 89 | | None => add_comment(var_doc, start_comment, RcDoc::nil()).append(is_doc), [INFO] [stdout] 90 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:103:14 [INFO] [stdout] | [INFO] [stdout] 101 | let rb_doc = add_comment(RcDoc::text("}"), rb_comment, RcDoc::nil()); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 102 | let cond_doc = cond.cond.to_doc(context)?; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 103 | Some(match cond.expr.as_ref() { [INFO] [stdout] | ______________^ [INFO] [stdout] 104 | | Some(expr) => { [INFO] [stdout] 105 | | let expr_leading_comment = [INFO] [stdout] 106 | | get_leading_comment_at_start(expr.loc.span, &mut context.tokens)?; [INFO] [stdout] ... | [INFO] [stdout] 153 | | ), [INFO] [stdout] 154 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:207:14 [INFO] [stdout] | [INFO] [stdout] 199 | let mut d: RcDoc<'_> = RcDoc::nil(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 207 | Some(d.append(es.last()?.to_doc(context))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:227:14 [INFO] [stdout] | [INFO] [stdout] 219 | let mut d: RcDoc<'_> = RcDoc::nil(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 227 | Some(d.append(es.last()?.to_doc(context))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:339:26 [INFO] [stdout] | [INFO] [stdout] 338 | .try_fold((initial.to_doc(context)?, initial), |pair, (op, e)| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 339 | Some(( [INFO] [stdout] | __________________________^ [INFO] [stdout] 340 | | pair.0 [INFO] [stdout] 341 | | .append(RcDoc::space()) [INFO] [stdout] 342 | | .append(add_comment( [INFO] [stdout] ... | [INFO] [stdout] 349 | | e, [INFO] [stdout] 350 | | )) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:375:26 [INFO] [stdout] | [INFO] [stdout] 374 | .try_fold((initial.to_doc(context)?, initial), |pair, (op, e)| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 375 | Some(( [INFO] [stdout] | __________________________^ [INFO] [stdout] 376 | | pair.0 [INFO] [stdout] 377 | | .append(RcDoc::space()) [INFO] [stdout] 378 | | .append(add_comment( [INFO] [stdout] ... | [INFO] [stdout] 385 | | e, [INFO] [stdout] 386 | | )) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:439:13 [INFO] [stdout] | [INFO] [stdout] 437 | let item_doc = self.item.to_doc(context)?; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 438 | Some( [INFO] [stdout] 439 | / item_doc [INFO] [stdout] 440 | | .append( [INFO] [stdout] 441 | | RcDoc::intersperse( [INFO] [stdout] 442 | | self.access.iter().map(|ac| ac.to_doc(context)), [INFO] [stdout] ... | [INFO] [stdout] 446 | | ) [INFO] [stdout] 447 | | .group(), [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |________________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:458:13 [INFO] [stdout] | [INFO] [stdout] 455 | let key_doc = e.0.to_doc(context)?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 456 | let value_doc = e.1.to_doc(context)?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 457 | Some( [INFO] [stdout] 458 | / key_doc [INFO] [stdout] 459 | | .append(RcDoc::line_()) [INFO] [stdout] 460 | | .append(add_comment( [INFO] [stdout] 461 | | RcDoc::text(":"), [INFO] [stdout] ... | [INFO] [stdout] 464 | | )) [INFO] [stdout] 465 | | .append(value_doc), [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |__________________________________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:485:34 [INFO] [stdout] | [INFO] [stdout] 483 | |pair, p| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 484 | let (d, e) = pair; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 485 | Some(( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 486 | | d.append(add_comment( [INFO] [stdout] 487 | | RcDoc::text("::"), [INFO] [stdout] 488 | | get_comment_after_end(e.loc.span, &mut context.tokens)?, [INFO] [stdout] ... | [INFO] [stdout] 492 | | p, [INFO] [stdout] 493 | | )) [INFO] [stdout] | |_____________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:590:34 [INFO] [stdout] | [INFO] [stdout] 588 | .try_fold((el.first()?.to_doc(context)?, el.first()?), |pair, v| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 589 | let (d, e) = pair; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 590 | Some(( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 591 | | d.append(add_comment( [INFO] [stdout] 592 | | RcDoc::text(","), [INFO] [stdout] 593 | | get_comment_after_end(e.loc.span, &mut context.tokens)?, [INFO] [stdout] ... | [INFO] [stdout] 598 | | v, [INFO] [stdout] 599 | | )) [INFO] [stdout] | |_____________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:622:34 [INFO] [stdout] | [INFO] [stdout] 620 | .try_fold((ri.first()?.to_doc(context)?, ri.first()?), |pair, v| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 621 | let (d, e) = pair; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 622 | Some(( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 623 | | d.append(add_comment( [INFO] [stdout] 624 | | RcDoc::text(","), [INFO] [stdout] 625 | | get_comment_after_end(e.loc.span, &mut context.tokens)?, [INFO] [stdout] ... | [INFO] [stdout] 630 | | v, [INFO] [stdout] 631 | | )) [INFO] [stdout] | |_____________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:679:38 [INFO] [stdout] | [INFO] [stdout] 677 | ... |pair, arg| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 678 | ... let (d, e) = pair; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 679 | ... Some(( [INFO] [stdout] | ________________________________^ [INFO] [stdout] 680 | | ... d.append(add_comment( [INFO] [stdout] 681 | | ... RcDoc::text(","), [INFO] [stdout] 682 | | ... get_comment_after_end(e.loc.span, &mut context.tokens)?, [INFO] [stdout] ... | [INFO] [stdout] 687 | | ... arg, [INFO] [stdout] 688 | | ... )) [INFO] [stdout] | |___________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:741:13 [INFO] [stdout] | [INFO] [stdout] 723 | let id_doc = annotation.key.to_doc(context); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 724 | let val_doc = annotation.value.to_doc(context); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 725 | let at_doc = add_comment( [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 730 | let lp_doc = add_comment( [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 735 | let rp_doc = add_comment( [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 741 | / at_doc [INFO] [stdout] 742 | | .append(id_doc) [INFO] [stdout] 743 | | .append(lp_doc) [INFO] [stdout] 744 | | .append(val_doc) [INFO] [stdout] 745 | | .append(rp_doc), [INFO] [stdout] | |_______________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:821:13 [INFO] [stdout] | [INFO] [stdout] 764 | let anno_doc = RcDoc::intersperse( [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 770 | let eff_doc = policy.effect.to_doc(context)?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 771 | let vars = &policy.variables; [INFO] [stdout] 772 | let principal_doc = vars.first()?.to_doc(context)?; [INFO] [stdout] | ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 773 | let action_doc = vars.get(1)?.to_doc(context)?; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 774 | let resource_doc = vars.get(2)?.to_doc(context)?; [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 775 | let vars_doc = if vars.get(0..3)?.iter().all(|v| { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 818 | let cond_doc = [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 821 | / anno_doc [INFO] [stdout] 822 | | .append( [INFO] [stdout] 823 | | get_leading_comment_doc_from_str(&eff_leading_comment).append( [INFO] [stdout] 824 | | eff_doc [INFO] [stdout] ... | [INFO] [stdout] 848 | | RcDoc::nil(), [INFO] [stdout] 849 | | )), [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |__________________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/lexer.rs:60:28 [INFO] [stdout] | [INFO] [stdout] 60 | .map(|(t, s)| Some(WrappedToken::new(t.ok()?, Comment::default(), s))) [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/utils.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn add_brackets<'a>(d: RcDoc<'a>, leftp: RcDoc<'a>, rightp: RcDoc<'a>) -> RcDoc<'a> { [INFO] [stdout] | ------------ ---------------- ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 25 | leftp.append(d.nest(1)).append(rightp) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/utils.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn add_comment<'a>(d: RcDoc<'a>, comment: Comment, next_doc: RcDoc<'a>) -> RcDoc<'a> { [INFO] [stdout] | ------------ ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 135 | let leading_comment_doc = get_leading_comment_doc_from_str(&leading_comment); [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 136 | let trailing_comment_doc = get_trailing_comment_doc_from_str(&trailing_comment, next_doc); [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 137 | leading_comment_doc.append(d).append(trailing_comment_doc) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cedar-policy-formatter` (lib test) due to 20 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/fmt.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | .map(|p| (p.id().to_smolstr(), p)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/fmt.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | .map(|p| (p.id().to_smolstr(), p)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 41 | let var_doc = vd.variable.as_inner()?.to_doc(context)?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 42 | [INFO] [stdout] 43 | let is_doc = match &vd.entity_type { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 63 | Some(match &vd.ineq { [INFO] [stdout] | ______________^ [INFO] [stdout] 64 | | Some((op, rhs)) => { [INFO] [stdout] 65 | | let op_comment = match &vd.entity_type { [INFO] [stdout] 66 | | Some(entity_type) => { [INFO] [stdout] ... | [INFO] [stdout] 89 | | None => add_comment(var_doc, start_comment, RcDoc::nil()).append(is_doc), [INFO] [stdout] 90 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:103:14 [INFO] [stdout] | [INFO] [stdout] 101 | let rb_doc = add_comment(RcDoc::text("}"), rb_comment, RcDoc::nil()); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 102 | let cond_doc = cond.cond.to_doc(context)?; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 103 | Some(match cond.expr.as_ref() { [INFO] [stdout] | ______________^ [INFO] [stdout] 104 | | Some(expr) => { [INFO] [stdout] 105 | | let expr_leading_comment = [INFO] [stdout] 106 | | get_leading_comment_at_start(expr.loc.span, &mut context.tokens)?; [INFO] [stdout] ... | [INFO] [stdout] 153 | | ), [INFO] [stdout] 154 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:207:14 [INFO] [stdout] | [INFO] [stdout] 199 | let mut d: RcDoc<'_> = RcDoc::nil(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 207 | Some(d.append(es.last()?.to_doc(context))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:227:14 [INFO] [stdout] | [INFO] [stdout] 219 | let mut d: RcDoc<'_> = RcDoc::nil(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 227 | Some(d.append(es.last()?.to_doc(context))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:339:26 [INFO] [stdout] | [INFO] [stdout] 338 | .try_fold((initial.to_doc(context)?, initial), |pair, (op, e)| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 339 | Some(( [INFO] [stdout] | __________________________^ [INFO] [stdout] 340 | | pair.0 [INFO] [stdout] 341 | | .append(RcDoc::space()) [INFO] [stdout] 342 | | .append(add_comment( [INFO] [stdout] ... | [INFO] [stdout] 349 | | e, [INFO] [stdout] 350 | | )) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:375:26 [INFO] [stdout] | [INFO] [stdout] 374 | .try_fold((initial.to_doc(context)?, initial), |pair, (op, e)| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 375 | Some(( [INFO] [stdout] | __________________________^ [INFO] [stdout] 376 | | pair.0 [INFO] [stdout] 377 | | .append(RcDoc::space()) [INFO] [stdout] 378 | | .append(add_comment( [INFO] [stdout] ... | [INFO] [stdout] 385 | | e, [INFO] [stdout] 386 | | )) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:439:13 [INFO] [stdout] | [INFO] [stdout] 437 | let item_doc = self.item.to_doc(context)?; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 438 | Some( [INFO] [stdout] 439 | / item_doc [INFO] [stdout] 440 | | .append( [INFO] [stdout] 441 | | RcDoc::intersperse( [INFO] [stdout] 442 | | self.access.iter().map(|ac| ac.to_doc(context)), [INFO] [stdout] ... | [INFO] [stdout] 446 | | ) [INFO] [stdout] 447 | | .group(), [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |________________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:458:13 [INFO] [stdout] | [INFO] [stdout] 455 | let key_doc = e.0.to_doc(context)?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 456 | let value_doc = e.1.to_doc(context)?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 457 | Some( [INFO] [stdout] 458 | / key_doc [INFO] [stdout] 459 | | .append(RcDoc::line_()) [INFO] [stdout] 460 | | .append(add_comment( [INFO] [stdout] 461 | | RcDoc::text(":"), [INFO] [stdout] ... | [INFO] [stdout] 464 | | )) [INFO] [stdout] 465 | | .append(value_doc), [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |__________________________________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:485:34 [INFO] [stdout] | [INFO] [stdout] 483 | |pair, p| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 484 | let (d, e) = pair; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 485 | Some(( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 486 | | d.append(add_comment( [INFO] [stdout] 487 | | RcDoc::text("::"), [INFO] [stdout] 488 | | get_comment_after_end(e.loc.span, &mut context.tokens)?, [INFO] [stdout] ... | [INFO] [stdout] 492 | | p, [INFO] [stdout] 493 | | )) [INFO] [stdout] | |_____________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:590:34 [INFO] [stdout] | [INFO] [stdout] 588 | .try_fold((el.first()?.to_doc(context)?, el.first()?), |pair, v| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 589 | let (d, e) = pair; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 590 | Some(( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 591 | | d.append(add_comment( [INFO] [stdout] 592 | | RcDoc::text(","), [INFO] [stdout] 593 | | get_comment_after_end(e.loc.span, &mut context.tokens)?, [INFO] [stdout] ... | [INFO] [stdout] 598 | | v, [INFO] [stdout] 599 | | )) [INFO] [stdout] | |_____________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:622:34 [INFO] [stdout] | [INFO] [stdout] 620 | .try_fold((ri.first()?.to_doc(context)?, ri.first()?), |pair, v| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 621 | let (d, e) = pair; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 622 | Some(( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 623 | | d.append(add_comment( [INFO] [stdout] 624 | | RcDoc::text(","), [INFO] [stdout] 625 | | get_comment_after_end(e.loc.span, &mut context.tokens)?, [INFO] [stdout] ... | [INFO] [stdout] 630 | | v, [INFO] [stdout] 631 | | )) [INFO] [stdout] | |_____________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:679:38 [INFO] [stdout] | [INFO] [stdout] 677 | ... |pair, arg| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 678 | ... let (d, e) = pair; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 679 | ... Some(( [INFO] [stdout] | ________________________________^ [INFO] [stdout] 680 | | ... d.append(add_comment( [INFO] [stdout] 681 | | ... RcDoc::text(","), [INFO] [stdout] 682 | | ... get_comment_after_end(e.loc.span, &mut context.tokens)?, [INFO] [stdout] ... | [INFO] [stdout] 687 | | ... arg, [INFO] [stdout] 688 | | ... )) [INFO] [stdout] | |___________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:741:13 [INFO] [stdout] | [INFO] [stdout] 723 | let id_doc = annotation.key.to_doc(context); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 724 | let val_doc = annotation.value.to_doc(context); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 725 | let at_doc = add_comment( [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 730 | let lp_doc = add_comment( [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 735 | let rp_doc = add_comment( [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 741 | / at_doc [INFO] [stdout] 742 | | .append(id_doc) [INFO] [stdout] 743 | | .append(lp_doc) [INFO] [stdout] 744 | | .append(val_doc) [INFO] [stdout] 745 | | .append(rp_doc), [INFO] [stdout] | |_______________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/doc.rs:821:13 [INFO] [stdout] | [INFO] [stdout] 764 | let anno_doc = RcDoc::intersperse( [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 770 | let eff_doc = policy.effect.to_doc(context)?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 771 | let vars = &policy.variables; [INFO] [stdout] 772 | let principal_doc = vars.first()?.to_doc(context)?; [INFO] [stdout] | ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 773 | let action_doc = vars.get(1)?.to_doc(context)?; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 774 | let resource_doc = vars.get(2)?.to_doc(context)?; [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 775 | let vars_doc = if vars.get(0..3)?.iter().all(|v| { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 818 | let cond_doc = [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 821 | / anno_doc [INFO] [stdout] 822 | | .append( [INFO] [stdout] 823 | | get_leading_comment_doc_from_str(&eff_leading_comment).append( [INFO] [stdout] 824 | | eff_doc [INFO] [stdout] ... | [INFO] [stdout] 848 | | RcDoc::nil(), [INFO] [stdout] 849 | | )), [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |__________________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/lexer.rs:60:28 [INFO] [stdout] | [INFO] [stdout] 60 | .map(|(t, s)| Some(WrappedToken::new(t.ok()?, Comment::default(), s))) [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/utils.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn add_brackets<'a>(d: RcDoc<'a>, leftp: RcDoc<'a>, rightp: RcDoc<'a>) -> RcDoc<'a> { [INFO] [stdout] | ------------ ---------------- ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 25 | leftp.append(d.nest(1)).append(rightp) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pprint/utils.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn add_comment<'a>(d: RcDoc<'a>, comment: Comment, next_doc: RcDoc<'a>) -> RcDoc<'a> { [INFO] [stdout] | ------------ ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 135 | let leading_comment_doc = get_leading_comment_doc_from_str(&leading_comment); [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 136 | let trailing_comment_doc = get_trailing_comment_doc_from_str(&trailing_comment, next_doc); [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 137 | leading_comment_doc.append(d).append(trailing_comment_doc) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cedar-policy-formatter` (lib) due to 20 previous errors [INFO] running `Command { std: "docker" "inspect" "63dcfd0b41a6a0428335ab13a911c26941e996ac8fe4859498d341d034118c9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63dcfd0b41a6a0428335ab13a911c26941e996ac8fe4859498d341d034118c9d", kill_on_drop: false }` [INFO] [stdout] 63dcfd0b41a6a0428335ab13a911c26941e996ac8fe4859498d341d034118c9d