Comments (6)
Strange, this runs even after I removed the doctest itself, target
folder, as well as doing a cargo clean
. Does cargo
keep a cache of this test somewhere outside of the project?
from rust.
...weird.
can you provide a version that compiles and repros?
from rust.
...weird.
can you provide a version that compiles and repros?
https://github.com/ProfFan/icm426xx on main
I don't know if this is my macOS being funky, this is the only system I have.
Just run cargo test
and this should trigger?
from rust.
nvm, it's this trick from stackoverflow that got me:
#![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/README.md"))]
This results in doctest trying to run the code snippet from README.
However this problem is still valid: the displayed line number is clearly incorrect. It shows the line number of my disabled test in the source code.
from rust.
Same problem in this post.
from rust.
Similar but not exact issue #81070
from rust.
Related Issues (20)
- compiletest: error if `-Cincremental` is passed in compile-flags in ui tests HOT 2
- compiletest: don't silently accept unsupported directives in test suites
- Type parameter captured inside closure may not live long enough HOT 2
- Error when running windows .exe compiled on linux HOT 6
- global_asm-implemented extern "C" functions are not exported from dylib crates HOT 5
- UdpSocket `recv()` fails after `send()` to a closed port HOT 3
- Compiler crash when trying to compile Zed HOT 5
- The `slice::chunks_exact` iterator does not optimize when the initial slice is non-empty
- Invalid cast error when trying to cast a closure to a function pointer should mention captured variables
- Bad codegen for `non-copy-derived` struct with all `Copy` derived fields HOT 9
- `choose_multiple_weighted` returns unexpect probability of result HOT 1
- Compiler crash when trying to compile a project with a lot of dependencies HOT 1
- `Result::unwrap()` on an `Err` value: ReferencesError(ErrorGuaranteed(())) HOT 1
- rustc fails to prove `Send`ness for an `async` block where a `!Send` value is dropped before an `.await` point HOT 4
- Async Borrowing Issue HOT 1
- compiler/rustc_borrowck/src/borrow_set.rs:250:17: found two uses for 2-phase borrow temporary HOT 1
- Tracking Issue for `unsigned_is_multiple_of`
- Runtime error using f64::sin in `wasm32` HOT 12
- Confusing error around 2024 impl trait lifetime capture HOT 2
- rustc 1.79.0 commit hash 129f3b996 not found in repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.