We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
name
1 parent cbaaf05 commit a526e4fCopy full SHA for a526e4f
src/librustc_mir/dataflow/generic.rs
@@ -40,11 +40,11 @@ pub trait Analysis<'tcx>: BottomValue {
40
/// The index type used to access the dataflow state.
41
type Idx: Idx;
42
43
- /// A name describing the dataflow analysis being implemented.
+ /// A name, used for debugging, that describes this dataflow analysis.
44
///
45
/// The name should be suitable as part of a filename, so avoid whitespace, slashes or periods
46
/// and try to keep it short.
47
- fn name() -> &'static str;
+ const NAME: &'static str;
48
49
/// The size of each bitvector allocated for each block.
50
fn bits_per_block(&self, body: &mir::Body<'tcx>) -> usize;
0 commit comments