• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit / 29689376757
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: mergify/bp/stable/2.5/pr-16595
DEFAULT BRANCH: main
Ran 19 Jul 2026 02:13PM UTC
Jobs 1
Files 952
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Jul 2026 01:41PM UTC coverage: 87.653% (+0.02%) from 87.638%
29689376757

push

github

web-flow
Restrict `unsafe` blocks to single statements where possible. (#15806)

* Restrict `unsafe` blocks to single statements where possible.

To see which part of the code is unsafe, it is good to restrict `unsafe` blocks to the smallest sensible code unit. Clippy also has a feature to check this, `cargo clippy -- -W clippy::multiple_unsafe_ops_per_block`. This commit reduces some pretty large unsafe blocks to smaller ones to improve our code structure. Clippy actually flags _any_ snippet that has more than a single statement, but I left unsafe blocks in place where every single statement was actually unsafe.

* Reduce unsafe scopes further.

* More precise safety docs

* Update crates/cext/src/dag.rs

Co-authored-by: gadial <gadial@gmail.com>

* Addressing Matthew's comments from code review

* Fixing qargs computations for qubitless gates

* Rm accidentally added file

* Adjust safety message on neighbors

---------

Co-authored-by: Raynel Sanchez <raynelfss@hotmail.com>
Co-authored-by: Alexander Ivrii <alexi@il.ibm.com>
Co-authored-by: gadial <gadial@gmail.com>

120 of 146 new or added lines in 8 files covered. (82.19%)

16 existing lines in 4 files now uncovered.

112880 of 128780 relevant lines covered (87.65%)

1004926.85 hits per line

Uncovered Changes

Lines Coverage ∆ File
24
59.16
0.0% crates/cext/src/transpiler/transpile_function.rs
2
87.96
2.69% crates/cext/src/dag.rs

Coverage Regressions

Lines Coverage ∆ File
8
74.78
-0.33% crates/circuit/src/parameter/symbol_expr.rs
6
92.03
-1.03% crates/qasm2/src/lex.rs
1
89.44
2.48% crates/cext/src/transpiler/target.rs
1
90.33
0.0% crates/circuit/src/parameter/parameter_expression.rs
Jobs
ID Job ID Ran Files Coverage
1 29689376757.1 19 Jul 2026 02:13PM UTC 952
87.65
GitHub Action Run
Source Files on build 29689376757
  • Tree
  • List 952
  • Changed 13
  • Source Changed 9
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29689376757
  • 027999e5 on github
  • Prev Build on gh-readonly-queue/main/pr-16580-1ae440daacf8504f89191189720a9accb0281109 (#29689199179)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc