Skip to content

Commit 6893bbc

Browse files
committed
---
yaml --- r: 104909 b: refs/heads/snap-stage3 c: 7da2074 h: refs/heads/master i: 104907: 310ad50 v: v3
1 parent 184d084 commit 6893bbc

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 62f1d68439dcfd509eaca29887afa97f22938373
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 50e3aa31e2bd6faa9c64ab7c437096bcef5c5dc5
4+
refs/heads/snap-stage3: 7da2074827828c94de51c19758e95d7e15019460
55
refs/heads/try: db814977d07bd798feb24f6b74c00800ef458a13
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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/snap-stage3/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)