Comments (3)
@rustbot label -needs-triage +C-feature-request +F-check-cfg +T-compiler
from rust.
That's an interesting idea, but I'm not sure how valuable it would be given the implementation challenges and the small number of potential users.
However regarding the "leads to noisy logs" part you can already significantly reduce the number of --check-cfg
args by factorizing them by their values:
To avoid repeating the same set of values, use this form:
rustc --check-cfg 'cfg(name1, ..., nameN, values("value1", "value2", ... "valueN"))'
Which in your case would be something like: cfg(__ashldi3, __ashlsi3, __ashrdi3, ..., __aarch64_swp8_acq_rel, values("optimized-c"))
; this would already reduce significantly the number of arguments based on the logs you gave us.
One thing we should on our end, is using a dedicated argument file to pass all the --check-cfg
arguments at once, rust-lang/cargo#13941.
from rust.
However regarding the "leads to noisy logs" part you can already significantly reduce the number of
--check-cfg
args by factorizing them by their values:To avoid repeating the same set of values, use this form:
rustc --check-cfg 'cfg(name1, ..., nameN, values("value1", "value2", ... "valueN"))'
Which in your case would be something like:
cfg(__ashldi3, __ashlsi3, __ashrdi3, ..., __aarch64_swp8_acq_rel, values("optimized-c"))
; this would already reduce significantly the number of arguments based on the logs you gave us.
I didn't know that was an option, thanks for the pointer.
One thing we should on our end, is using a dedicated argument file to pass all the
--check-cfg
arguments at once, rust-lang/cargo#13941.
That would be even better, and would solve the biggest problem I have here. With that open, I agree that regex probably wouldn't have many users.
from rust.
Related Issues (20)
- runtime error: global allocator may not use TLS on arm64 macos HOT 6
- Compiler hangs and consumes unbounded memory with complex trait bounds HOT 8
- ICE: `non-Aggregate field with matching ABI but differing alignment` HOT 2
- ICE: unnamed fields: `internal compiler error: could not resolve DefId` HOT 1
- Feature request: Function to join thread with timeout HOT 2
- const Traits not being handled inside const associated functions/methods HOT 2
- rustdoc reproducibility issue due to nondeterministic anon.llvm.<hash> HOT 1
- Fix internal `Wtf8Buf::extend_from_slice` check HOT 2
- ICE: `assertion left == right failed` in `rustc_const_eval/src/interpret/cast.rs unsize_into` HOT 3
- Regression from new lint `out_of_scope_macro_calls` HOT 4
- rustdoc: panic when using `macro@` and `!` for referencing a macro in documentation HOT 1
- If-else type checking fails with trait method calls and closures HOT 5
- Lots of testsuite failures on powerpc-unknown-linux-gnu after #118709 HOT 4
- Taking reference to function gets optimized to be 0x1 HOT 5
- document args for `-Zbuild-std` when folks aren't building everything HOT 5
- Well-formedness analysis pass on trait impl paniced HOT 2
- Unnecessary move in trait object comparison HOT 1
- Type inference complains about unknown size for `dyn Any` HOT 3
- ICE(non_lifetime_binders): const bound params not handled correctly HOT 3
- diagnostics should prefer naming items through the extern prelude instead of doc-hidden type aliases
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.