Skip to content

Commit cf93818

Browse files
Add the notion of a dependency tracking status to commandline arguments.
Commandline arguments influence whether incremental compilation can use its compilation cache and thus their changes relative to previous compilation sessions need to be taking into account. This commit makes sure that one has to specify for every commandline argument whether it influences incremental compilation or not.
1 parent e1d2bc2 commit cf93818

File tree

17 files changed

+1252
-202
lines changed

17 files changed

+1252
-202
lines changed

src/librustc/lint/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ impl LintId {
269269
}
270270

271271
/// Setting for how to handle a lint.
272-
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug)]
272+
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
273273
pub enum Level {
274274
Allow, Warn, Deny, Forbid
275275
}

src/librustc/middle/cstore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub enum LinkagePreference {
7373
}
7474

7575
enum_from_u32! {
76-
#[derive(Copy, Clone, PartialEq)]
76+
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
7777
pub enum NativeLibraryKind {
7878
NativeStatic, // native static library (.a archive)
7979
NativeFramework, // OSX-specific

0 commit comments

Comments
 (0)