Skip to content

Commit a26b902

Browse files
bors[bot]xFrednet
andauthored
Merge #131
131: bump nightly -> 2023-04-20 r=xFrednet a=xFrednet Closes: #123 r? `@ghost` Co-authored-by: xFrednet <[email protected]>
2 parents 12228d1 + 4703f05 commit a26b902

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- uses: actions/checkout@v3
3939
- uses: actions-rs/toolchain@v1
4040
with:
41-
toolchain: nightly-2023-03-09
41+
toolchain: nightly-2023-04-20
4242
components: cargo, clippy, rustfmt
4343
- run: rustc -vV
4444
- run: cargo build

.github/workflows/rust_bors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v3
2828
- uses: actions-rs/toolchain@v1
2929
with:
30-
toolchain: nightly-2023-03-09
30+
toolchain: nightly-2023-04-20
3131
components: cargo, clippy, rustfmt
3232
- run: rustc -vV
3333
- run: cargo build

cargo-marker/src/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use crate::{cli::Flags, ExitStatus};
2121
/// This is the driver version and toolchain, that is used by the setup command
2222
/// to install the driver.
2323
static DEFAULT_DRIVER_INFO: Lazy<RustcDriverInfo> = Lazy::new(|| RustcDriverInfo {
24-
toolchain: "nightly-2023-03-09".to_string(),
24+
toolchain: "nightly-2023-04-20".to_string(),
2525
version: "0.1.0".to_string(),
2626
api_version: "0.1.0".to_string(),
2727
});

marker_driver_rustc/src/conversion/marker/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl<'ast, 'tcx> MarkerConverterInner<'ast, 'tcx> {
225225

226226
self.to_qpath(qpath, || match res_resolution_parent(self.rustc_cx, rustc_ty.hir_id) {
227227
hir::Node::Expr(_) | hir::Node::Stmt(_) => Some(self.resolve_qpath_in_body(qpath, rustc_ty.hir_id)),
228-
hir::Node::Item(item) => self.resolve_qpath_in_item(qpath, item.owner_id.to_def_id(), rustc_ty),
228+
hir::Node::Item(item) => self.resolve_qpath_in_item(qpath, item.owner_id.def_id, rustc_ty),
229229
hir::Node::TypeBinding(_) => None,
230230
_ => unreachable!("types will always have a statement, expression or item as their parent"),
231231
})
@@ -249,7 +249,7 @@ impl<'ast, 'tcx> MarkerConverterInner<'ast, 'tcx> {
249249
fn resolve_qpath_in_item(
250250
&self,
251251
qpath: &hir::QPath<'tcx>,
252-
item_id: hir::def_id::DefId,
252+
item_id: hir::def_id::LocalDefId,
253253
rustc_ty: &hir::Ty<'_>,
254254
) -> Option<hir::def::Res> {
255255
match qpath {

marker_driver_rustc/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#![feature(rustc_private)]
33
#![feature(lint_reasons)]
44
#![feature(let_chains)]
5-
#![feature(once_cell)]
65
#![warn(rustc::internal)]
76
#![warn(clippy::pedantic)]
87
#![allow(clippy::missing_panics_doc)]
@@ -41,7 +40,7 @@ use std::ops::Deref;
4140
use std::path::{Path, PathBuf};
4241
use std::process::{exit, Command};
4342

44-
const RUSTC_TOOLCHAIN_VERSION: &str = "nightly-2023-03-09";
43+
const RUSTC_TOOLCHAIN_VERSION: &str = "nightly-2023-04-20";
4544

4645
struct DefaultCallbacks;
4746
impl rustc_driver::Callbacks for DefaultCallbacks {}

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
2-
channel = "nightly-2023-03-09"
2+
channel = "nightly-2023-04-20"
33
components = ["cargo", "llvm-tools-preview", "rust-src", "rust-std", "rustc", "rustc-dev", "rustfmt"]
44
# This has to be synced with the toolchain in `github/workflows`

util/update-toolchain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
if [[ $1 == nightly-????-??-?? ]]
44
then
5-
sed -i "s/nightly-2023-03-09/$1/g" ./marker_driver_rustc/src/main.rs ./rust-toolchain .github/workflows/* ./util/update-toolchain.sh cargo-marker/src/driver.rs
5+
sed -i "s/nightly-2023-04-20/$1/g" ./marker_driver_rustc/src/main.rs ./rust-toolchain .github/workflows/* ./util/update-toolchain.sh cargo-marker/src/driver.rs
66
else
77
echo "Please enter a valid toolchain like \`nightly-2022-01-01\`"
88
fi;

0 commit comments

Comments
 (0)