When I get my project into a state in which there are no compiler errors, then ide-rust starts to go crazy. The rust-analyzer
and atom-helper
processes go up to 100 - 200% CPU usage and ide-rust says it's running cargo check
. This usually takes around 10 minutes and I get messages like this thousands of times:
/.atom/packages/ide-rust/lib/index.js:211 Rust LS suspicious stdout: ource":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_WEIGHT_ARRAY_POINTER_ARB`","range":{"end":{"character":51,"line":661},"start":{"character":0,"line":661}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_WEIGHT_ARRAY_ARB`","range":{"end":{"character":43,"line":662},"start":{"character":0,"line":662}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW0_ARB`","range":{"end":{"character":40,"line":663},"start":{"character":0,"line":663}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW1_ARB`","range":{"end":{"character":41,"line":664},"start":{"character":0,"line":664}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW2_ARB`","range":{"end":{"character":41,"line":665},"start":{"character":0,"line":665}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW3_ARB`","range":{"end":{"character":41,"line":666},"start":{"character":0,"line":666}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW4_ARB`","range":{"end":{"character":41,"line":667},"start":{"character":0,"line":667}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW5_ARB`","range":{"end":{"character":41,"line":668},"start":{"character":0,"line":668}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW6_ARB`","range":{"end":{"character":41,"line":669},"start":{"character":0,"line":669}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW7_ARB`","range":{"end":{"character":41,"line":670},"start":{"character":0,"line":670}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW8_ARB`","range":{"end":{"character":41,"line":671},"start":{"character":0,"line":671}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW9_ARB`","range":{"end":{"character":41,"line":672},"start":{"character":0,"line":672}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW10_ARB`","range":{"end":{"character":42,"line":673},"start":{"character":0,"line":673}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW11_ARB`","range":{"end":{"character":42,"line":674},"start":{"character":0,"line":674}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW12_ARB`","range":{"end":{"character":42,"line":675},"start":{"character":0,"line":675}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW13_ARB`","range":{"end":{"character":42,"line":676},"start":{"character":0,"line":676}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW14_ARB`","range":{"end":{"character":42,"line":677},"start":{"character":0,"line":677}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW15_ARB`","range":{"end":{"character":42,"line":678},"start":{"character":0,"line":678}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW16_ARB`","range":{"end":{"character":42,"line":679},"start":{"character":0,"line":679}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW17_ARB`","range":{"end":{"character":42,"line":680},"start":{"character":0,"line":680}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW18_ARB`","range":{"end":{"character":42,"line":681},"start":{"character":0,"line":681}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW19_ARB`","range":{"end":{"character":42,"line":682},"start":{"character":0,"line":682}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW20_ARB`","range":{"end":{"character":42,"line":683},"start":{"character":0,"line":683}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW21_ARB`","range":{"end":{"character":42,"line":684},"start":{"character":0,"line":684}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW22_ARB`","range":{"end":{"character":42,"line":685},"start":{"character":0,"line":685}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW23_ARB`","range":{"end":{"character":42,"line":686},"start":{"character":0,"line":686}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW24_ARB`","range":{"end":{"character":42,"line":687},"start":{"character":0,"line":687}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW25_ARB`","range":{"end":{"character":42,"line":688},"start":{"character":0,"line":688}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW26_ARB`","range":{"end":{"character":42,"line":689},"start":{"character":0,"line":689}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW27_ARB`","range":{"end":{"character":42,"line":690},"start":{"character":0,"line":690}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW28_ARB`","range":{"end":{"character":42,"line":691},"start":{"character":0,"line":691}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW29_ARB`","range":{"end":{"character":42,"line":692},"start":{"character":0,"line":692}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW30_ARB`","range":{"end":{"character":42,"line":693},"start":{"character":0,"line":693}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_MODELVIEW31_ARB`","range":{"end":{"character":42,"line":694},"start":{"character":0,"line":694}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_ARRAY_BUFFER_ARB`","range":{"end":{"character":43,"line":695},"start":{"character":0,"line":695}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_ELEMENT_ARRAY_BUFFER_ARB`","range":{"end":{"character":51,"line":696},"start":{"character":0,"line":696}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_ARRAY_BUFFER_BINDING_ARB`","range":{"end":{"character":51,"line":697},"start":{"character":0,"line":697}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB`","range":{"end":{"character":59,"line":698},"start":{"character":0,"line":698}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_VERTEX_ARRAY_BUFFER_BINDING_ARB`","range":{"end":{"character":58,"line":699},"start":{"character":0,"line":699}},"severity":2,"source":"rustc","tags":[1]},{"code":"dead_code","message":"constant item is never used: `GL_NORMAL_ARRAY_BUFFER_BINDING_ARB`","range":{"end":{"character":58,"line":700},"start":{"character":0,"line":700}},"severity":2,"sourc
If I run cargo check
in the terminal, it usually runs in under a second.
Rust Analyzer Version: fbb8b88