diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-03-08 15:24:27 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-03-08 15:25:56 -0800 |
| commit | 0c5fdc8745cd0bc5fbf9272301d3aafa2eb8f331 (patch) | |
| tree | 9c41d534de15987872229a6e7a915a3be23cb3d3 /src/rustdoc | |
| parent | 8047c0cd68baaee21ac89ac7d933bc84b7ebcf3e (diff) | |
| download | rust-0c5fdc8745cd0bc5fbf9272301d3aafa2eb8f331.tar.gz rust-0c5fdc8745cd0bc5fbf9272301d3aafa2eb8f331.zip | |
Rename last to last_opt, last_unsafe to last
As per discussion on IRC. I am about to file an RFC for further discussion about the more general issue of whether to enforce invariants through types, typestate, or dynamic checks, but for now, removing the misleading name "last_unsafe".
Diffstat (limited to 'src/rustdoc')
| -rw-r--r-- | src/rustdoc/reexport_pass.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustdoc/reexport_pass.rs b/src/rustdoc/reexport_pass.rs index 02ffa3337b4..978c6fc9014 100644 --- a/src/rustdoc/reexport_pass.rs +++ b/src/rustdoc/reexport_pass.rs @@ -163,7 +163,7 @@ fn build_reexport_path_map(srv: astsrv::srv, -def_map: def_map) -> path_map { }; // should be a constraint on the node_export constructor // that guarantees path is non-empty - let name = alt check vec::last_unsafe(*path) { + let name = alt check vec::last(*path) { ast_map::path_name(nm) { nm } }; let modpath = ast_map::path_to_str(vec::init(*path)); |
