rust/src/librustc
Nicholas Nethercote 257eaf523f Introduce InternedString::intern.
`InternedString::intern(x)` is preferable to
`Symbol::intern(x).as_interned_str()`, because the former involves one
call to `with_interner` while the latter involves two.

The case within InternedString::decode() is particularly hot, and this
change reduces the number of `with_interner` calls by up to 13%.
2019-05-20 09:17:00 +10:00
..
benches Remove licenses 2018-12-25 21:08:33 -07:00
cfg Remove hir::ExprKind::If and replace it with lowering to hir::ExprKind::Match. 2019-05-10 19:41:10 +02:00
dep_graph Only hash dep node indices of deps of anon tasks 2019-05-06 13:57:33 +02:00
hir Avoid as_str() in ParamTy::is_self. 2019-05-20 09:16:26 +10:00
ich Pass a Symbol to check_name, emit_feature_err, and related functions. 2019-05-13 09:29:22 +10:00
infer Avoid as_str() in ParamTy::is_self. 2019-05-20 09:16:26 +10:00
lint Auto merge of #49799 - hdhoang:46205_deny_incoherent_fundamental_impls, r=nikomatsakis 2019-05-17 23:06:51 +00:00
middle Return a Symbol from name_or_empty functions. 2019-05-13 09:31:32 +10:00
mir Introduce InternedString::intern. 2019-05-20 09:17:00 +10:00
query Pass a Symbol to check_name, emit_feature_err, and related functions. 2019-05-13 09:29:22 +10:00
session Rollup merge of #60769 - ehuss:rustc-cli-docs, r=steveklabnik 2019-05-16 10:43:33 +02:00
traits Introduce InternedString::intern. 2019-05-20 09:17:00 +10:00
ty Introduce InternedString::intern. 2019-05-20 09:17:00 +10:00
util Change rustc::util::common::FN_OUTPUT_NAME to a Symbol. 2019-05-17 20:04:20 +10:00
arena.rs Rollup merge of #60287 - Zoxc:the-arena-variances_of, r=eddyb 2019-05-01 08:29:09 +02:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml Bump measureme dependency to 0.3 2019-05-13 22:15:55 -04:00
error_codes.rs Implement built-in await syntax 2019-05-07 14:45:53 -07:00
lib.rs Introduce hir::ExprKind::Use and employ in for loop desugaring. 2019-04-25 11:51:53 +02:00
macros.rs Remove double trailing newlines 2019-04-22 16:57:01 +01:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00

For more information about how rustc works, see the rustc guide.