Skip to content

Commit 0b372aa

Browse files
bors[bot]xFrednet
andauthored
Merge #135
135: bump nightly -> 2023-06-01 r=xFrednet a=xFrednet Just a simple nightly bump, not much more. Luckily, another simple one :) --- Closes #128 r? `@ghost` Co-authored-by: xFrednet <[email protected]>
2 parents b299a3d + ce6f3f3 commit 0b372aa

File tree

9 files changed

+18
-13
lines changed

9 files changed

+18
-13
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-04-20
41+
toolchain: nightly-2023-06-01
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-04-20
30+
toolchain: nightly-2023-06-01
3131
components: cargo, clippy, rustfmt
3232
- run: rustc -vV
3333
- run: cargo build

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ members = [
77
# This is needed for rust-analyzer, uitests and other tools
88
"marker_lints",
99
]
10+
resolver = "2"
1011

1112
[workspace.metadata.marker.lints]
1213
marker_lints = { path = "marker_lints" }

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-04-20".to_string(),
24+
toolchain: "nightly-2023-06-01".to_string(),
2525
version: "0.1.0".to_string(),
2626
api_version: "0.1.0".to_string(),
2727
});

marker_driver_rustc/src/context.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,27 +88,27 @@ impl<'ast, 'tcx: 'ast> DriverContext<'ast> for RustcContext<'ast, 'tcx> {
8888
lint,
8989
id,
9090
self.rustc_converter.to_span(diag.span),
91-
diag.msg(),
91+
diag.msg().to_string(),
9292
|builder| {
9393
for part in diag.parts.get() {
9494
match part {
9595
marker_api::diagnostic::DiagnosticPart::Help { msg } => {
96-
builder.help(msg.get());
96+
builder.help(msg.get().to_string());
9797
},
9898
marker_api::diagnostic::DiagnosticPart::HelpSpan { msg, span } => {
99-
builder.span_help(self.rustc_converter.to_span(span), msg.get());
99+
builder.span_help(self.rustc_converter.to_span(span), msg.get().to_string());
100100
},
101101
marker_api::diagnostic::DiagnosticPart::Note { msg } => {
102-
builder.note(msg.get());
102+
builder.note(msg.get().to_string());
103103
},
104104
marker_api::diagnostic::DiagnosticPart::NoteSpan { msg, span } => {
105-
builder.span_note(self.rustc_converter.to_span(span), msg.get());
105+
builder.span_note(self.rustc_converter.to_span(span), msg.get().to_string());
106106
},
107107
marker_api::diagnostic::DiagnosticPart::Suggestion { msg, span, sugg, app } => {
108108
builder.span_suggestion(
109109
self.rustc_converter.to_span(span),
110-
msg.get(),
111-
sugg.get(),
110+
msg.get().to_string(),
111+
sugg.get().to_string(),
112112
self.rustc_converter.to_applicability(*app),
113113
);
114114
},

marker_driver_rustc/src/conversion/marker/expr.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ impl<'ast, 'tcx> MarkerConverterInner<'ast, 'tcx> {
292292
StrLitData::Bytes(self.alloc_slice(bytes.iter().copied()).into()),
293293
)
294294
})),
295+
// Still unstable see: https://github.com/rust-lang/rust/issues/105723
296+
rustc_ast::LitKind::CStr(_, _) => {
297+
ExprKind::Unstable(self.alloc(UnstableExpr::new(data, ExprPrecedence::Lit)))
298+
},
295299
rustc_ast::LitKind::Byte(value) => {
296300
ExprKind::IntLit(self.alloc(IntLitExpr::new(data, u128::from(*value), None)))
297301
},

marker_driver_rustc/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ use std::ops::Deref;
4040
use std::path::{Path, PathBuf};
4141
use std::process::{exit, Command};
4242

43-
const RUSTC_TOOLCHAIN_VERSION: &str = "nightly-2023-04-20";
43+
const RUSTC_TOOLCHAIN_VERSION: &str = "nightly-2023-06-01";
4444

4545
struct DefaultCallbacks;
4646
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-04-20"
2+
channel = "nightly-2023-06-01"
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-04-20/$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-06-01/$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)