Skip to content

Commit 70730fc

Browse files
committed
Upgrade Rust toolchain to nightly-2024-06-21
Related change: - rust-lang/rust#126623
1 parent 12ff35f commit 70730fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

kani-compiler/src/kani_middle/attributes.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ fn parse_modify_values<'a>(
628628
std::iter::from_fn(move || {
629629
let tree = iter.next()?;
630630
let wrong_token_err =
631-
|| tcx.sess.psess.dcx.span_err(tree.span(), "Unexpected token. Expected identifier.");
631+
|| tcx.sess.dcx().span_err(tree.span(), "Unexpected token. Expected identifier.");
632632
let result = match tree {
633633
TokenTree::Token(token, _) => {
634634
if let TokenKind::Ident(id, _) = &token.kind {
@@ -655,7 +655,7 @@ fn parse_modify_values<'a>(
655655
match iter.next() {
656656
None | Some(comma_tok!()) => (),
657657
Some(not_comma) => {
658-
tcx.sess.psess.dcx.span_err(
658+
tcx.sess.dcx().span_err(
659659
not_comma.span(),
660660
"Unexpected token, expected end of attribute or comma",
661661
);

rust-toolchain.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# SPDX-License-Identifier: Apache-2.0 OR MIT
33

44
[toolchain]
5-
channel = "nightly-2024-06-18"
5+
channel = "nightly-2024-06-21"
66
components = ["llvm-tools", "rustc-dev", "rust-src", "rustfmt"]

0 commit comments

Comments
 (0)