Skip to content

Commit

Permalink
Remove now stray comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jan 2, 2019
1 parent 82a1bb3 commit fa4f014
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/librustc_driver/lib.rs
Expand Up @@ -200,13 +200,6 @@ pub fn run<F>(run_compiler: F) -> isize
}

fn load_backend_from_dylib(path: &Path) -> fn() -> Box<dyn CodegenBackend> {
// Note that we're specifically using `open_global_now` here rather than
// `open`, namely we want the behavior on Unix of RTLD_GLOBAL and RTLD_NOW,
// where NOW means "bind everything right now" because we don't want
// surprises later on and RTLD_GLOBAL allows the symbols to be made
// available for future dynamic libraries opened. This is currently used by
// loading LLVM and then making its symbols available for other dynamic
// libraries.
let lib = DynamicLibrary::open(Some(path)).unwrap_or_else(|err| {
let err = format!("couldn't load codegen backend {:?}: {:?}", path, err);
early_error(ErrorOutputType::default(), &err);
Expand Down

0 comments on commit fa4f014

Please sign in to comment.