Skip to content

Commit ec8ef0d

Browse files
committed
relicense shootout-meteor.rs
part of rust-lang#14248, fix rust-lang#14420 Removed @richo's contribution (outdated comment) Quoting @brson: let's move forward with this one. The only statement I'm missing is @richo's and it sounds like his was a minor patch.
1 parent 073c8f1 commit ec8ef0d

File tree

2 files changed

+41
-10
lines changed

2 files changed

+41
-10
lines changed

src/etc/licenseck.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"libstd/sync/spsc_queue.rs", # BSD
4343
"libstd/sync/mpmc_bounded_queue.rs", # BSD
4444
"libsync/mpsc_intrusive.rs", # BSD
45+
"test/bench/shootout-meteor.rs", # BSD
4546
]
4647

4748
def check_license(name, contents):

src/test/bench/shootout-meteor.rs

+40-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,42 @@
1-
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
1+
// The Computer Language Benchmarks Game
2+
// http://benchmarksgame.alioth.debian.org/
43
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
4+
// contributed by the Rust Project Developers
5+
6+
// Copyright (c) 2013-2014 The Rust Project Developers
7+
//
8+
// All rights reserved.
9+
//
10+
// Redistribution and use in source and binary forms, with or without
11+
// modification, are permitted provided that the following conditions
12+
// are met:
13+
//
14+
// - Redistributions of source code must retain the above copyright
15+
// notice, this list of conditions and the following disclaimer.
16+
//
17+
// - Redistributions in binary form must reproduce the above copyright
18+
// notice, this list of conditions and the following disclaimer in
19+
// the documentation and/or other materials provided with the
20+
// distribution.
21+
//
22+
// - Neither the name of "The Computer Language Benchmarks Game" nor
23+
// the name of "The Computer Language Shootout Benchmarks" nor the
24+
// names of its contributors may be used to endorse or promote
25+
// products derived from this software without specific prior
26+
// written permission.
27+
//
28+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
31+
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
32+
// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
33+
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
34+
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
35+
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36+
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
37+
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38+
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
39+
// OF THE POSSIBILITY OF SUCH DAMAGE.
1040

1141
#![feature(phase)]
1242
#[phase(syntax)] extern crate green;
@@ -184,7 +214,7 @@ fn get_id(m: u64) -> u8 {
184214
fail!("{:016x} does not have a valid identifier", m);
185215
}
186216

187-
// Converts a list of mask to a String.
217+
// Converts a list of mask to a Vec<u8>.
188218
fn to_vec(raw_sol: &List<u64>) -> Vec<u8> {
189219
let mut sol = Vec::from_elem(50, '.' as u8);
190220
for &m in raw_sol.iter() {
@@ -198,7 +228,7 @@ fn to_vec(raw_sol: &List<u64>) -> Vec<u8> {
198228
sol
199229
}
200230

201-
// Prints a solution in String form.
231+
// Prints a solution in Vec<u8> form.
202232
fn print_sol(sol: &Vec<u8>) {
203233
for (i, c) in sol.iter().enumerate() {
204234
if (i) % 5 == 0 { println!(""); }

0 commit comments

Comments
 (0)