Skip to content
Closed
Changes from 2 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
2e39b9c
Make find_local iterate instead of recurse
spastorino May 23, 2019
d5e0353
Update cargo
ehuss May 23, 2019
46ffb6a
tidy: don't short-circuit on license error
ehuss May 23, 2019
d3c73dd
typo
blkerby May 19, 2019
0123fab
Fix typo "spit_paths", add link
blkerby May 24, 2019
fbc6a4b
Revert edition-guide toolstate override
ehuss May 24, 2019
9be8b7e
Fixed type-alias-bounds lint doc
Cerber-Ursi May 24, 2019
a8fc09b
Use FnOnce instead of FnBox in libtest
SimonSapin May 24, 2019
67ee286
Remove the incorrect warning from README.md
scottmcm May 24, 2019
73fd349
Deprecate `FnBox`. `Box<dyn FnOnce()>` can be called directly, since …
SimonSapin May 24, 2019
e396f99
Don't arena-allocate static symbols.
nnethercote May 23, 2019
698e50f
Delay ICE in fold_region so feature gate has chance to stop compilati…
pnkfelix May 24, 2019
8e4132a
Delay ICE in early_free_scope so feature gate has chance to stop comp…
pnkfelix May 24, 2019
c235ba4
Regression test for issue #60654.
pnkfelix May 24, 2019
d01ef7d
improve debug-printing of scalars
RalfJung May 24, 2019
a90cdcc
this is for tidy
RalfJung May 24, 2019
34314ca
Make find iterate instead of recurse
spastorino May 23, 2019
03dc30d
Make sanitize_place iterate instead of recurse
spastorino May 23, 2019
aba152d
Updated my mailmap entry
XAMPPRocky May 24, 2019
10fe269
Make ignore_borrow iterate instead of recurse
spastorino May 23, 2019
cf9ebe4
Make eval_place iterate instead of recurse
spastorino May 24, 2019
5cbb7a1
Rollup merge of #61077 - nnethercote:tweak-prefill, r=petrochenkov
Centril May 24, 2019
cd95523
Rollup merge of #61092 - spastorino:sanitize-place-iterative, r=oli-obk
Centril May 24, 2019
7c386fc
Rollup merge of #61094 - spastorino:find-local-iterate, r=oli-obk
Centril May 24, 2019
1c58342
Rollup merge of #61095 - ehuss:update-cargo, r=alexcrichton
Centril May 24, 2019
c4b2bdf
Rollup merge of #61096 - ehuss:tidy-license-short-circuit, r=Centril
Centril May 24, 2019
7bf0d5d
Rollup merge of #61099 - spastorino:ignore-borrow-iterate, r=oli-obk
Centril May 24, 2019
684c8f2
Rollup merge of #61103 - spastorino:find-iterate, r=oli-obk
Centril May 24, 2019
23cd10e
Rollup merge of #61107 - blkerby:docs_typos, r=Centril
Centril May 24, 2019
6bcc256
Rollup merge of #61110 - ehuss:revert-edition-override, r=Mark-Simula…
Centril May 24, 2019
7d55346
Rollup merge of #61111 - Cerberuser:patch-1, r=steveklabnik
Centril May 24, 2019
28a9c4f
Rollup merge of #61113 - SimonSapin:fnbox, r=alexcrichton
Centril May 24, 2019
9262748
Rollup merge of #61116 - scottmcm:vcpp-download-link, r=alexcrichton
Centril May 24, 2019
35ccfc1
Rollup merge of #61118 - pnkfelix:issue-60654-dont-ice-on-gat, r=varkor
Centril May 24, 2019
d214743
Rollup merge of #61120 - spastorino:eval-place-iterate, r=oli-obk
Centril May 24, 2019
072011e
Rollup merge of #61121 - RalfJung:miri-value-printing, r=oli-obk
Centril May 24, 2019
ca1784f
Rollup merge of #61125 - XAMPPRocky:master, r=jonas-schievink
Centril May 24, 2019
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
19 changes: 6 additions & 13 deletions src/libsyntax_pos/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -866,20 +866,13 @@ pub struct Interner {
}

impl Interner {
fn prefill(init: &[&str]) -> Self {
let mut this = Interner::default();
this.names.reserve(init.len());
this.strings.reserve(init.len());

// We can't allocate empty strings in the arena, so handle this here.
assert!(kw::Invalid.as_u32() == 0 && init[0].is_empty());
this.names.insert("", kw::Invalid);
this.strings.push("");

for string in &init[1..] {
this.intern(string);
fn prefill(init: &[&'static str]) -> Self {
let symbols = (0 .. init.len() as u32).map(Symbol::new);
Interner {
strings: init.to_vec(),
names: init.iter().copied().zip(symbols).collect(),
..Default::default()
}
this
}

pub fn intern(&mut self, string: &str) -> Symbol {
Expand Down