os-rust/compiler/rustc_session/src
Matthias Krüger fe5403f517
Rollup merge of #130236 - yaahc:unstable-feature-usage, r=estebank
unstable feature usage metrics

example output

```
test-lib on  master [?] is 📦 v0.1.0 via 🦀 v1.80.1
❯ cat src/lib.rs
───────┬───────────────────────────────────────────────────────
       │ File: src/lib.rs
───────┼───────────────────────────────────────────────────────
   1   │ #![feature(unix_set_mark)]
   2   │ pub fn add(left: u64, right: u64) -> u64 {
   3   │     left + right
   4   │ }
   5   │
   6   │ #[cfg(test)]
   7   │ mod tests {
   8   │     use super::*;
   9   │
  10   │     #[test]
  11   │     fn it_works() {
  12   │         let result = add(2, 2);
  13   │         assert_eq!(result, 4);
  14   │     }
  15   │ }
───────┴───────────────────────────────────────────────────────

test-lib on  master [?] is 📦 v0.1.0 via 🦀 v1.80.1
❯ cargo +stage1 rustc -- -Zmetrics-dir=$PWD/metrics
   Compiling test-lib v0.1.0 (/home/yaahc/tmp/test-lib)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.08s

test-lib on  master [?] is 📦 v0.1.0 via 🦀 v1.80.1
❯ cat metrics/unstable_feature_usage.json
───────┬─────────────────────────────────────────────────────────────────────
       │ File: metrics/unstable_feature_usage.json
───────┼─────────────────────────────────────────────────────────────────────
   1   │ {"lib_features":[{"symbol":"unix_set_mark"}],"lang_features":[]}
   ```

   related to https://github.com/rust-lang/rust/issues/129485
2024-11-21 11:58:36 +01:00
..
config Overhaul the -l option parser (for linking to native libs) 2024-11-18 15:55:12 +11:00
code_stats.rs compiler: Add rustc_abi dependence to the compiler 2024-10-27 21:10:58 -07:00
config.rs Rollup merge of #130236 - yaahc:unstable-feature-usage, r=estebank 2024-11-21 11:58:36 +01:00
cstore.rs Rollup merge of #130586 - dpaoliello:fixrawdylib, r=wesleywiser 2024-11-07 18:48:20 -08:00
errors.rs Rename target triple to target tuple in many places in the compiler 2024-11-02 21:29:59 +01:00
filesearch.rs rustc_metadata: Preprocess search paths for better performance 2024-11-15 10:35:33 +01:00
lib.rs Rollup merge of #129087 - slanterns:option_get_or_insert_default, r=dtolnay 2024-09-27 19:07:58 +02:00
options.rs Rollup merge of #130236 - yaahc:unstable-feature-usage, r=estebank 2024-11-21 11:58:36 +01:00
output.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
parse.rs give a hint which feature is missing 2024-11-09 23:32:06 +01:00
search_paths.rs rustc_metadata: Preprocess search paths for better performance 2024-11-15 10:35:33 +01:00
session.rs rustc_metadata: Preprocess search paths for better performance 2024-11-15 10:35:33 +01:00
utils.rs remove a couple of redundant String to String conversion 2024-10-12 22:07:46 +02:00
version.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00