Skip to content

Commit 91b1835

Browse files
bors[bot]xFrednet
andauthored
Merge #172
172: Bump nightly -> 2023-07-13 r=xFrednet a=xFrednet Luckly a simple bump :D --- Closes: #134 Co-authored-by: xFrednet <[email protected]>
2 parents bc5848e + 883351e commit 91b1835

File tree

8 files changed

+19
-15
lines changed

8 files changed

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

cargo-marker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ FIXME(xFrednet): Add license shield, once crates.io also says:
2222
* **Simple CLI**: *cargo_marker* does all the heavy lifting for you, making custom code analysis, as simple as a single console command.
2323
* **Seamless Integration**: *cargo_marker* reuses Rust's existing infrastructure for linting, running Marker as part of your workflow is close to the effort needed for its sibling *[Clippy]*.
2424
* **Automatic Lint-Crate Compilation**: *cargo_marker* automatically fetches and builds specified lint crates, streamlining the process of incorporating additional linting rules into your project.
25-
* **User-Friendly Setup**: *cargo_marker* can automatically set up the driver and toolchain, allowing you to focus on writing quality code. (This version will setup rustc's driver for `nightly-2023-06-01`)
25+
* **User-Friendly Setup**: *cargo_marker* can automatically set up the driver and toolchain, allowing you to focus on writing quality code. (This version will setup rustc's driver for `nightly-2023-07-13`)
2626

2727
## Prerequisites
2828

cargo-marker/src/backend/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub const MARKER_DRIVER_BIN_NAME: &str = "marker_rustc_driver.exe";
1414
/// This is the driver version and toolchain, that is used by the setup command
1515
/// to install the driver.
1616
pub static DEFAULT_DRIVER_INFO: Lazy<DriverVersionInfo> = Lazy::new(|| DriverVersionInfo {
17-
toolchain: "nightly-2023-06-01".to_string(),
17+
toolchain: "nightly-2023-07-13".to_string(),
1818
version: "0.1.0".to_string(),
1919
api_version: "0.1.0".to_string(),
2020
});

marker_api/src/context.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,13 @@ impl<'ast> AstContext<'ast> {
202202
/// This struct holds function pointers to driver implementations of required
203203
/// functions. These can roughly be split into two categories:
204204
///
205-
/// 1. **Public utility**: These functions will be exposed to lint-crates via
206-
/// an [`AstContext`] instance. Therefore, the function signature of these
207-
/// has to be stable, or at least be stable for [`AstContext`].
208-
/// 2. **Internal utility**: These functions are intended for internal usage
209-
/// inside the API or the `marker_adapter` crate. Some nodes might also have
210-
/// a reference to these callbacks to request additional information if
211-
/// required. These are not part of the stable API and can therefore be changed.
205+
/// 1. **Public utility**: These functions will be exposed to lint-crates via an [`AstContext`]
206+
/// instance. Therefore, the function signature of these has to be stable, or at least be stable
207+
/// for [`AstContext`].
208+
/// 2. **Internal utility**: These functions are intended for internal usage inside the API or the
209+
/// `marker_adapter` crate. Some nodes might also have a reference to these callbacks to request
210+
/// additional information if required. These are not part of the stable API and can therefore be
211+
/// changed.
212212
///
213213
/// Any changes to this struct will most likely require changes to the
214214
/// `DriverContextWrapper` implementation in the `marker_adapter` crate. That

marker_rustc_driver/src/main.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ use std::ops::Deref;
3737
use std::path::{Path, PathBuf};
3838
use std::process::{exit, Command};
3939

40-
const RUSTC_TOOLCHAIN_VERSION: &str = "nightly-2023-06-01";
40+
use rustc_session::config::ErrorOutputType;
41+
use rustc_session::EarlyErrorHandler;
42+
43+
const RUSTC_TOOLCHAIN_VERSION: &str = "nightly-2023-07-13";
4144

4245
struct DefaultCallbacks;
4346
impl rustc_driver::Callbacks for DefaultCallbacks {}
@@ -135,7 +138,8 @@ interfacing with the driver directly and use `cargo marker` instead.
135138
}
136139

137140
fn main() {
138-
rustc_driver::init_rustc_env_logger();
141+
let handler = EarlyErrorHandler::new(ErrorOutputType::default());
142+
rustc_driver::init_rustc_env_logger(&handler);
139143

140144
// FIXME: Add ICE hook. Ideally this would distinguish where the error happens.
141145
// ICEs have to be reported like in Clippy. For lint impl ICEs we should have

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-06-01"
2+
channel = "nightly-2023-07-13"
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-06-01/$1/g" ./marker_rustc_driver/src/main.rs ./rust-toolchain ./.github/workflows/* ./util/update-toolchain.sh .cargo-marker/src/backend/driver.rs ./cargo-marker/README.md
5+
sed -i "s/nightly-2023-07-13/$1/g" ./marker_rustc_driver/src/main.rs ./rust-toolchain ./.github/workflows/* ./util/update-toolchain.sh ./cargo-marker/src/backend/driver.rs ./cargo-marker/README.md
66
else
77
echo "Please enter a valid toolchain like \`nightly-2022-01-01\`"
88
fi;

0 commit comments

Comments
 (0)