Function version_check::is_max_date[][src]

pub fn is_max_date(max_date: &str) -> Option<bool>
Expand description

Checks that the running or installed rustc was released on or before some date.

The format of max_date must be YYYY-MM-DD. For instance: 2016-12-20 or 2017-01-09.

If the date cannot be retrieved or parsed, or if max_date could not be parsed, returns None. Otherwise returns true if the installed rustc was release on or before max_date and false otherwise.