mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-13 09:11:51 +00:00
Merge pull request #19448 from Veykril/push-lkmyospxqrzz
ci: Require miri step
This commit is contained in:
commit
fbad4e6850
4 changed files with 10 additions and 10 deletions
10
.github/workflows/ci.yaml
vendored
10
.github/workflows/ci.yaml
vendored
|
|
@ -15,7 +15,6 @@ env:
|
||||||
CARGO_NET_RETRY: 10
|
CARGO_NET_RETRY: 10
|
||||||
CI: 1
|
CI: 1
|
||||||
RUST_BACKTRACE: short
|
RUST_BACKTRACE: short
|
||||||
RUSTFLAGS: "-D warnings"
|
|
||||||
RUSTUP_MAX_RETRIES: 10
|
RUSTUP_MAX_RETRIES: 10
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -45,6 +44,9 @@ jobs:
|
||||||
if: github.repository == 'rust-lang/rust-analyzer' && needs.changes.outputs.proc_macros == 'true'
|
if: github.repository == 'rust-lang/rust-analyzer' && needs.changes.outputs.proc_macros == 'true'
|
||||||
name: proc-macro-srv
|
name: proc-macro-srv
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
RUSTFLAGS: "-D warnings"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -73,6 +75,7 @@ jobs:
|
||||||
name: Rust
|
name: Rust
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
|
RUSTFLAGS: "-D warnings"
|
||||||
CC: deny_c
|
CC: deny_c
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -168,7 +171,7 @@ jobs:
|
||||||
- name: Cache Dependencies
|
- name: Cache Dependencies
|
||||||
uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609
|
uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609
|
||||||
|
|
||||||
- run: cargo +nightly miri test --locked
|
- run: cargo +nightly miri test -p intern --locked
|
||||||
|
|
||||||
# Weird targets to catch non-portable code
|
# Weird targets to catch non-portable code
|
||||||
rust-cross:
|
rust-cross:
|
||||||
|
|
@ -181,6 +184,7 @@ jobs:
|
||||||
# The rust-analyzer binary is not expected to compile on WASM, but the IDE
|
# The rust-analyzer binary is not expected to compile on WASM, but the IDE
|
||||||
# crate should
|
# crate should
|
||||||
targets_ide: "wasm32-unknown-unknown"
|
targets_ide: "wasm32-unknown-unknown"
|
||||||
|
RUSTFLAGS: "-D warnings"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
@ -283,7 +287,7 @@ jobs:
|
||||||
run: typos
|
run: typos
|
||||||
|
|
||||||
conclusion:
|
conclusion:
|
||||||
needs: [rust, rust-cross, typescript, typo-check, proc-macro-srv]
|
needs: [rust, rust-cross, typescript, typo-check, proc-macro-srv, miri]
|
||||||
# We need to ensure this job does *not* get skipped if its dependencies fail,
|
# We need to ensure this job does *not* get skipped if its dependencies fail,
|
||||||
# because a skipped job is considered a success by GitHub. So we have to
|
# because a skipped job is considered a success by GitHub. So we have to
|
||||||
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
|
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
|
||||||
|
|
|
||||||
|
|
@ -223,7 +223,7 @@ impl HirPlace {
|
||||||
kind: MutBorrowKind::Default | MutBorrowKind::TwoPhasedBorrow,
|
kind: MutBorrowKind::Default | MutBorrowKind::TwoPhasedBorrow,
|
||||||
}) = current_capture
|
}) = current_capture
|
||||||
{
|
{
|
||||||
if self.projections[len..].iter().any(|it| *it == ProjectionElem::Deref) {
|
if self.projections[len..].contains(&ProjectionElem::Deref) {
|
||||||
current_capture =
|
current_capture =
|
||||||
CaptureKind::ByRef(BorrowKind::Mut { kind: MutBorrowKind::ClosureCapture });
|
CaptureKind::ByRef(BorrowKind::Mut { kind: MutBorrowKind::ClosureCapture });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -343,11 +343,7 @@ impl WorkspaceBuildScripts {
|
||||||
Message::CompilerArtifact(message) => {
|
Message::CompilerArtifact(message) => {
|
||||||
with_output_for(&message.package_id.repr, &mut |name, data| {
|
with_output_for(&message.package_id.repr, &mut |name, data| {
|
||||||
progress(format!("building proc-macros: {name}"));
|
progress(format!("building proc-macros: {name}"));
|
||||||
if message
|
if message.target.kind.contains(&cargo_metadata::TargetKind::ProcMacro)
|
||||||
.target
|
|
||||||
.kind
|
|
||||||
.iter()
|
|
||||||
.any(|k| *k == cargo_metadata::TargetKind::ProcMacro)
|
|
||||||
{
|
{
|
||||||
// Skip rmeta file
|
// Skip rmeta file
|
||||||
if let Some(filename) =
|
if let Some(filename) =
|
||||||
|
|
|
||||||
|
|
@ -254,7 +254,7 @@ impl TidyDocs {
|
||||||
d.file_name()
|
d.file_name()
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
.to_str()
|
.to_str()
|
||||||
.map(|f_n| file_names.iter().any(|name| *name == f_n))
|
.map(|f_n| file_names.contains(&f_n))
|
||||||
.unwrap_or(false)
|
.unwrap_or(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue