Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
df8dd3f
doc: no need for the references
tshepang Feb 28, 2018
e822e62
Suggest type for overflowing bin/hex-literals
flip1995 Feb 22, 2018
19c4771
Implementing requested changes
flip1995 Feb 22, 2018
5c70619
Rewrite error reporting as requested
flip1995 Feb 24, 2018
f45f760
Adapt stderr of UI test to PR #48449
flip1995 Mar 1, 2018
f7693c0
Fix spelling s/casted/cast/
lukaslueg Feb 21, 2018
15ecf06
Remove isize test
flip1995 Mar 2, 2018
fc33b25
Improve getting literal representation
flip1995 Mar 3, 2018
04da856
Update sccache to its master branch
alexcrichton Mar 1, 2018
0b0e1b7
Refactor contrived match.
leoyvens Mar 4, 2018
1c191b2
Add note for unterminated raw string error
GuillaumeGomez Feb 26, 2018
16ac85c
Remove useless powerpc64 entry from ARCH_TABLE, closes #47737
debris Mar 4, 2018
88f32d1
Remove a couple of `isize` references from hashmap docs
tbu- Mar 5, 2018
2e7e68b
while let all the things
leoyvens Mar 5, 2018
831009f
Add resource-suffix option for rustdoc
GuillaumeGomez Feb 24, 2018
2ec47e0
Remove seemingly unused sugarise-doc-comments Python script.
frewsxcv Mar 6, 2018
e50005a
Rollup merge of #48403 - lukaslueg:casted, r=steveklabnik
GuillaumeGomez Mar 6, 2018
e0ed4da
Rollup merge of #48432 - flip1995:lit_diag, r=oli-obk
GuillaumeGomez Mar 6, 2018
80619d3
Rollup merge of #48511 - GuillaumeGomez:rustdoc-resource-suffix, r=Qu…
GuillaumeGomez Mar 6, 2018
53d933e
Rollup merge of #48546 - GuillaumeGomez:raw-string-error-note, r=este…
GuillaumeGomez Mar 6, 2018
05c1bb9
Rollup merge of #48590 - tshepang:more-simple, r=frewsxcv
GuillaumeGomez Mar 6, 2018
54b9c92
Rollup merge of #48647 - alexcrichton:update-sccache, r=kennytm
GuillaumeGomez Mar 6, 2018
9d1e13e
Rollup merge of #48727 - leodasvacas:refactor-contrived-match, r=rkruppe
GuillaumeGomez Mar 6, 2018
6b05c48
Rollup merge of #48732 - debris:remove_powerpc64, r=alexcrichton
GuillaumeGomez Mar 6, 2018
25a89cf
Rollup merge of #48753 - tbu-:pr_hashmap_isize, r=BurntSushi
GuillaumeGomez Mar 6, 2018
408467e
Rollup merge of #48754 - leodasvacas:while-let-all-the-things, r=rkruppe
GuillaumeGomez Mar 6, 2018
93be89a
Rollup merge of #48761 - frewsxcv:frewsxcv-rm-python, r=alexcrichton
GuillaumeGomez Mar 6, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions src/librustc/hir/print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2208,13 +2208,8 @@ impl<'a> State<'a> {
if self.next_comment().is_none() {
self.s.hardbreak()?;
}
loop {
match self.next_comment() {
Some(ref cmnt) => {
self.print_comment(cmnt)?;
}
_ => break,
}
while let Some(ref cmnt) = self.next_comment() {
self.print_comment(cmnt)?
}
Ok(())
}
Expand Down
6 changes: 1 addition & 5 deletions src/librustc/middle/reachable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,7 @@ impl<'a, 'tcx> ReachableContext<'a, 'tcx> {
// Step 2: Mark all symbols that the symbols on the worklist touch.
fn propagate(&mut self) {
let mut scanned = FxHashSet();
loop {
let search_item = match self.worklist.pop() {
Some(item) => item,
None => break,
};
while let Some(search_item) = self.worklist.pop() {
if !scanned.insert(search_item) {
continue
}
Expand Down
8 changes: 1 addition & 7 deletions src/librustc_data_structures/obligation_forest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,13 +415,7 @@ impl<O: ForestObligation> ObligationForest<O> {
}
}

loop {
// non-standard `while let` to bypass #6393
let i = match error_stack.pop() {
Some(i) => i,
None => break
};

while let Some(i) = error_stack.pop() {
let node = &self.nodes[i];

match node.state.get() {
Expand Down
23 changes: 9 additions & 14 deletions src/libstd/sys_common/wtf8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,20 +428,15 @@ impl fmt::Debug for Wtf8 {

formatter.write_str("\"")?;
let mut pos = 0;
loop {
match self.next_surrogate(pos) {
None => break,
Some((surrogate_pos, surrogate)) => {
write_str_escaped(
formatter,
unsafe { str::from_utf8_unchecked(
&self.bytes[pos .. surrogate_pos]
)},
)?;
write!(formatter, "\\u{{{:x}}}", surrogate)?;
pos = surrogate_pos + 3;
}
}
while let Some((surrogate_pos, surrogate)) = self.next_surrogate(pos) {
write_str_escaped(
formatter,
unsafe { str::from_utf8_unchecked(
&self.bytes[pos .. surrogate_pos]
)},
)?;
write!(formatter, "\\u{{{:x}}}", surrogate)?;
pos = surrogate_pos + 3;
}
write_str_escaped(
formatter,
Expand Down
17 changes: 6 additions & 11 deletions src/libsyntax_ext/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -732,18 +732,13 @@ pub fn expand_preparsed_format_args(ecx: &mut ExtCtxt,
let mut parser = parse::Parser::new(fmt_str);
let mut pieces = vec![];

loop {
match parser.next() {
Some(mut piece) => {
if !parser.errors.is_empty() {
break;
}
cx.verify_piece(&piece);
cx.resolve_name_inplace(&mut piece);
pieces.push(piece);
}
None => break,
while let Some(mut piece) = parser.next() {
if !parser.errors.is_empty() {
break;
}
cx.verify_piece(&piece);
cx.resolve_name_inplace(&mut piece);
pieces.push(piece);
}

let numbered_position_args = pieces.iter().any(|arg: &parse::Piece| {
Expand Down
7 changes: 1 addition & 6 deletions src/libsyntax_pos/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,7 @@ impl Span {
pub fn macro_backtrace(mut self) -> Vec<MacroBacktrace> {
let mut prev_span = DUMMY_SP;
let mut result = vec![];
loop {
let info = match self.ctxt().outer().expn_info() {
Some(info) => info,
None => break,
};

while let Some(info) = self.ctxt().outer().expn_info() {
let (pre, post) = match info.callee.format {
ExpnFormat::MacroAttribute(..) => ("#[", "]"),
ExpnFormat::MacroBang(..) => ("", "!"),
Expand Down