Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
drop support of older nightlies
Browse files Browse the repository at this point in the history
Minor version has been bumped to v0.4.0 so we can stop supporting them

This also drop the chrono dependency, which some people have been running into problems with.

closes #60
  • Loading branch information
japaric committed Apr 6, 2018
1 parent 603f629 commit ae449d5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,3 @@ r0 = "0.2.1"
[features]
# provides a panic_fmt implementation that calls the abort instruction (`udf 0xfe`)
abort-on-panic = []

[build-dependencies]
rustc_version = "0.2.1"
chrono = "0.4.0"
13 changes: 0 additions & 13 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
extern crate chrono;
extern crate rustc_version;

use std::env;
use std::fs::File;
use std::io::Write;
use std::path::PathBuf;

use chrono::NaiveDate;

fn main() {
let meta = rustc_version::version_meta().unwrap();
if meta.channel == rustc_version::Channel::Dev
|| meta.commit_date.unwrap().parse::<NaiveDate>().unwrap()
> NaiveDate::from_ymd(2017, 12, 26)
{
println!("cargo:rustc-cfg=has_termination_lang")
}

let target = env::var("TARGET").unwrap();

has_fpu(&target);
Expand Down
11 changes: 0 additions & 11 deletions src/lang_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ unsafe extern "C" fn panic_fmt(_: ::core::fmt::Arguments, _: &'static str, _: u3
// The final piece is that the entry point of our program, the reset handler,
// has to call `rustc_main`. That's covered by the `reset_handler` function in
// root of this crate.
#[cfg(has_termination_lang)]
#[lang = "start"]
extern "C" fn start<T>(main: fn() -> T, _argc: isize, _argv: *const *const u8) -> isize
where
Expand All @@ -35,21 +34,11 @@ where
0
}

#[cfg(not(has_termination_lang))]
#[lang = "start"]
extern "C" fn start(main: fn(), _argc: isize, _argv: *const *const u8) -> isize {
main();

0
}

#[lang = "termination"]
#[cfg(has_termination_lang)]
pub trait Termination {
fn report(self) -> i32;
}

#[cfg(has_termination_lang)]
impl Termination for () {
fn report(self) -> i32 {
0
Expand Down

0 comments on commit ae449d5

Please sign in to comment.