Skip to content

Commit df01b88

Browse files
committed
---
yaml --- r: 106047 b: refs/heads/auto c: 7da2074 h: refs/heads/master i: 106045: 5d7f593 106043: 16f2e51 106039: 493554b 106031: 3dfc574 106015: 09b3272 105983: 16b8358 v: v3
1 parent bac9102 commit df01b88

File tree

146 files changed

+6225
-5783
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+6225
-5783
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 50e3aa31e2bd6faa9c64ab7c437096bcef5c5dc5
16+
refs/heads/auto: 7da2074827828c94de51c19758e95d7e15019460
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libgetopts/lib.rs

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -98,34 +98,27 @@ use std::vec;
9898

9999
/// Name of an option. Either a string or a single char.
100100
#[deriving(Clone, Eq)]
101+
#[allow(missing_doc)]
101102
pub enum Name {
102-
/// A string representing the long name of an option.
103-
/// For example: "help"
104103
Long(~str),
105-
/// A char representing the short name of an option.
106-
/// For example: 'h'
107104
Short(char),
108105
}
109106

110107
/// Describes whether an option has an argument.
111108
#[deriving(Clone, Eq)]
109+
#[allow(missing_doc)]
112110
pub enum HasArg {
113-
/// The option requires an argument.
114111
Yes,
115-
/// The option is just a flag, therefore no argument.
116112
No,
117-
/// The option argument is optional and it could or not exist.
118113
Maybe,
119114
}
120115

121116
/// Describes how often an option may occur.
122117
#[deriving(Clone, Eq)]
118+
#[allow(missing_doc)]
123119
pub enum Occur {
124-
/// The option occurs once.
125120
Req,
126-
/// The option could or not occur.
127121
Optional,
128-
/// The option occurs once or multiple times.
129122
Multi,
130123
}
131124

@@ -183,16 +176,12 @@ pub struct Matches {
183176
/// expected format. Call the `to_err_msg` method to retrieve the
184177
/// error as a string.
185178
#[deriving(Clone, Eq, Show)]
179+
#[allow(missing_doc)]
186180
pub enum Fail_ {
187-
/// The option requires an argument but none was passed.
188181
ArgumentMissing(~str),
189-
/// The passed option is not declared among the possible options.
190182
UnrecognizedOption(~str),
191-
/// A required option is not present.
192183
OptionMissing(~str),
193-
/// A single occurence option is being used multiple times.
194184
OptionDuplicated(~str),
195-
/// There's an argument being passed to a non-argument option.
196185
UnexpectedArgument(~str),
197186
}
198187

branches/auto/src/librustc/back/archive.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ use syntax::abi;
2828

2929
pub static METADATA_FILENAME: &'static str = "rust.metadata.bin";
3030

31-
pub struct Archive<'a> {
32-
priv sess: &'a Session,
31+
pub struct Archive {
32+
priv sess: Session,
3333
priv dst: Path,
3434
}
3535

3636
pub struct ArchiveRO {
3737
priv ptr: ArchiveRef,
3838
}
3939

40-
fn run_ar(sess: &Session, args: &str, cwd: Option<&Path>,
41-
paths: &[&Path]) -> ProcessOutput {
40+
fn run_ar(sess: Session, args: &str, cwd: Option<&Path>,
41+
paths: &[&Path]) -> ProcessOutput {
4242
let ar = get_ar_prog(sess);
4343

4444
let mut args = vec!(args.to_owned());
@@ -74,16 +74,16 @@ fn run_ar(sess: &Session, args: &str, cwd: Option<&Path>,
7474
}
7575
}
7676

77-
impl<'a> Archive<'a> {
77+
impl Archive {
7878
/// Initializes a new static archive with the given object file
79-
pub fn create<'b>(sess: &'a Session, dst: &'b Path,
80-
initial_object: &'b Path) -> Archive<'a> {
79+
pub fn create<'a>(sess: Session, dst: &'a Path,
80+
initial_object: &'a Path) -> Archive {
8181
run_ar(sess, "crus", None, [dst, initial_object]);
8282
Archive { sess: sess, dst: dst.clone() }
8383
}
8484

8585
/// Opens an existing static archive
86-
pub fn open(sess: &'a Session, dst: Path) -> Archive<'a> {
86+
pub fn open(sess: Session, dst: Path) -> Archive {
8787
assert!(dst.exists());
8888
Archive { sess: sess, dst: dst }
8989
}
@@ -206,7 +206,7 @@ impl<'a> Archive<'a> {
206206
let unixlibname = format!("lib{}.a", name);
207207

208208
let mut rustpath = filesearch::rust_path();
209-
rustpath.push(self.sess.filesearch().get_target_lib_path());
209+
rustpath.push(self.sess.filesearch.get_target_lib_path());
210210
let addl_lib_search_paths = self.sess
211211
.opts
212212
.addl_lib_search_paths

0 commit comments

Comments
 (0)